/* RESPONSIVE */

/* =========================
   RESPONSIVE FINAL
========================= */

img {
  max-width: 100%;
  display: block;
}

html,
body {
  overflow-x: hidden;
}

@media (max-width: 1200px) {

  .nav {
    justify-content: space-between;
    gap: 40px;
    padding-left: 32px;
    padding-right: 32px;
  }

  h2 {
  font-size: clamp(42px, 6vw, 58px);
  line-height: 0.95;
}

  .section-head p,
  #contacto p,
  #proceso p,
  #equipo p {
    font-size: 22px;
    line-height: 1.6;
  }
  #servicios {
    margin-top: 0;
    padding-top: 120px;
  }

  #servicios h2 {
    margin-top: 0;
  }
  #servicios .container,
  #proceso .container {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  #servicios .section-head,
  #proceso .section-head {
    position: relative;
    top: auto;
  }

  .process-stack {
    width: 100%;
  }

  .process-stack-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .process-scroll-arrow {
    width: 100%;
  }
 
  #equipo {
  min-height: auto;
  padding-top: 120px;
  padding-bottom: 120px;
  margin-top: 0;
  }

  #equipo .container {
    display: block;
  }

  #equipo .team-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }

  #equipo .team-box > div:first-child {
    transform: none;
    max-width: 620px;
  }

  #equipo .team-network {
    margin: 40px auto 0;
  }

  #contacto .contact-box {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  #contacto .contact-box form {
    max-width: 620px;
    margin-left: 0;
    max-width: 100%;
  }

  }

@media (max-width: 900px) {

  section {
    padding: 90px 6%;
  }

  .nav {
    display: grid;

    grid-template-columns: 56px 1fr 56px;
    grid-template-areas: "logo brand menu";

    align-items: center;

    padding: 20px 32px;
  }

  .nav-links {
    position: absolute;
    top: 96px;
    right: 32px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 18px;
    border-radius: 28px;

    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.28);

    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255,255,255,0.28);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);

    transition: 0.25s ease;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .logo-mark {
    grid-area: logo;

    position: relative;

    left: auto;
    transform: none;

    justify-self: start;

    width: 56px;
    height: 56px;
  }

  .brand {
    grid-area: brand;

    position: relative;

    left: auto;
    transform: none;

    justify-self: center;
  }

  .menu-toggle {
    grid-area: menu;

    position: relative;

    width: 56px;
    height: 56px;

    border-radius: 14px;

    border: 1px solid transparent;

    background: linear-gradient(
      135deg,
      #1917b0 0%,
      #807DFE 100%
    );

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    cursor: pointer;

    justify-self: end;
  }

  .menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    min-height: 2px;
    max-height: 2px;

    border-radius: 999px;

    background: white;

    flex-shrink: 0;
}

  .menu-toggle.active {
    background: rgba(255, 255, 255, 0.82);
  }

  .menu-toggle.active span {
   background: #1917b0;

  .hero {
    min-height: 90svh;
    padding-top: 130px;
  }
  }

  h1 {
    font-size: clamp(42px, 10vw, 60px);
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .services-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .services-content::after {
  display: none;
  }

  .services-list {
    border-right: none;
    border-bottom: 2px solid #89E589;
    padding-right: 0;
    padding-bottom: 28px;
  }

  .service-detail {
    height: auto;
  }

  #serviceTitle {
    font-size: 34px;
  }

  #serviceText {
    max-width: 100%;
  }

 .process-stack {
  height: clamp(380px, 60vh, 480px);
  padding-top: 10px;
  padding-bottom: 20px;
}

  .process-card {
    min-height: 200px;
    padding: 28px;
  }

  #equipo {
  margin-top: 0;
  padding-top: 90px;
}

  #equipo .team-box {
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: start;
}

  #equipo .team-box > div:first-child {
  transform: none;
  max-width: 100%;
}

  #equipo h2 {
  margin-top: 0;
}

  #equipo .team-network {
  transform: none;
  width: 100%;
  height: auto;
  margin-top: 120px !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

  .network-node {
  position: relative;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;

  width: 100%;
  height: auto;
  min-height: 90px;

  border-radius: 24px;

  flex-direction: row;
  justify-content: flex-start;

  padding: 18px;
}

  .network-node span {
  position: relative;
  left: auto !important;
  right: auto !important;
  top: auto !important;

  transform: none !important;

  white-space: normal;
  text-align: left;
}

  .network-line {
  display: none;
}

  .contact-box {
    grid-template-columns: 1fr;
    padding: 0;
  }


  /* FOOTER */

  .footer {
    padding-top: 70px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 50px 40px;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    width: 220px;
  }

  .footer-ave {
    width: 74px;
    height: 74px;
  }

  .footer-column {
    align-items: flex-start;
  }

  .footer-column:first-of-type {
  justify-self: center;
  padding-left: 30px;
}

  .footer-bottom {
    margin-top: 50px;
  }
}

@media (max-width: 640px) {

  body,
  a,
  button {
    cursor: auto !important;
  }

  section {
    padding: 75px 22px;
  }

  h1 {
    font-size: 42px;
  }

  h2,
  #equipo h2 {
    font-size: 40px;
    line-height: 1;
  }

  p {
    font-size: 15px;
  }

  .hero {
    min-height: 85svh;
    padding-top: 120px;
  }

  .hero-top {
  max-width: 520px;
}

  .hero h1 {
  max-width: 520px;
  font-size: clamp(38px, 8vw, 48px);
}

  .hero-actions {
  max-width: 420px;
  flex-direction: row;
  flex-wrap: wrap;

  gap: 14px;
}

  .hero-actions .btn {
  width: auto;
  min-width: 190px;
}

  .btn {
    width: auto;
  }

  .service-tab {
    font-size: 24px;
  }

  #serviceTitle {
    font-size: 30px;
  }

  #serviceText {
    font-size: 16px;
    line-height: 1.75;
  }


  .process-stack {
    height: clamp(340px, 58vh, 430px);
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .process-card {
    min-height: 180px;
    padding: 24px;
    border-radius: 24px;
  }

  .process-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .process-card p {
    font-size: 14px;
  }


  .team-description {
    font-size: 16px;
  }

  input,
  textarea {
    font-size: 17px;
  }
}



@media (max-width: 1250px) {
  #equipo {
     margin-top: -30px !important;
    padding-top: 90px !important;
    padding-bottom: 120px !important;
  }

  #equipo .team-box {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 60px !important;
    align-items: start !important;
  }

  #equipo .team-box > div:first-child {
    transform: none !important;
    max-width: 620px !important;
  }

  #equipo h2 {
    margin-top: 0 !important;
    width: auto !important;
    max-width: 620px !important;
  }

  #equipo .team-network {
    width: 100% !important;
    max-width: 520px !important;
    height: 520px !important;
    margin: -100px auto 0 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  #equipo .team-box > div:last-child {
    margin-top: 20px !important;
  }

  #equipo .team-network {
    margin-top: 0 !important;
  }
}




@media (max-width: 768px) {
  .gracias-card {
    padding: 36px 24px;
    border-radius: 26px;
  }

  .gracias-icon {
    width: 62px;
    height: 62px;
    font-size: 34px;
  }

  .gracias-card h2 {
    font-size: 38px;
  }

  .gracias-card p {
    font-size: 16px;
  }
  }

@media (max-width: 420px) {

  .nav {
    grid-template-columns: 48px 1fr 48px;
    padding: 18px 22px;
  }

  .logo-mark,
  .menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .logo-mark img {
    width: 36px;
    height: 36px;
  }

  .brand img {
    height: 32px;
  }

  .menu-toggle span {
    width: 20px;
  }

  .process-card p,
  .process-card.active p {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }
  .section-head p,
  #contacto p,
  #proceso p,
  #equipo p {
    font-size: 16px;
    line-height: 1.75;
  }

  #equipo .team-network {
  transform: scale(0.70);
  transform-origin: top center;
}

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: auto;

    align-items: center;
    text-align: center;
  }

  .footer-column {
    align-items: center;
    text-align: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 360px) {

  .nav {
    grid-template-columns: 42px 1fr 42px;
    padding: 16px 18px;
  }

  .logo-mark,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .logo-mark img {
    width: 30px;
    height: 30px;
  }

  .brand img {
    height: 26px;
  }

  .menu-toggle span {
    width: 18px;
  }

  .nav-links {
    right: 18px;
    top: 82px;
  }

}

/*HOVERS*/ 

@media (max-width: 900px) {

  .btn:hover {
    background: linear-gradient(135deg, #B3C4E2 0%, #d7e1f3 100%) !important;
    color: #060B35 !important;
    transform: none !important;
    box-shadow: 0 10px 30px rgba(137,229,137,0.2) !important;
  }

  .btn-secondary:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
  }

  .nav-links a:hover {
    background: linear-gradient(135deg, #B3C4E2 0%, #d7e1f3 100%) !important;
    color: #060B35 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .footer-column a:hover {
    color: rgba(255,255,255,0.72) !important;
    transform: none !important;
  }

  .footer-socials a:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.08) !important;
    transform: none !important;
  }

  .network-node:hover {
    transform: none !important;
  }

  .btn:active,
  .nav-links a:active,
  .footer-column a:active,
  .footer-socials a:active {
    transform: scale(0.96) !important;
    opacity: 0.75;
  }

  .brand:hover .logo-default {
    opacity: 1 !important;
  }

  .brand:hover .logo-hover {
    opacity: 0 !important;
  }

  .logo-mark:hover {
    background: linear-gradient(
      135deg,
      #1917b0 0%,
      #807DFE 100%
    ) !important;

    border-color: transparent !important;
  }

  .logo-mark:hover .ave-default {
    opacity: 1 !important;
  }

  .logo-mark:hover .ave-hover {
    opacity: 0 !important;
  }

  .nav-links a:hover {
    background: linear-gradient(135deg, #B3C4E2 0%, #d7e1f3 100%) !important;
    color: #060B35 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .nav-links a:active,
  .brand:active,
  .logo-mark:active {
    transform: scale(0.96) !important;
  }

  .process-scroll-arrow:hover {
    opacity: inherit !important;
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }
}