@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;600;700&display=swap"); /* fuente de las cartas */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;800&display=swap");

/* ================= SECCIÓN NOSOTROS (seccion 3) ================= */

#sec3 {
  height: 100vh !important;
  max-height: 100vh !important;
}

#sec3 .circle-bg {
  position: absolute;                                /* Se coloca detrás del contenido */
  top: 50%; left: 50%;                               /* Lo posicionamos en el centro */
  transform: translate(-50%, -50%);                  /* empieza escondido */

  width: clamp(60vw, 85vw, 92vw);
  height: clamp(55vh, 72vh, 88vh);

  background: #7ED957;
  border-radius: 30%;
  z-index: 0;                                        /* Debajo del contenido */
}

#sec3 .nosotros__contenido {
  position: relative;                                /* Para permitir z-index */
  z-index: 2;                                        /* encima del círculo */

  max-width: 82%;
  max-height: 85%;
  
  margin-inline: auto;
  padding: clamp(1rem, 3.5vw, 3rem);
  color: #ffffff;

  display: flex;                                     /* Centra verticalmente el texto interno */
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  box-sizing: border-box;                            /* Incluye el padding dentro del tamaño */
  overflow: hidden;                                  /* Evita desbordes del texto en el circulo */
}

#sec3 .title-aurora {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;

  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;

  margin-bottom: 1.5rem;
  color: #ffffff;                                  /* Fallback inmediato */

  /* AURORA */
  background-image:
    radial-gradient(circle at 20% 30%, #6057d9 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, #ff833c 0%, transparent 55%),
    radial-gradient(circle at 50% 80%, #ff00d4 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, #5abdff 0%, transparent 55%);

  background-size: 200% 200%;
  animation: auroraText 10s ease-in-out infinite;
  animation-play-state: paused;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes auroraText {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#sec3 .nosotros__contenido h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);             /* Tamaño flexible según pantalla. Minimo 2, maximo 3, preferiblemente 5.5 */
}

#sec3 .nosotros__contenido p {
  max-width: 78ch;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  font-weight: 600;
  color: rgba(27, 71, 25, 0.92);
  letter-spacing: 0.01em;
  margin: 0 auto 1.5rem auto;
}

#sec3 .highlight {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.25em;
  font-weight: 900;
  color: #985fb3;
  letter-spacing: 0.02em;
}

#sec3 .highlight.alt {
  color: #009fb1;
}

#sec3 .highlight.strong {
  color: #c4ff5a;
}


.btn-next {
  position: absolute;                                /* Lo fija en la esquina inferior-derecha (gracias a bottom y right) */
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;                              /* Crea un círculo perfecto independientemente del tamaño */
  border: 2px solid currentColor;                    /* Hace que el borde use el mismo color del texto */
  color: #fff;
  display: inline-flex;                              /* Centra perfectamente el símbolo “↓” */
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  z-index: 3;                                        /* Arriba del contenido (2) y del círculo (0) */
}

.btn-next:hover { 
  background: #fff; 
  color: #000; 
  transform: translateY(-3px);                       /* Lo levanta al hacer hover */
}

#sec3 .btn-sec3 {
  display: inline-block;
  margin-top: clamp(0.8rem, 2vh, 1.6rem);
  padding: clamp(0.55rem, 1.2vw, 0.9rem) clamp(1.2rem, 2.4vw, 1.8rem);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  z-index: 3;                                        /* encima del círculo */
  position: relative;
  transition: background 0.3s, transform 0.2s;

  will-change: transform;                            /* will-change + translateZ(0): Activa GPU → evita glitch en hover */
  transform: translateZ(0);
}

#sec3 .btn-sec3:hover {
  background: rgba(255, 255, 255, 0.25);           /* Cambia a fondo semitransparente */
  transform: translateY(-2px);
}


/* En tactil -------------------------------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  #sec3 .circle-bg {
    /* valores "visual fallback" para cuando JS no corre inmediatamente */
    width: 92vw;
    height: 86vh;
  }

  #sec3 .title-aurora {
    animation: none;
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    letter-spacing: 0.02em;
  }

  #sec3 .nosotros__contenido {
    justify-content: flex-start;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    text-align: left;
  }
  
  #sec3 .nosotros__contenido p {
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
    line-height: 1.35;
    margin-bottom: 1rem;
  }
}
