@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {

  /* Timing functions */

  --tf-bounce: cubic-bezier(0.8, -1, .5, 2);

  /* Colores */


  --clr-primary-300: #60CAFF;
  --clr-primary-400: #4099FF;
  --clr-primary-500: #275DFF;
  --clr-primary-600: #281AEA;
  --clr-primary-700: #3E13BF;

  --clr-accent-500: #1bc727;

  --clr-neutral-dark-900: #211800;
  --clr-neutral-light-500: #FAF9F6;

  --clr-radial-primary: radial-gradient(circle at center top, var(--clr-primary-400), var(--clr-primary-600));


  /* Tipografia */

  --ff: 'Poppins', sans-serif, system-ui;

  --fs-h1: clamp(1.5rem, 2vw + 1rem, 2.441rem);;
  --fs-h2: clamp(1.25rem, 2vw + 1rem, 1.953rem);;
  --fs-h3: clamp(1rem, 2vw + 1rem, 1.25rem);;
  --fs-p: 16px;

  --fw-light: 300;
  --fw-semibold: 600;
  --fw-extrabold: 800;

}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-extrabold);
}


::selection {
  background-color: var(--clr-accent-500);
  color: var(--clr-neutral-dark-900);
  -webkit-text-fill-color: var(--clr-neutral-dark-900);

}

*,
::before,
::after {
  box-sizing: border-box;
}

* {
  padding: 0;
  margin: 0;
  font-family: inherit;
  color: inherit;
  font-size: inherit;
  box-sizing: border-box;
}


html {
  /* Smooth scroll manejado por JavaScript para mejor control */
  scroll-padding-top: 100px;
}

html:focus-within {
  scroll-behavior: smooth;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

svg.icon {
  height: 1cap;
}

img {
  height: auto;
  vertical-align: middle;
  font-style: italic;
  shape-margin: 1rem;
}
.imgLogo{
  width: 8%;
  height: 8%;
}
.stack {
  display: grid;
  grid-template-areas: "stack";
  align-items: center;

  >* {
    grid-area: stack;
  }
}

a.overflow-effect {
  color: transparent !important;
  position: relative;
  overflow: hidden;
  transition: scale .2s var(--tf-bounce), var(--_rest-transitions);

  &:active {
    scale: .95;
  }

  &:is(:hover, :focus-visible) {

    .top,
    .bottom {
      transition-duration: .3s;
    }

    .top {
      top: -100%;
    }

    .bottom {
      top: var(--_top, 0);
    }
  }

  &,
  >span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
  }

  >span {
    color: var(--_clr-base, var(--clr-neutral-dark-900));
    position: absolute;
    transition: top .5s var(--tf-bounce);

    &.top {
      top: var(--_top, 0);
    }

    &.bottom {
      color: var(--_clr-hover, var(--clr-accent-500));
      top: 100%;
    }
  }
}

.cta {
  text-decoration: none;
  background: var(--clr-radial-primary);
  padding: 10px 30px;
  border-radius: 10px;
  font-weight: var(--fw-semibold);
  color: var(--clr-neutral-light-500);

  --_clr-base: var(--clr-neutral-light-500);
  --_clr-hover: var(--clr-neutral-light-500);
  --_top: 10px;
  --_rest-transitions: box-shadow .3s ease-in-out;

  &:hover {
    box-shadow: 0px 10px 40px -2px var(--clr-primary-600);
  }

}


@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }

  /* Desactivar animaciones suaves si el usuario lo prefiere */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body,
.content-grid,
.full-width {



  --padding-inline: 16px;
  --content-max-width: 1080px;

  --content-size: min(var(--content-max-width), calc(100vw - var(--padding-inline) * 2));
  --full-width-size: minmax(0, auto);

  display: grid;
  grid-template-columns:
    [full-width-start] var(--full-width-size) var(--padding-inline) [content-start] var(--content-size) [content-end] var(--padding-inline) var(--full-width-size) [full-width-end];
}

:is(.content-grid, .full-width)>* {
  grid-column: content;
}

.full-width {
  grid-column: full-width;
}

.content-grid {
  grid-column: content;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  display: grid;
  grid-template-rows:
    [header-start main-start] min-content [header-end] auto [main-end footer-start] auto [footer-end];

  font-weight: var(--fw-light);

  font-family: var(--ff);

  color: var(--clr-neutral-dark-900);
  background-color: var(--clr-neutral-light-500);


  >* {
    grid-column: full-width;
  }
}

body>header {
  grid-row: header;
  padding-block: 16px;
  position: sticky;
  z-index: 9;
  transition: .3s box-shadow, .3s background-color;
  align-items: center;

  >* {
    grid-row: 1/2;
  }

  &.active {
    top: var(--_top-header);
  }

  &.clr {
    background-color: var(--clr-neutral-light-500);
    box-shadow: 0 10px 12px #0002;
  }

  /* Botón hamburguesa - Oculto en desktop */
  .nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    justify-self: end;
    width: 32px;
    height: 32px;
    position: relative;

    .hamburger {
      display: block;
      position: relative;
      width: 28px;
      height: 2px;
      background: var(--clr-neutral-dark-900);
      transition: background 0.3s ease;

      &::before,
      &::after {
        content: '';
        position: absolute;
        width: 28px;
        height: 2px;
        background: var(--clr-neutral-dark-900);
        transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
      }

      &::before {
        top: -8px;
      }

      &::after {
        bottom: -8px;
      }
    }

    /* Animación a X cuando está abierto */
    &[aria-expanded="true"] .hamburger {
      background: transparent;

      &::before {
        top: 0;
        transform: rotate(45deg);
      }

      &::after {
        bottom: 0;
        transform: rotate(-45deg);
      }
    }
  }

  nav {
    justify-self: end;
    display: flex;
    gap: 20px;
    align-items: center;
  }

  /* RESPONSIVE: Mobile menu */
  @media (max-width: 968px) {
    .nav-toggle {
      display: block;
    }

    nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: min(75vw, 400px);
      height: 100vh;
      background: var(--clr-neutral-light-500);
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 5rem 2rem 2rem;
      gap: 1.5rem;
      box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
      transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1000;
      overflow-y: auto;

      /* Nav abierto */
      &.nav-open {
        right: 0;
      }

      a {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1.125rem;
        border-left: 3px solid transparent;
        transition: border-color 0.2s ease, background 0.2s ease;

        &:hover {
          border-left-color: var(--clr-primary-400);
          background: rgba(96, 202, 255, 0.08);
        }

        &.cta {
          margin-top: 1rem;
          border-left: none;
          text-align: center;
        }
      }
    }
  }

  /* Overlay cuando el menú está abierto */
  &::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
  }

  &.nav-active::before {
    opacity: 1;
    pointer-events: auto;
  }

}

body>main {
  grid-row: main;

  >* {
    padding-block: var(--fs-h1);
  }

  .hero {

    background-color: var(--clr-neutral-light-500);
    background-image:
      linear-gradient(var(--clr-primary-300) .7px, transparent .7px), linear-gradient(to right, var(--clr-primary-300) .7px, var(--clr-neutral-light-500) .7px);
    box-shadow: var(--clr-neutral-light-500) 0 0 300px 100px inset;
    background-size: 18px 18px;
    min-height: 90vh;
    align-items: center;
    justify-items: center;

    >* {
      grid-row: 1 / 2;
    }

    h1 {
      font-size: var(--fs-h1);
      grid-column: content;
      display: grid;

      .breaking-title {
        >* {
          width: fit-content;
          transform-origin: center;
          line-height: 90px;

          line-height: 1.2em;

          &:nth-child(1) {
            clip-path: polygon(100% 0, 0 0, 0 100%);
          }

          &:nth-child(2) {
            clip-path: polygon(100% 0, 100% 100%, -1% 100%);
            animation: break .3s;
            animation-fill-mode: forwards;
            animation-delay: 1.5s;
            animation-timing-function: cubic-bezier(0, 0, .5, 3);
          }
        }
      }

      .highlight {
        background: linear-gradient(0deg, var(--clr-primary-600), var(--clr-primary-400));
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-transform: uppercase;
        font-size: 100%;
      }

    }
  }

  .cotizar {
    background-color: var(--clr-primary-600);
    background: var(--clr-radial-primary);
    color: var(--clr-neutral-light-500);
    justify-items: center;
    text-align: center;

    grid-template-rows: min-content 30px [select-start] min-content [select-end costos-start] min-content [costos-end];

    row-gap: 10px;

    select {

      grid-row: select;

      color: var(--clr-neutral-dark-900);
      border: none;
      padding: 5px 10px;
      border-radius: 10px;

      option:first-child {
        display: none;
      }

      &:invalid+#costos {
        visibility: hidden;
      }
    }

    #costos {

      grid-row: costos;

      span[class] {
        font-size: var(--fs-h2);
      }
    }
  }

  .servicios {
    text-align: center;
    row-gap: 40px;

    h2 {
      grid-column: content;
    }

    .services-grid {
      grid-column: content;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      padding-block: 20px;
    }

    .service-card {
      background-color: white;
      padding: 30px 20px;
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      display: grid;
      gap: 15px;
      justify-items: center;
      text-align: center;
      cursor: default;

      &:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(39, 93, 255, 0.15);

        .service-icon {
          background: var(--clr-radial-primary);
          color: var(--clr-neutral-light-500);
          transform: scale(1.1) rotate(5deg);
        }
      }

      .service-icon {
        width: 70px;
        height: 70px;
        background-color: var(--clr-primary-300);
        background: linear-gradient(135deg, var(--clr-primary-300), var(--clr-primary-400));
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--clr-neutral-dark-900);
        transition: all 0.3s var(--tf-bounce);

        svg, img {
          width: 35px;
          height: 35px;
        }
      }

      h3 {
        font-size: var(--fs-h3);
        color: var(--clr-neutral-dark-900);
        margin: 0;
      }

      p {
        font-size: 14px;
        line-height: 1.6;
        color: #666;
        margin: 0;
        max-width: 30ch;
      }
    }
  }

  .marcas {
    grid-column: full-width;
    --_gap: 100px;
    --_time : 20s;
  }
  
  .valoraciones{
    grid-column: full-width;

    row-gap: 20px;
    
    --_gap: 20px;
    --_time : 40s;

    &:has(.user-review:hover) .user-review:not(:hover){
      filter: blur(3px);
    }

    .user-review {
      display: grid;
      align-items: center;
      column-gap: 10px;
      background-color: white;
      border-radius: 10px;
      box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
      padding: 24px 24px;
      transition: filter .3s ease-in-out;
      cursor: default;
    
      grid-template-columns: [profile-image-start] 60px [profile-image-end name-and-rating-start] auto [name-and-rating-end];
      grid-template-rows: 
      [profile-image-start name-and-rating-start] auto
      [name-and-rating-end review-start] auto
      [profile-image-end review-end];

      > img{
        height: 60px;

        grid-area: profile-image;

        border-radius: 50%;
        overflow: hidden;
      }

      > .name-and-rating{
        display: flex;
        align-items: center;
        gap: 10px;
        grid-column: name-and-rating;
        grid-row: name-and-rating;

        > .user-rating {
            display: flex;
            gap: 2px;
        }

        > .user-rating > svg,
        > .user-rating > img{
            fill: var(--clr-primary-500);
            width: 20px;
            height: 20px;
        }
      }


      > .user-review-text{
        grid-column: name-and-rating;
        grid-row: review;
      }

    }
  }

  .guia{
    text-align: center;
    row-gap: 40px;

    > h2 {
      grid-column: content;
    }

    >.roadmap{
      grid-column: content;
      display: grid;
      grid-template-columns: [content-left-start] 1fr [content-left-end icon-start] auto [icon-end content-right-start] 1fr [content-right-end];
      column-gap: 24px;
      row-gap: 250px;

      justify-items: center;

      position: relative;

      >.guide-item{
        display: contents;
        --_clr : grey;

        &.contacto{
          --_clr: #E706D0;
        }
        &.presupuesto{
          --_clr: #5CE142;
        }
        &.tiempo{
          --_clr: #9560FF;
        }
        &.listo{
          --_clr: #FFCC00;
        }

        &:nth-of-type(odd) .content{
          grid-column: content-right;
        }
        &:nth-of-type(even) .content{
          grid-column: content-left;
          text-align: right;

          > p {
            justify-self: end;
          }

        }

        > *{
          transition: opacity .3s ease-out, translate .3s ease-out, scale .6s var(--tf-bounce);
        }

        >.circle{
          background-color: var(--_clr);
          aspect-ratio: 1;
          width: 75px;
          grid-column: icon;
          border-radius: 50%;
          grid-row: var(--_row);

          place-items: center;
          position: relative;

          &:not(.active), &:not(.active) + .content{
            opacity: 0;
            translate: 0 50px;
            scale: .8;
          } 

          > svg,
          > img{
            aspect-ratio: 1;
            width: 50%;
            z-index: 1;
          }

          > .step-number {
            position: absolute;
            top: -8px;
            right: -8px;
            background: white;
            color: var(--_clr);
            font-size: 18px;
            font-weight: var(--fw-extrabold);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            border: 3px solid var(--_clr);
            z-index: 2;
          }
        }

        >.content{

          grid-row: var(--_row);
          transition-delay: .1s;

          >h5{
            color: var(--_clr);
          }

          >p{
            width: min(30ch, 100%);
            text-wrap: pretty;
          }
        }
      }

      &::before{
        content: '';
        grid-column: icon;
        grid-row: 1/5;
        border-left: 10px dashed var(--clr-primary-300);
      }

    }
  }

  /* Sección Presentación - Por qué elegirnos */
  .presentacion {
    text-align: center;
    padding-block: clamp(3rem, 8vw, 5rem);
    background: linear-gradient(180deg, var(--clr-neutral-light-500) 0%, rgba(96, 202, 255, 0.05) 100%);

    h2 {
      grid-column: content;
      margin-bottom: 0.5rem;
      color: var(--clr-neutral-dark-900);
    }

    .presentacion-subtitle {
      grid-column: content;
      font-size: clamp(0.9rem, 2vw, 1rem);
      color: #666;
      margin-bottom: clamp(2rem, 5vw, 3rem);
      font-weight: var(--fw-light);
    }

    .beneficios-container {
      grid-column: content;
      display: grid;
      gap: 2rem;
      align-items: center;
      justify-items: center;
      position: relative;
      min-height: 400px;

      /* Mobile: Stack vertical */
      grid-template-columns: 1fr;
      grid-template-areas:
        "top"
        "logo"
        "right"
        "bottom"
        "left";

      /* Tablet y Desktop: Layout circular */
      @media (min-width: 768px) {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 1rem;
        min-height: 500px;
        grid-template-areas:
          ". top ."
          "left logo right"
          ". bottom .";
      }
    }

    /* Logo central */
    .nucleo-logo {
      grid-area: logo;
      width: clamp(80px, 15vw, 120px);
      height: clamp(80px, 15vw, 120px);
      border-radius: 50%;
      background: white;
      box-shadow:
        0 4px 20px rgba(39, 93, 255, 0.15),
        0 0 0 8px rgba(96, 202, 255, 0.1);
      padding: clamp(1rem, 3vw, 1.5rem);
      display: grid;
      place-items: center;
      position: relative;
      z-index: 2;
      transition: transform 0.3s ease, box-shadow 0.3s ease;

      &:hover {
        transform: scale(1.05);
        box-shadow:
          0 6px 30px rgba(39, 93, 255, 0.25),
          0 0 0 12px rgba(96, 202, 255, 0.15);
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }

    /* Beneficios: Estilos base */
    .beneficio {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
      padding: 1.5rem;
      background: white;
      border-radius: 16px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
      transition: all 0.3s var(--tf-bounce);
      cursor: default;
      max-width: 200px;
      width: 100%;
      position: relative;

      /* Hover effect - Feedback visual sutil pero claro */
      &:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 8px 24px rgba(39, 93, 255, 0.18);

        .beneficio-icono {
          background: var(--clr-radial-primary);
          transform: scale(1.1) rotate(5deg);

          svg {
            stroke: white;
          }
        }
      }

      /* Focus state para accesibilidad */
      &:focus-within {
        outline: 3px solid var(--clr-primary-400);
        outline-offset: 4px;
      }

      h3 {
        font-size: clamp(1rem, 2vw, 1.1rem);
        font-weight: var(--fw-semibold);
        color: var(--clr-neutral-dark-900);
        margin: 0;
      }

      p {
        font-size: clamp(0.85rem, 1.5vw, 0.9rem);
        color: #666;
        margin: 0;
        line-height: 1.4;
      }
    }

    /* Íconos de beneficios */
    .beneficio-icono {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--clr-primary-300), var(--clr-primary-400));
      display: grid;
      place-items: center;
      transition: all 0.3s var(--tf-bounce);

      svg {
        width: 32px;
        height: 32px;
        stroke: var(--clr-neutral-dark-900);
        transition: stroke 0.3s ease;
      }
    }

    /* Posicionamiento en grid */
    .beneficio-top {
      grid-area: top;
    }

    .beneficio-right {
      grid-area: right;
    }

    .beneficio-bottom {
      grid-area: bottom;
    }

    .beneficio-left {
      grid-area: left;
    }

    /* Líneas decorativas (opcional - solo desktop) */
    @media (min-width: 768px) {
      .beneficios-container::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(400px, 80%);
        height: min(400px, 80%);
        border: 2px dashed var(--clr-primary-300);
        border-radius: 50%;
        opacity: 0.3;
        z-index: 0;
        pointer-events: none;
      }
    }
  }


}

body>footer {
  grid-row: footer;
  background: var(--clr-primary-600);
  color: var(--clr-neutral-light-500);
  padding: 40px 20px 20px;
  row-gap: 30px;

  .footer-content {
    grid-column: content;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: 25px;
    }
  }

  .footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;

    .footer-logo {
      width: 50px;
      height: auto;
      margin-bottom: 5px;
    }

    p {
      font-size: 14px;
      opacity: 0.85;
      margin: 0;
      line-height: 1.5;
    }

    h3 {
      font-size: 16px;
      font-weight: var(--fw-semibold);
      margin: 0 0 8px 0;
      color: var(--clr-neutral-light-500);
    }
  }

  .contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;

    li {
      font-size: 14px;
      opacity: 0.9;
      display: flex;
      align-items: center;
      gap: 8px;

      svg {
        flex-shrink: 0;
        opacity: 0.8;
      }

      a {
        color: var(--clr-neutral-light-500);
        text-decoration: none;
        transition: opacity 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;

        &:hover {
          opacity: 1;
          text-decoration: underline;
        }
      }
    }
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;

    a {
      color: var(--clr-neutral-light-500);
      text-decoration: none;
      font-size: 14px;
      opacity: 0.85;
      transition: opacity 0.2s;

      &:hover {
        opacity: 1;
      }
    }
  }

  .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--clr-neutral-light-500);
    font-size: 14px;
    transition: background 0.2s;
    width: fit-content;

    &:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    svg {
      flex-shrink: 0;
    }
  }

  .footer-bottom {
    grid-column: content;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 30px;

    p {
      font-size: 12px;
      opacity: 0.6;
      margin: 0;
    }
  }
}


/* Playground */






@keyframes break {
  to {
    translate: 0px 6px;
    rotate: 2deg;
    filter: blur(1px);
  }
}

@keyframes slide {
  to {
    translate: -50%;
  }
}

@keyframes pulse{
  to{
    box-shadow: 0 0 0 10px transparent;
  }
}


*:has(>.marquee) {

  overflow: clip;

  mask-image:
    linear-gradient(to right,
      transparent,
      black var(--_gap),
      black calc(100% - var(--_gap)),
      transparent);

}

.marquee {

  display: flex;
  align-items: center;
  grid-column: full-width;
  gap: var(--_gap);
  padding-left: var(--_gap);
  width: max-content;


  animation: slide var(--_time, 10s) linear infinite;

  >* {
    min-width: fit-content;

    &:not([aria-hidden="true"])+* {
      order: -1;
    }
  }

  &.pausable:is(:hover, :focus-within) {
    animation-play-state: paused;
  }

  &[direction="right"]{
    animation-direction: reverse;
  }



}

/* ========================================
   BOTÓN WHATSAPP STICKY - UX/UI OPTIMIZADO
   ======================================== */

.whatsapp-btn {
  /* Posicionamiento - Ley de Fitts: Esquina accesible */
  position: fixed;
  bottom: clamp(1.25rem, 4vw, 2rem);
  right: clamp(1.25rem, 4vw, 2rem);
  z-index: 999;

  /* Tamaño - Touch target mínimo 44x44px (WCAG) */
  width: clamp(56px, 12vw, 64px);
  height: clamp(56px, 12vw, 64px);

  /* Estilo visual - Color oficial de WhatsApp */
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50%;
  box-shadow:
    0 4px 12px rgba(37, 211, 102, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.2);

  /* Layout interno - Centrado perfecto */
  display: grid;
  place-items: center;

  /* Interacción */
  cursor: pointer;
  text-decoration: none;

  /* Transiciones suaves */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Animación de entrada */
  animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s both;

  /* Efecto pulse sutil - Llama la atención sin ser molesto */
  &::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: pulse-whatsapp 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
  }

  /* HOVER - Feedback visual claro (Heurística: Visibilidad del estado) */
  &:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow:
      0 8px 24px rgba(37, 211, 102, 0.5),
      0 4px 8px rgba(0, 0, 0, 0.3);

    .whatsapp-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateX(-8px);
    }
  }

  /* ACTIVE - Feedback táctil */
  &:active {
    transform: scale(0.95) translateY(-2px);
  }

  /* FOCUS - Accesibilidad (navegación con teclado) */
  &:focus-visible {
    outline: 4px solid #25D366;
    outline-offset: 4px;
  }

  /* Ícono de WhatsApp */
  .whatsapp-icon {
    width: 60%;
    height: 60%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s var(--tf-bounce);
  }

  &:hover .whatsapp-icon {
    transform: rotate(15deg) scale(1.1);
  }

  /* Tooltip - Reconocimiento sobre recuerdo */
  .whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);

    background: var(--clr-neutral-dark-900);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Flecha del tooltip */
    &::after {
      content: '';
      position: absolute;
      right: -6px;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 6px 0 6px 6px;
      border-color: transparent transparent transparent var(--clr-neutral-dark-900);
    }
  }

  /* Mobile: Ocultar tooltip en pantallas pequeñas */
  @media (max-width: 768px) {
    .whatsapp-tooltip {
      display: none;
    }
  }
}

/* ANIMACIONES */

/* Animación de entrada - Bounce suave */
@keyframes slideInBounce {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animación de pulse - Llama atención periódicamente */
@keyframes pulse-whatsapp {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.15);
  }
}

/* RESPONSIVE - Ajustes para móviles */
@media (max-width: 480px) {
  .whatsapp-btn {
    /* Posición ligeramente más arriba en móviles para evitar gestos del sistema */
    bottom: clamp(5rem, 15vw, 6rem);
  }
}

/* PREFERS REDUCED MOTION - Accesibilidad para usuarios sensibles al movimiento */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-btn {
    animation: none;

    &::before {
      animation: none;
      display: none;
    }

    &:hover {
      transform: scale(1.05);
    }
  }
}

/* ========================================
   SECCIÓN UBICACIÓN - UX/UI OPTIMIZADO
   ======================================== */

.ubicacion {
  text-align: center;
  padding-block: clamp(3rem, 8vw, 5rem);
  background: var(--clr-neutral-light-500);

  h2 {
    grid-column: content;
    margin-bottom: 0.5rem;
    color: var(--clr-neutral-dark-900);
  }

  .ubicacion-subtitle {
    grid-column: content;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #666;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    font-weight: var(--fw-light);
  }

  .ubicacion-container {
    grid-column: content;
    display: grid;
    gap: clamp(2rem, 5vw, 3rem);

    /* Mobile: Stack vertical */
    grid-template-columns: 1fr;

    /* Desktop: Mapa izquierda, info derecha */
    @media (min-width: 968px) {
      grid-template-columns: 1.5fr 1fr;
      align-items: start;
      text-align: left;
    }
  }

  /* Mapa de Google Maps */
  .mapa-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;

    /* Aspect ratio 16:9 para mobile */
    aspect-ratio: 16 / 9;

    @media (min-width: 968px) {
      aspect-ratio: auto;
      height: 100%;
      min-height: 400px;
    }

    &:hover {
      box-shadow: 0 8px 30px rgba(39, 93, 255, 0.15);
      transform: translateY(-4px);
    }

    iframe {
      width: 100%;
      height: 100%;
      display: block;
    }
  }

  /* Información de contacto */
  .ubicacion-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    @media (min-width: 968px) {
      gap: 2rem;
    }
  }

  .info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--clr-neutral-light-500);
    border: 1px solid rgba(39, 93, 255, 0.12);
    border-radius: 12px;
    text-align: left;
    cursor: default;
    position: relative;
    overflow: hidden;

    /* Transiciones optimizadas - Separadas para mejor control */
    transition:
      border-color 0.25s ease-out,
      box-shadow 0.25s ease-out,
      transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Efecto de brillo sutil en hover (microinteracción) */
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(96, 202, 255, 0.1),
        transparent
      );
      transition: left 0.5s ease;
      pointer-events: none;
    }

    /* HOVER STATE - Sutil pero claro (Heurística: Visibilidad del estado) */
    &:hover {
      background: #ffffff;
      border-color: var(--clr-primary-400);
      box-shadow:
        0 8px 20px rgba(39, 93, 255, 0.15),
        0 4px 8px rgba(39, 93, 255, 0.08);
      transform: translateY(-2px);

      &::before {
        left: 100%;
      }

      .info-icon {
        background: white;
        color: var(--clr-primary-500);
        border-color: var(--clr-primary-400);
        box-shadow: 0 2px 8px rgba(39, 93, 255, 0.15);
      }

      .info-text h3 {
        color: var(--clr-primary-600);
      }
    }

    /* FOCUS STATE - Accesibilidad */
    &:focus-within {
      outline: 3px solid var(--clr-primary-400);
      outline-offset: 2px;
    }

    .info-icon {
      flex-shrink: 0;
      width: 56px;
      height: 56px;
      background: rgba(255, 255, 255, 0.6);
      color: var(--clr-primary-600);
      border-radius: 12px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(39, 93, 255, 0.1);

      /* Transición suave y natural */
      transition:
        background 0.3s ease-out,
        color 0.3s ease-out,
        box-shadow 0.3s ease-out,
        border-color 0.3s ease-out;

      /* Tamaño del SVG interno */
      svg {
        width: 28px;
        height: 28px;
        stroke-width: 2.5;
      }
    }

    .info-text {
      flex: 1;

      h3 {
        font-size: 1rem;
        font-weight: var(--fw-semibold);
        color: var(--clr-neutral-dark-900);
        margin: 0 0 0.25rem 0;
        transition: color 0.25s ease-out;
      }

      p {
        font-size: 0.9rem;
        color: #666;
        margin: 0;
        line-height: 1.5;
      }

      a {
        color: var(--clr-primary-600);
        text-decoration: none;
        font-weight: var(--fw-semibold);
        transition: color 0.2s ease;
        position: relative;

        /* Underline animado */
        &::after {
          content: '';
          position: absolute;
          bottom: -2px;
          left: 0;
          width: 0;
          height: 2px;
          background: var(--clr-primary-400);
          transition: width 0.3s ease-out;
        }

        &:hover {
          color: var(--clr-primary-400);

          &::after {
            width: 100%;
          }
        }
      }
    }
  }

  /* Botón CTA "Cómo llegar" - Rediseñado completamente */
  .cta-ubicacion {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;

    background: var(--clr-radial-primary);
    color: white;

    border: none;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: var(--fw-semibold);
    text-decoration: none;

    cursor: pointer;
    position: relative;
    overflow: hidden;

    box-shadow:
      0 4px 12px rgba(39, 93, 255, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.1);

    /* Transiciones optimizadas */
    transition:
      transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.3s ease-out;

    /* Efecto de brillo al hacer hover */
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
      );
      transition: left 0.6s ease;
    }

    /* Ícono dentro del botón */
    svg {
      width: 20px;
      height: 20px;
      transition: transform 0.3s var(--tf-bounce);
    }

    /* HOVER - Elevación + Brillo */
    &:hover {
      transform: translateY(-3px);
      box-shadow:
        0 8px 24px rgba(39, 93, 255, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);

      &::before {
        left: 100%;
      }

      svg {
        transform: translateX(3px);
      }
    }

    /* ACTIVE - Feedback táctil */
    &:active {
      transform: translateY(-1px);
      box-shadow:
        0 4px 12px rgba(39, 93, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* FOCUS - Accesibilidad */
    &:focus-visible {
      outline: 3px solid rgba(96, 202, 255, 0.5);
      outline-offset: 3px;
    }

    @media (min-width: 968px) {
      margin-top: auto;
    }

    /* Remover clases overflow-effect que entran en conflicto */
    .top,
    .bottom {
      display: none;
    }
  }

  /* Responsive: Ajustes mobile */
  @media (max-width: 480px) {
    .info-item {
      padding: 1rem;
      gap: 0.75rem;

      .info-icon {
        width: 40px;
        height: 40px;
      }

      .info-text {
        h3 {
          font-size: 0.9rem;
        }

        p {
          font-size: 0.85rem;
        }
      }
    }
  }
}
