/* VARIABLES */
:root {
  --primary-color: #00254D;
  --bg-color: #f5f5f5;
  --font-pangram: 'Montserrat', sans-serif; /* sustituto si no tienes Pangram */
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  background-color: var(--bg-color);
  overflow-x: hidden;
  font-family: var(--font-pangram);
  color: var(--primary-color);
}

/* HEADER */
/* HEADER BASE */
.header {
  --header-ink: #00254D;
  --header-contrast: #f5f5f5;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  z-index: 100;
}

.logo-img {
  height: 140px;
  width: auto;
}

.header-buttons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

/* === BOTÓN MENÚ === */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid var(--header-ink);
  border-radius: 50px;
  background: transparent;
  padding: 14px 65px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 64px;
}

.menu-text {
  font-family: "Pangram", sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--header-ink);
  letter-spacing: 0.5px;
}

/* Icono hamburguesa */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--header-ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hover: las líneas se expanden */
.menu-btn:hover .hamburger span:nth-child(1) {
  width: 26px;
}
.menu-btn:hover .hamburger span:nth-child(2) {
  width: 18px;
}
.menu-btn:hover .hamburger span:nth-child(3) {
  width: 26px;
}

/* === BOTÓN CONTACTO === */
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid var(--header-ink);
  border-radius: 50px;
  background-color: var(--header-ink);
  color: var(--header-contrast);
  padding: 14px 36px;
  text-decoration: none;
  font-family: "Pangram", sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  height: 64px;
  overflow: hidden;
  position: relative;
}

/* Círculo con flecha */
.circle-arrow {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: #FDDF8B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.arrow {
  color: var(--primary-color);
  font-size: 21px;
  position: absolute;
  transition: transform 0.6s ease, opacity 0.3s ease;
  font-weight: 10;
}

.header.header-on-dark {
  --header-ink: #f5f5f5;
  --header-contrast: #00254D;
}

/* Animación de flecha al hover */
.contact-btn:hover .arrow {
  animation: arrow-slide 0.6s ease;
}

@keyframes arrow-slide {
  0%   { transform: translateX(0); opacity: 1; }
  40%  { transform: translateX(15px); opacity: 0; }
  60%  { transform: translateX(-15px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}


/* HERO */
.hero {
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  text-align: center;
  position: relative;
}

/* Texto desplazándose */
.scroll-text {
  position: absolute;
  top: 50%;
  left: 75%;
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 15rem);
  white-space: nowrap;
  transform: translateY(-50%);
  animation: slideText 75s linear infinite;
  line-height: 0.9;
  opacity: 0.9;
}

@keyframes slideText {
  from { transform: translate(-28%, -50%); }
  to { transform: translate(-110%, -50%); }
}

/* Objeto flotante */
.floating-object {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(300px, 34vw, 480px);
  height: clamp(300px, 34vw, 480px);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, calc(-50% + var(--hero-scroll-offset, 0px)));
}

.floating-img {
  width: 132%;
  height: 132%;
  object-fit: contain; /* mantiene proporciones de la imagen */
  filter: drop-shadow(0px 20px 30px rgba(0,0,0,0.4)); /* sombra adaptada al PNG */
}

.hero-scroll-cue {
  display: none;
}

@keyframes float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -40px; }
}

/* Textos inferiores */
.bottom-texts {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(2.5rem, 8vw, 10rem);
  width: min(92vw, 1200px);
  justify-content: center;
}
.bottom-texts p {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.55rem);
  color: var(--primary-color);
  white-space: nowrap;
}

@media (max-width: 1366px){
  .hero {
    min-height: 640px;
  }

  .scroll-text {
    font-size: clamp(4.3rem, 15vw, 11rem);
  }

  .floating-object {
    width: clamp(260px, 31vw, 390px);
    height: clamp(260px, 31vw, 390px);
  }

  .floating-img {
    width: 124%;
    height: 124%;
  }

  .bottom-texts {
    bottom: 8%;
    gap: clamp(1.6rem, 4.4vw, 4rem);
  }
}

@media (min-width: 993px) and (max-width: 1440px) {
  .header {
    padding: 1.1rem 2rem;
  }

  .logo-img {
    height: 116px;
  }

  .header-buttons {
    gap: 0.8rem;
  }

  .menu-btn {
    height: 54px;
    padding: 12px 40px;
    gap: 10px;
  }

  .menu-text {
    font-size: 16px;
  }

  .contact-btn {
    height: 54px;
    padding: 12px 26px;
    gap: 10px;
    font-size: 16px;
  }

  .circle-arrow {
    width: 34px;
    height: 34px;
  }

  .arrow {
    font-size: 18px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    max-width: 1320px;
  }

  .scroll-text {
    font-size: clamp(4rem, 13vw, 9rem);
  }

  .floating-object {
    width: clamp(300px, 32vw, 420px);
    height: clamp(300px, 32vw, 420px);
  }

  .floating-img {
    width: 128%;
    height: 128%;
  }

  .bottom-texts {
    width: min(92vw, 1200px);
    gap: clamp(1.6rem, 4.4vw, 4rem);
  }

  .bottom-texts p {
    font-size: clamp(0.95rem, 1.6vw, 1.55rem);
  }
}

@media (max-width: 768px){
  .hero {
    min-height: 100svh;
    padding: 0 1.25rem;
    display: block;
  }

  .hero-inner {
    height: 100%;
    min-height: 100svh;
  }

  .scroll-text {
    top: 15%;
    font-size: clamp(3.2rem, 18vw, 7rem);
    opacity: 0.72;
  }

  .floating-object {
    width: clamp(220px, 62vw, 310px);
    height: clamp(220px, 62vw, 310px);
    top: 8%;
  }

  .floating-img {
    width: 116%;
    height: 116%;
  }

  .bottom-texts {
    inset: 0;
    transform: none;
    width: 100%;
    pointer-events: none;
    justify-content: unset;
    gap: 0;
  }

  .bottom-texts p {
    position: absolute;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    flex: none;
  }

  .bottom-texts p:nth-child(1){
    top: 0.75rem;
    left: 8%;
  }

  .bottom-texts p:nth-child(2){
    top: 0.75rem;
    right: 8%;
  }

  .bottom-texts p:nth-child(3){
    bottom: 2.5rem;
    left: 8%;
  }

  .bottom-texts p:nth-child(4){
    bottom: 2.5rem;
    right: 8%;
  }

  .bottom-texts p:nth-child(5){
    display: none;
  }
}

@media (max-width: 480px){
  .hero {
    min-height: 100svh;
    padding: 6rem 1rem 1.5rem;
  }

  .scroll-text {
    top: 43%;
    font-size: clamp(2.3rem, 20vw, 4.6rem);
    opacity: 0.5;
  }

  .floating-object {
    width: min(66vw, 236px);
    height: min(66vw, 236px);
    top: 47%;
  }

  .floating-img {
    width: 104%;
    height: 104%;
  }

  .bottom-texts {
    display: block;
  }

  .bottom-texts p {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .bottom-texts p:nth-child(1){
    top: 0.5rem;
    left: 7%;
  }

  .bottom-texts p:nth-child(2){
    top: 0.5rem;
    right: 7%;
  }

  .bottom-texts p:nth-child(3){
    bottom: 2rem;
    left: 7%;
  }

  .bottom-texts p:nth-child(4){
    bottom: 2rem;
    right: 7%;
  }

  .bottom-texts p:nth-child(5){
    display: none;
  }
}



/* =========================
SECCION ABOUT ENNCO
========================= */

.ennco-about{
position:relative;
height:100vh;
background:white;
overflow:hidden;
}

/* contenedor sticky */

.about-sticky{
position:relative;
height:100vh;
overflow:hidden;
z-index:5;
}

/* contenedor imágenes */

.about-images{
position:absolute;
width:100%;
height:100%;
top:0;
left:0;
pointer-events:none;
transform-origin:center center;
}

.about-orbit{
position:absolute;
top:50%;
left:50%;
width:0;
height:0;
z-index:2;
pointer-events:none;
}

/* imágenes */

.about-img{
position:absolute;
top:50%;
left:50%;
width:clamp(108px, 12vw, 186px);
height:auto;
max-height:clamp(104px, 16vw, 210px);
transform:translate(-50%, -50%);
border-radius:14px;
object-fit:cover;
will-change:transform;
transform-origin:center;
box-shadow: 0 24px 50px rgba(0, 37, 77, 0.14);
backface-visibility:hidden;
}

/* posiciones iniciales */

.img1,
.img2,
.img3,
.img4,
.img5,
.img6{
  right:auto;
  bottom:auto;
}

/* texto centro */

.about-text{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  text-align:center;
  width:min(88vw, 700px);
  max-width:700px;
  z-index:6;
  padding:0 1rem;
}

.about-description{
  opacity:0;
  transform:translateY(40px);
}

.about-title{
  font-size:clamp(2.4rem, 5vw, 5.6rem);
  line-height:0.95;
  margin:0 0 1rem;
}

.about-description{
  font-size:clamp(1rem, 1.35vw, 1.2rem);
  line-height:1.55;
}

.about-description .about-emphasis{
  font-weight: 700;
}

@media (max-width: 1200px){
  .about-img{
    width:clamp(120px, 18vw, 190px);
  }

  .about-text{
    width:min(82vw, 620px);
  }
}

@media (max-width: 768px){
  .ennco-about{
    min-height:100vh;
  }

  .about-sticky{
    height:100vh;
  }

  .about-img{
    width:clamp(82px, 16vw, 124px);
    max-height:clamp(88px, 18vw, 154px);
    border-radius:12px;
    box-shadow: 0 16px 34px rgba(0, 37, 77, 0.14);
  }

  .about-text{
    width:min(86vw, 500px);
  }

  .about-title{
    font-size:clamp(2rem, 8vw, 3.6rem);
  }

  .about-description{
    font-size:0.98rem;
    line-height:1.5;
  }
}

@media (max-width: 480px){
  .about-img{
    width:clamp(72px, 18vw, 112px);
    max-height:clamp(84px, 21vw, 136px);
    border-radius:10px;
  }

  .about-text{
    width:min(90vw, 340px);
  }

  .about-title{
    font-size:clamp(1.8rem, 9vw, 2.6rem);
  }

  .about-description{
    font-size:0.92rem;
    line-height:1.45;
  }
}

.proyectos{
  height:240vh;
  background:white;
  position:relative;
  z-index:2;
}





/* === SECCIÓN 2: REVEAL GRID === */
/* === SECCIÓN 2: VIDEO + CORTINILLAS TRAPECIO === */
.reveal-section {
  position: relative;
  z-index: 5;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0; /* quita espacio extra */
}

.reveal-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-bg iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}


.text-and-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.reveal-text {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 25%;
  font-family: 'Pangram', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  color: #00254D;
  text-transform: uppercase;
  line-height: 1.1;
  z-index: 3;

  /* Sombra */
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.4);
}








/* Cortinillas horizontales */
/* === SECCIÓN 2: CORTINILLAS TRAPECIO QUE SE CIERRAN A LÍNEA === */
.grid-wrapper {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

/* Cada bloque horizontal */
.grid-col {
  background-color: #f5f5f5;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.9s ease, opacity 0.6s ease;
}


/* Delays progresivos para efecto en cadena */
.grid-col:nth-child(1)  { transition-delay: 0s; }
.grid-col:nth-child(2)  { transition-delay: 0.1s; }
.grid-col:nth-child(3)  { transition-delay: 0.2s; }
.grid-col:nth-child(4)  { transition-delay: 0.3s; }
.grid-col:nth-child(5)  { transition-delay: 0.4s; }
.grid-col:nth-child(6)  { transition-delay: 0.5s; }
.grid-col:nth-child(7)  { transition-delay: 0.6s; }
.grid-col:nth-child(8)  { transition-delay: 0.7s; }
.grid-col:nth-child(9)  { transition-delay: 0.8s; }
.grid-col:nth-child(10) { transition-delay: 0.9s; }

/* Estado 1: trapecio que se empieza a cerrar */
.grid-transform .grid-col {
  clip-path: polygon(35% 20%, 65% 20%, 100% 100%, 0 100%);
}

/* Estado 2: se forma una línea (sin desaparecer aún) */
.grid-line .grid-col {
  clip-path: polygon(50% 50%, 50% 50%, 100% 100%, 0 100%);
  opacity: 1;
}

/* Estado 3: se disuelve suavemente */
.grid-collapse .grid-col {
  clip-path: polygon(50% 50%, 50% 50%, 100% 100%, 0 100%);
  opacity: 0;
}



/* ===============================
   SECCIÓN PROYECTOS
================================ */

.proyectos{
  height:240vh;
  background:white;
  position:relative;
  z-index:2;
  overflow:visible;
}


.pin-wrap{
  position:sticky;
  top:0;
  width:100%;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}



.img{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
}

.contenido{
  position:absolute;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:4;
}



.linea{
  display:block;
}

.fuera{
  color:#00254D;
}

.dentro{
  color:white;
}

.amarillo{
  color:#F4C430;
}

.azul{
  color:#00254D;
}

.blanco{
  color:white;
}

.titulo{
font-size:clamp(28px,6vw,135px);
font-weight:800;
line-height:0.9;
position:absolute;
top:0;
left:0;
}



.titulo-wrap{
position:absolute;
right:30%;
top:50%;
transform:translateY(-50%);
width:320px;
height:200px;
}

.titulo-base{
color:white;
position:absolute;
top:0;
left:0;
z-index:1;
}

.titulo-mask{
color:#00254D;
position:absolute;
top:0;
left:0;
z-index:3;
pointer-events:none;
}

.texto-lateral{
  position:absolute;
  left:115px;   /* mueve el texto hacia la izquierda */
  top:50%;
  transform:translateY(-50%);

  font-size:1.3rem;
letter-spacing:1px;
line-height:1;
  font-weight:400;
  color:#00254D;
  max-width:200px;
  
}



/* IMAGEN */
.imagenes{
  width:min(40vw,600px);
  aspect-ratio:1/1;
  max-width:600px;
  max-height:600px;

  border-radius:30px;
  overflow:hidden;

  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);

  isolation:isolate;
}

/* LABELS LADO IZQUIERDO */
.lado-izquierdo{
position:absolute;

left:calc(50% - 620px);

top:50%;
transform:translateY(-50%);

width:auto;

display:flex;
flex-direction:column;
gap:120px;
}

.labels{
display:flex;
flex-direction:column;
gap:25px;
margin-top:20px;
line-height:0.9;

}


.label-wrap{
  position:relative;
  font-size:clamp(18px,3vw,70px);
  font-weight:700;
  opacity:0;
  width:max-content;
}

.label-wrap:first-child{
opacity:1;
transform:translateY(0);
}

.label-base{
  color:#00254D;
  z-index:1;
}

.label-mask{
  position:absolute;
top:0;
left:0;
color:white;
z-index:3;
pointer-events:none;
clip-path: inset(0 0 0 var(--corte));
}
.label-wrap{
  transform:translateY(40px);
}

.plus{
position:absolute;
width:40px;
height:40px;
z-index:20;
pointer-events:none;
}

/* esquina superior izquierda de la imagen */
.plus-top{
top:calc(50% - 340px);
left:calc(50% - 340px);
}

/* esquina inferior derecha de la imagen */
.plus-bottom{
top:calc(50% + 300px);
left:calc(50% + 300px);
}

/* DESKTOP PEQUEÑO / LAPTOP */
@media (min-width: 993px) and (max-width: 1440px){

  .proyectos{
    height:220vh;
  }

  .imagenes{
    width:clamp(380px, 33vw, 470px);
    max-width:470px;
    max-height:470px;
    border-radius:26px;
    left:56%;
  }

  .lado-izquierdo{
    left:calc(56% - clamp(318px, 23vw, 386px));
    gap:72px;
  }

  .labels{
    gap:16px;
    margin-top:30px;
    line-height:0.86;
  }

  .label-wrap{
    font-size:clamp(24px, 2.8vw, 54px);
  }

  .titulo-wrap{
    left:calc(56% + clamp(74px, 7vw, 128px));
    right:auto;
    width:clamp(180px, 16vw, 220px);
    height:clamp(126px, 12vw, 150px);
  }

  .titulo{
    font-size:clamp(42px, 4.6vw, 92px);
  }

  .texto-lateral{
    left:clamp(42px, 4.5vw, 92px);
    top:50%;
    transform:translateY(-50%);
    font-size:clamp(1.18rem, 1.45vw, 1.5rem);
    line-height:1.08;
    max-width:clamp(190px, 16vw, 240px);
  }

  .plus{
    width:30px;
    height:30px;
  }

  .plus-top{
    top:calc(50% - 262px);
    left:calc(56% - 262px);
  }

  .plus-bottom{
    top:calc(50% + clamp(228px, 16.6vw, 244px));
    left:calc(56% + clamp(216px, 15.6vw, 232px));
  }
}


/* desktop peque o TABLET proyectos */
@media (max-width:1024px){

.proyectos{
height:240vh;
}

/* imagen vertical */
.imagenes{
width:560px;
height:980px;
}

/* izquierda */
.lado-izquierdo{
left:calc(50% - 330px);
gap:80px;
}

/* texto izquierda */
.labels{
gap:16px;
line-height:0.8;
}

/* titulo derecha */
.titulo-wrap{
right:calc(50% - 330px);
width:280px;
}

/* texto superior */
.texto-lateral{
top:12%;
left:50%;
transform:translateX(-50%);
font-size:1rem;
max-width:220px;
text-align:center;
z-index:12;
}

.plus{
width:34px;
height:34px;
}

/* rayo arriba izquierda */
.plus-top{
top:calc(50% - 500px);
left:calc(50% - 300px);
}

/* rayo abajo derecha */
.plus-bottom{
top:calc(50% + 460px);
left:calc(50% + 260px);
}

}


/* TABLET O MOVIL GRANDE proyectos */

@media (max-width:768px){

.proyectos{
height:190vh;
}

/* imagen vertical */
.imagenes{
width:280px;
height:580px;
border-radius:20px;
}

/* izquierda */
.lado-izquierdo{
left:calc(50% - 214px);
gap:60px;
}

/* textos */
.labels{
gap:12px;
line-height:0.75;
}

.label-wrap{
font-size:clamp(16px,4vw,28px);
}

/* titulo derecha */
.titulo-wrap{
right:calc(50% - 176px);
width:150px;
}

.titulo{
font-size:clamp(26px,7vw,42px);
}

/* texto arriba */
.texto-lateral{
top:9%;
left:50%;
transform:translateX(-50%);
font-size:0.85rem;
max-width:180px;
text-align:center;
z-index:12;
}

.plus{
width:28px;
height:28px;
}

/* arriba izquierda */
.plus-top{
top:calc(50% - 310px);
left:calc(50% - 170px);
}

/* abajo derecha */
.plus-bottom{
top:calc(50% + 270px);
left:calc(50% + 150px);
}



}


/* MOVIL PEQUEÑO */
@media (max-width:480px){

.proyectos{
height:175vh;
}

/* imagen */
.imagenes{
width:263px;
height:560px;
}

/* SUBIR textos industriales */
.lado-izquierdo{
left:calc(50% - 188px);
gap:50px;
top:50%;
transform:translateY(-50%);
}

/* textos */
.labels{
gap:10px;
}

.label-wrap{
font-size:22px;
}

/* BAJAR titulo */
.titulo-wrap{
right:calc(57% - 154px);
width:160px;
top:65%;
transform:translateY(-50%);
}

.titulo{
font-size:35px;
}

/* parrafo */
.texto-lateral{
top:9%;
left:50%;
transform:translateX(-50%);
font-size:0.82rem;
line-height:1.15;
max-width:180px;
text-align:center;
z-index:12;
}

.plus{
width:24px;
height:24px;
}

/* arriba izquierda */
.plus-top{
top:calc(50% - 300px);
left:calc(50% - 160px);
}

/* abajo derecha */

/* abajo derecha */
.plus-bottom{
top:calc(50% + 270px);
left:calc(50% + 140px);
}

}





/* ===============================
   CONTADOR ENERGÍA
================================ */

/* ===============================
   SECCIÓN ENERGÍA
================================ */

.seccion-energia{
height:100vh;
background:white;

display:flex;
align-items:center;
justify-content:center;
text-align:center;
}

@media (max-width: 768px){
  .seccion-energia{
    height: auto;
    min-height: 0;
    align-items: center;
    padding: 14px 0 10px;
  }
}

@media (max-width: 480px){
  .seccion-energia{
    height: auto;
    min-height: 0;
    padding: 10px 0 6px;
  }
}

/* contador */

.energy-counter{
display:flex;
flex-direction:column;
align-items:center;
gap:20px;
}

@media (max-width: 768px){
  .energy-counter{
    gap: 6px;
  }

  .energy-number{
    font-size: clamp(42px, 10vw, 74px);
  }

  .energy-label{
    font-size: clamp(12px, 2.8vw, 15px);
    letter-spacing: 2px;
  }
}

.energy-number{
font-size:clamp(60px,10vw,140px);
font-weight:800;
color:#00254D;
letter-spacing:2px;
line-height:1;
}

.energy-label{
font-size:clamp(14px,2vw,18px);
color:#666;
text-transform:uppercase;
letter-spacing:3px;
}




/* === SECCIÓN 3: DRONE REVEAL === */
/* === SECCIÓN 3: DRONE FLOATING IMAGE === */
.drone-section {
  position: relative;
  height: 100vh;
  overflow: hidden; /* evita espacio extra */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* texto a la izquierda */
  padding: 0 6%;
  background: #ffffff;
}

.drone-text {
  flex: 1;
  max-width: 45%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centrado vertical */
}

.drone-text h3 {
  font-family: "Codec Pro", "Montserrat", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: #00254D;
  margin-bottom: 1rem;
}




/* === DRONE TEXT: clases específicas para evitar herencia problemática === */

/* Estilo base para el texto principal (desktop) */
.drone-text .drone-body {
  font-family: "Pangram", sans-serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem); /* menos agresivo que el anterior */
  line-height: 1.4;
  color: #00254D;
  margin: 0;
}

/* Leyenda (siempre pequeña) */
.drone-text .drone-legend {
  font-family: "Pangram", sans-serif;
  font-style: italic;
  font-weight: 300;
  color: #00254D;
  opacity: 0.75;
  margin-top: 12px;
  font-size: clamp(1.4rem, 1.5vw, 1.4rem); /* pequeña en todo tamaño */
  line-height: 1.3;
}





.drone-image-container {
  flex: 1;
  display: flex;
  align-items: flex-end; /* empieza desde abajo */
  justify-content: center;
  overflow: visible;
  position: relative;
}

.drone-img {
  max-width: 80%;
  transform: translateY(100%); /* inicia fuera de la vista */
  transition: transform 0.08s linear;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  
  /* sombra que sigue la forma del PNG */
  filter: drop-shadow(0px 20px 30px rgba(0,0,0,0.35));
}

@media (min-width: 993px) and (max-width: 1440px) {
  .drone-section {
    padding: 0 4.5%;
    gap: 24px;
  }

  .drone-text {
    max-width: 42%;
  }

  .drone-text h3 {
    font-size: 1.15rem;
    letter-spacing: 1.4px;
    margin-bottom: 0.75rem;
  }

  .drone-text .drone-body {
    font-size: clamp(1.18rem, 1.8vw, 1.75rem);
    line-height: 1.34;
  }

  .drone-text .drone-legend {
    font-size: clamp(1rem, 1.1vw, 1.12rem);
    margin-top: 10px;
    line-height: 1.25;
  }

  .drone-img {
    max-width: 76%;
    filter: drop-shadow(0px 16px 24px rgba(0,0,0,0.26));
  }
}



/* Leyenda bajo el texto principal de la sección del drone */





/* === SECCIÓN 4: CARDS === */
/* === SECCIÓN DE CARDS ENNCO === */
/* === SECCIÓN 4: CARDS === */


/* === TÍTULO CON FLECHA INTEGRADA === */
.cards-header {
  width: 90%;
  margin: 0 auto 40px auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cards-section-title {
  font-family: 'Codec Pro', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  color: #00254D;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px; /* pequeño espacio entre texto y flecha */
}

.cards-inline-arrow {
  text-decoration: none;
  color: #00254D;
  font-weight: 800; /* negrita */
  font-size: 1em; /* proporcional al texto */
  display: inline-block;
  transition: transform 0.3s ease;
}

.cards-inline-arrow:hover {
  transform: translate(6px, -6px); /* animación como en footer */
}

/* === LINK "VER TODO" ABAJO A LA DERECHA === */
.view-all-link {
  display: block;
  width: 90%;
  margin: 80px auto 0 auto;
  text-align: right;
  font-family: 'Pangram', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 20px);
  color: #00254D;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.view-all-link:hover {
  opacity: 0.7;
}


/* ...otros estilos de las cards... */

/* Títulos de borde vertical centrados */
/* Títulos verticales en borde derecho */



/* Título principal */
.cards-section-title {
  font-family: 'Pangram', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 3rem);
  position: absolute;
  top: 2%;
  left: 5%;
  color: var(--primary-color);
  z-index: 10;
}

.ennco-cards-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5% 0;
  position: relative;
}

.ennco-cards-container {
  position: relative;
  width: min(84vw, 1180px);
  aspect-ratio: 1060 / 628;
}

@media (min-width: 993px) and (max-width: 1440px) {
  .ennco-cards-container {
    width: min(58vw, 740px);
    aspect-ratio: 1060 / 760;
  }

  .ennco-card {
    padding: 3.2%;
    border-radius: 15px;
  }

  .ennco-card-content {
    max-width: 76%;
    padding-right: 6.5%;
    padding-left: 4%;
  }

  .ennco-card-content h2 {
    font-size: clamp(0.9rem, 1.05vw, 1.08rem);
    margin-bottom: 0.45rem;
  }

  .ennco-card-content p {
    font-size: clamp(0.64rem, 0.72vw, 0.74rem);
    line-height: 1.22;
  }

  .card-img {
    max-width: 30%;
    margin-bottom: 0.3rem;
  }

  .card-border-title {
    font-size: clamp(0.92rem, 1.08vw, 1.04rem);
    right: 12px;
  }

  .ennco-card.shift-left .card-border-title {
    left: 4px;
    right: auto;
    top: 50%;
    transform: rotate(-90deg) translate(-50%, -50%);
    max-width: none;
  }

  .ennco-card:not(.shift-left):not(.active) .card-border-title {
    right: 4px;
  }

  .ennco-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    right: 3%;
    bottom: 3%;
  }

  .ennco-card.shift-left .ennco-toggle-btn {
    right: 2%;
  }
}

/* Cards */
.ennco-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--card-color, #1A3E5C);
  border-radius: 20px;
  color: #fff;
  padding: 5%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.77,0,0.175,1),
              z-index 0.3s ease,
              opacity 0.6s ease-out,
              background-color 0.3s ease;
  z-index: 1;
}

.ennco-card.visible {
  opacity: 1;
}

.ennco-card-content {
  max-width: 75%;
  padding-right: 15%;
  padding-left: 9%;
}

.ennco-card-content h2 {
  font-family: "Codec Pro", "Montserrat", sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 1rem;
}

.ennco-card-content p {
  font-family: "Pangram", "Montserrat", sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.4;
}

/* Botón toggle */
.ennco-toggle-btn {
  position: absolute;
  bottom: 4%;
  right: 4%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #1A3E5C;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
  z-index: 20;
}

.ennco-toggle-btn:hover { transform: scale(1.1); }

/* Título vertical borde */
/* =======================
   TITULO DESKTOP
   ======================= */
.card-border-title {
  position: absolute;
  right: 5px;
  top: 60%;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: center center;
  font-family: 'Codec Pro', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
  transition: all .3s ease;
  z-index: 15;
}

/* Card activa = título oculto */
.ennco-card.active .card-border-title {
  opacity: 0;
}


/* Card desplazada a la izquierda */
/* Card desplazada a la izquierda */
.ennco-card.shift-left .card-border-title {
  transform: rotate(-90deg) translate(-50%, -50%);
  top: 50%;
  left: 50%; /* coloca el título en el medio del borde visible */
  right: auto;
  bottom: auto;
  opacity: 1;
  transform-origin: center center;
}

/* Posiciones iniciales de las cards */
.ennco-card:nth-child(1){ transform: translateX(0%) scale(1); z-index:4; }
.ennco-card:nth-child(2){ transform: translateX(96px) scale(1); z-index:3; }
.ennco-card:nth-child(3){ transform: translateX(192px) scale(1); z-index:2; }
.ennco-card:nth-child(4){ transform: translateX(288px) scale(1); z-index:1; }

/* Card activa */
.ennco-card.active { transform: translateX(0%) scale(1.02); z-index:10; }

/* Imagen centrada */
.card-img {
  display:block;
  margin:0 auto 1rem;
  max-width:50%;
  height:auto;
}



/* === SECCIÓN 4: CARDS === */




/* ...otros estilos de las cards... */

/* Títulos de borde vertical centrados */
/* Títulos verticales en borde derecho */
.card-border-title {
  position: absolute;
  top: 60%;
  right: 5px; /* espacio desde borde visible */
  left: 90%;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: center center;
  font-family: 'Codec Pro', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  transition: all 0.3s ease;
  z-index: 15;
}

/* Ocultar título cuando la card está activa */
.ennco-card.active .card-border-title {
  opacity: 0;
}

/* Títulos de cards apiladas a la izquierda */
.ennco-card.shift-left .card-border-title {
  top: 60%;
  right: 5%; /* espacio desde borde visible */
  left: 20px; /* espacio desde borde visible izquierdo */
  right: auto;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: center center;
  opacity: 1;
}

/* === SECCIÓN 4: FONDO DE LAS CARDS === */
.ennco-cards-section {
  background-color: #f5f5f5; /* fondo gris claro */
  width: 100%;
  min-height: 100vh; /* ocupa toda la altura visible */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 0; /* espacio arriba y abajo */
  overflow: hidden;
}

.cards-section-title {
  font-family: 'Codec Pro', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  color: #00254D;
  margin-bottom: 60px;
  text-align: center;
}






/* =========================================================
   === RESPONSIVE VERTICAL MODE (TABLET & MOBILE) ===
   ========================================================= */
/* MODO VERTICAL (TABLET / MÓVIL) */
/* =========================================================
   MODO VERTICAL (TABLET / MÓVIL) - APILADO CON SOLAPE
   ========================================================= */
@media (max-width: 992px) {

  .ennco-cards-section {
  overflow: visible !important;
  padding-bottom: 24px; /* espacio extra para respiración */
}

  .ennco-cards-container {
    width: 90%;
    max-width: 650px;
    margin: 0 auto;
    overflow: visible !important;
    margin-bottom: 0 ;
  }


/* Estilo específico para "Ver todo" en móvil: centrado y fuera del stack */
.view-all-link {
  display: block !important;
  width: 100% !important;
  max-width: 650px;        /* mismo ancho que el contenedor en mobile */
  margin: 18px auto 0 auto !important; /* separarlo del contenedor */
  text-align: center !important;       /* centrado */
  z-index: 5 !important;   /* por debajo de las cards (ellas usan z > 100) */
  position: relative !important;
  pointer-events: auto;    /* clickables normalmente */
}
  .ennco-card {
    position: absolute !important;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100% !important;
    max-width: 650px;
    height: 430px !important;     /* cambiar aquí = cambiar JS cardHeight */
    padding: 28px 30px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(10,30,50,0.08);
    transition: transform 0.45s cubic-bezier(.2,.9,.3,1), z-index 0.2s ease, opacity 0.25s ease;
    will-change: transform;
    overflow: hidden;
    background: var(--card-color, #fff); /* conserva color si usas inline styles */
  }

  .ennco-card.visible { opacity: 1; }

  .ennco-card .ennco-card-content {
    width: 100%;
    max-width: 100%;
    max-height: none;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .ennco-card .ennco-card-content h2 {
    font-size: clamp(1.35rem, 4.6vw, 1.85rem);
    margin-bottom: 10px;
  }

  .ennco-card .ennco-card-content p {
    width: 100%;
    max-width: 100%;
    font-size: clamp(0.98rem, 3.5vw, 1.08rem);
    line-height: 1.5;
    margin: 0;
  }

  .card-img {
    width: min(72%, 290px);
    max-height: 38%;
    object-fit: contain;
    display: block;
    margin: 24px auto 14px;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .ennco-toggle-btn {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
    position: absolute;
  }

/* Títulos móviles dinámicos */
  .ennco-card .card-border-title {
  position: absolute;
  left: 20px;
  right: auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 60;
  display: block;
  max-width: calc(100% - 92px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: top 0.3s ease, bottom 0.3s ease;
}

  .ennco-card.active .card-border-title,
  .ennco-card:not(.active) .card-border-title {
    opacity: 1 !important;
  }


  .ennco-card.active .ennco-card-content {
    opacity: 1;
    transform: translateY(0);
  }

  .ennco-card.active .card-img {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .ennco-card:not(.active) .ennco-card-content {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
  }

  .ennco-card:not(.active) .card-img {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
  }



}









/* === SECCIÓN 6: carrusel === */

.carousel-section {
  width: 100%;
  background: #f5f5f5;
  padding: 80px 0;
  overflow: hidden;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: scrollCarousel 20s linear infinite;
}

.carousel-item {
  width: 200px;
  height: 200px;
  margin-right: clamp(42px, 6vw, 120px);
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* Animación de desplazamiento */
@keyframes scrollCarousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

 /* === Título del carrusel === */
.carousel-title {
  text-align: center;
  font-family: 'Codec Pro', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 60px);
  color: #00254D;
  letter-spacing: -0.5px;
  margin-bottom: 60px;
  position: relative;
}

/* Línea decorativa debajo del título (igual que la de servicios) */
.carousel-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #00254D;
  margin: 20px auto 0;
  border-radius: 2px;
}


/* === SECCIÓN 5: DESLIZADOR === */
.slider-section {
  padding: 0 20px;
  display: flex;
  justify-content: center;
  background: #f5f5f5;
}

.ba-wrapper {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 620px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10,30,50,0.12);
  user-select: none;
}

.ba-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantiene proporción */
  pointer-events: none;
}

/* Capa superior que revela */
.ba-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

/* Parte visible que se recorta */
.ba-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0); /* oculta mitad derecha */
  transition: clip-path 0.05s linear;
}

.ba-top img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Handle deslizante */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,1), rgba(255,255,255,0.32));
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 30;
  box-shadow: 0 0 18px rgba(255,255,255,0.5);
}

.ba-handle .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #00254D;
  border: 2px solid rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.5), 0 16px 32px rgba(0,0,0,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: baPulse 1.8s ease-in-out infinite;
}

.ba-arrow {
  font-size: 30px;
  line-height: 1;
  color: #fff;
  opacity: 1;
  font-weight: 700;
}

@keyframes baPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.45), 0 16px 32px rgba(0,0,0,0.22);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255,255,255,0), 0 18px 36px rgba(0,0,0,0.24);
  }
}


/* SECCIÓN 7 */
/* SECCIÓN 7 */
.section-seven {
  position: relative;
  background-color: #f5f5f5; /* fondo gris claro */
  color: #00254D;
  padding: 80px 20px 120px 20px; /* padding superior e inferior */
  overflow: hidden;
}

/* Grid de imágenes */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 376px); /* 3 columnas fijas */
  justify-content: center; /* centra la grid en la pantalla */
  column-gap: 100px;       /* separación horizontal entre columnas */
  row-gap: 80px;           /* separación vertical entre filas */
}

/* Columnas */
.image-column {
  width: 376px;
  height: 456px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Imagen dentro de la columna */
.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Desfase vertical para columna central de cada fila */
.image-column:nth-child(3n-1) {
  margin-top: 15%; /* columna del medio más abajo */
}

/* Animación al aparecer */
.image-column.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 993px) and (max-width: 1440px) {
  .section-seven {
    padding: 64px 18px 88px 18px;
  }

  .image-grid {
    grid-template-columns: repeat(3, 280px);
    column-gap: 36px;
    row-gap: 40px;
  }

  .image-column {
    width: 280px;
    height: 340px;
  }

  .image-column:nth-child(3n-1) {
    margin-top: 10%;
  }
}

/* Media Queries */

/* Pantallas medianas: 2 columnas */
@media (max-width: 1200px) {
  .image-grid {
    grid-template-columns: repeat(2, 45%);
    column-gap: 60px;
  }

  /* Ajuste del desfase para 2 columnas */
  .image-column:nth-child(2n) {
    margin-top: 15%; /* columna de la derecha más abajo */
  }
}

/* Pantallas pequeñas: 1 columna */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .image-column {
    width: 80%;
    height: auto;
    margin-top: 0; /* sin desfase vertical */
  }
}


/* ===== SECCIÓN 8 DEL INDEX ===== */
/* === SECCIÓN 8 === */
.section-eight {
  position: relative;
  width: 100%;
  height: 100vh; /* solo ocupa una pantalla */
  overflow: hidden;
  z-index: 3;
}

.section-eight-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  background-color: #FDDF8B; /* fondo amarillo */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 3;
  transition: none;
}

/* === RECUADRO INTERNO === */
.insider-card {
  background-color: #f5f5f5;
  width: 150vw;
  max-width: 1500px;
  height: auto;
  padding: 50px 60px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  text-align: left;
}

@media (min-width: 993px) and (max-width: 1440px) {
  .section-eight-wrapper {
    padding: 56px 40px;
  }

  .insider-card {
    width: min(88vw, 1040px);
    max-width: 1040px;
    padding: 36px 34px;
    border-radius: 18px;
  }

  .insider-title {
    font-size: clamp(34px, 3.2vw, 52px);
  }

  .insider-text {
    font-size: clamp(15px, 1.15vw, 18px);
    margin-top: 16px;
    margin-bottom: 22px;
  }

  .insider-button {
    padding: 13px 26px;
    font-size: 15px;
  }
}

.insider-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.insider-title {
  font-family: "Codec Pro", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 60px);
  color: #00254D;
  margin: 0;
}

.insider-tag {
  background: #fddf8b;
  color: #00254D;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: "Pangram", sans-serif;
  text-transform: uppercase;
}

.insider-text {
  font-family: "Pangram", sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  color: #00254D;
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 30px;
}

.insider-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.insider-input {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border-radius: 30px;
  border: 2px solid #00254D;
  background-color: transparent;
  font-family: "Pangram", sans-serif;
  color: #00254D;
}

.insider-button {
  padding: 14px 40px;
  border-radius: 50px;
  background-color: #fddf8b;
  color: #00254D;
  border: none;
  font-family: "Pangram", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.insider-button:hover {
  transform: scale(1.05);
}

/* === FOOTER === */
.footer {
  position: relative;
  height: 100vh;
  width: 100%;
  background-color: #00254D;
  color: #f5f5f5;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.footer-content {
  width: 80%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-size: clamp(50px, 6vw, 90px);
  font-weight: 700;
  margin: 0;
}

.footer-line {
  width: 100%;
  height: 1px;
  background-color: #f5f5f5;
  border: none;
}

.footer-follow {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-family: "Pangram", sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 2vw, 28px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-family: "Pangram", sans-serif;
  font-size: 16px;
}

/* === REPARAR ESPACIO ENTRE SECCIÓN 8 Y FOOTER === */

/* Asegura que el body no tenga fondo gris */
body {
  background-color: #00254D; /* mismo color que el footer */
}

/* Coloca el footer inmediatamente después de la sección 8 */
.section-eight {
  margin-bottom: -50vh; /* elimina el espacio entre 8 y footer */
}


/* ==============================
   FULLSCREEN MENU OVERLAY
============================== */
/* ==============================
   FULLSCREEN MENU OVERLAY
============================== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #00254D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
  z-index: 999;
}

/* Mostrar cuando está activo */
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Botón de cierre (X) */
.close-btn {
  position: absolute;
  top: 40px;
  right: 50px;
  font-size: 2.5rem;
  color: #f5f5f5;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.close-btn:hover {
  transform: rotate(90deg);
}

/* Contenedor de los links */
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 100px;
  text-align: center;
  transition: gap 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Cuando aparece el overlay, reduce el espacio entre los textos */
.menu-overlay.active .overlay-nav {
  gap: 45px;
}

/* Links */
.overlay-link {
  position: relative;
  font-family: "Pangram", sans-serif;
  font-weight: 300; /* Light */
  font-size: clamp(48px, 8vw, 80px);
  color: #f5f5f5;
  text-decoration: none;
  letter-spacing: -2px;
  line-height: 0.9;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Iconos plus en ambos lados (inicialmente ocultos) */
.overlay-link::before,
.overlay-link::after {
  content: "+";
  position: absolute;
  font-size: 3rem;
  color: #f5f5f5;
  opacity: 0;
  transition: all 0.5s ease;
}

/* Posición inicial: fuera del texto */
.overlay-link::before {
  left: -40px;
  transform: translateX(-20px);
}
.overlay-link::after {
  right: -40px;
  transform: translateX(20px);
}

/* Hover: los + aparecen deslizándose hacia los lados */
.overlay-link:hover::before {
  opacity: 1;
  transform: translateX(0);
  left: -75px; /* padding visual final */
}
.overlay-link:hover::after {
  opacity: 1;
  transform: translateX(0);
  right: -75px;
}

/* Sin cambio de color */
.overlay-link:hover {
  color: #f5f5f5;
}




/* === PAGINA CONTACTO === */
/* === SECCIÓN 8 pero es pagina nueva (CONTACTO NUEVA) === */


.section-eight {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 3;
}

.section-eight-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  background-color: #FDDF8B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 3;
  transition: transform 0.3s ease-out;
  padding: 80px 60px;
  box-sizing: border-box;
}

/* === FORMULARIO === */
.contact-container {
  width: 100%;
  max-width: 1700px;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.contact-title {
  font-family: "Codec Pro", sans-serif;
  font-weight: 800;
  font-size: clamp(50px, 6vw, 90px);
  color: #00254D;
  line-height: 0.97;
  margin: 0;
  align-content: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.form-row.full {
  width: 100%;
}

.contact-input {
  flex: 1;
  padding: 16px 24px;
  font-family: "Pangram", sans-serif;
  font-size: 18px;
  border: 2px solid #00254D;
  border-radius: 12px;
  background-color: transparent;
  color: #00254D;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.contact-input::placeholder,
.contact-input option {
  color: #00254D;
}

.textarea {
  resize: none;
  min-height: 150px;
}

/* BOTÓN */
.contact-button {
  align-self: flex-start;
  padding: 14px 50px;
  background-color: #00254D;
  color: #f5f5f5;
  border: none;
  border-radius: 50px;
  font-family: "Pangram", sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
  
}

.contact-button:hover {
  transform: scale(1.05);
}

@media (min-width: 993px) and (max-width: 1440px) {
  .section-eight-wrapper {
    padding: 44px 40px;
  }

  .contact-container {
    max-width: 980px;
    gap: 34px;
  }

  .contact-title {
    font-size: clamp(34px, 3.9vw, 56px);
    line-height: 0.96;
    max-width: 760px;
  }

  .contact-form {
    gap: 18px;
  }

  .form-row {
    gap: 14px;
  }

  .contact-input {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 9px;
  }

  .textarea {
    min-height: 105px;
  }

  .contact-button {
    padding: 12px 32px;
    font-size: 15px;
  }
}

/* ===== AJUSTE RESPONSIVE PARA QUE EL LOGO NO TAPE EL TEXTO ===== */












/* === FOOTER === */
/* === FOOTER (diseño actualizado, mantiene efecto reveal) === */
.footer {
  position: relative;
  height: 100vh;
  width: 100%;
  background-color: #00254D;
  color: #f5f5f5;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.footer-content {
  width: min(97vw, 1880px);
  max-width: 1880px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 95%;
  margin: 0 auto;
  padding: 0 0.5vw 3vh;
  box-sizing: border-box;
}

/* === Logo central === */
.footer-logo {
  font-family: 'Codec Pro', sans-serif;
  font-weight: 800;
  font-size: clamp(90px, 30vw, 350px);
  text-align: center;
  margin: 140px auto 32px;
  width: min(86vw, 1480px);
  max-width: 1480px;
}

/* === Sección central con líneas e Instagram === */
.footer-middle {
  position: relative;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  text-align: right;
}

.footer-line {
  width: 100%;
  max-width: 1640px;
  height: 1px;
  background-color: #f5f5f5;
  border: none;
  margin: 25px 0;
  opacity: 0.8;
}

/* Texto “Síguenos en Instagram” con flecha */
.footer-follow {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  font-family: 'Pangram', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 3vw, 60px);
  color: #f5f5f5;
}

.footer-follow p {
  margin: 0;
}

.footer-arrow {
  position: relative;
  display: inline-block;
  width: 0.88em;
  height: 0.88em;
  flex: 0 0 auto;
  background: center / contain no-repeat url("imagenes/flecha-diagonal.png");
  transition: transform 0.3s ease;
  animation: footerArrowPulse 1.5s ease-in-out infinite;
}

.footer-follow:hover .footer-arrow {
  transform: translateX(8px) translateY(-8px);
}

/* === Parte inferior === */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: 'Pangram', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.2vw, 18px);
  margin-top: auto;
  opacity: 0.9;
  width: 100%;
  max-width: 1640px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 4vh;
}

.footer-subtitle {
  font-weight: 400;
  margin-bottom: 8px;
  font-size: 1em;
  text-transform: uppercase;
}

.footer-text {
  margin: 2px 0;
  line-height: 1.4;
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .footer {
    min-height: 100vh;
  }

  .footer-content {
    width: min(82vw, 1080px);
    max-width: 1080px;
    height: 88%;
  }

  .footer-logo {
    margin: 110px 0 24px;
  }

  .footer-logo img {
    width: min(82vw, 980px);
  }

  .footer-middle {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
  }

  .footer-line {
    margin: 18px 0;
  }

  .footer-follow {
    gap: 14px;
    font-size: clamp(28px, 2.7vw, 42px);
  }

  .footer-extra {
    margin-top: 20px;
    gap: 18px;
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    gap: 22px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    gap: 32px;
    font-size: clamp(13px, 1vw, 16px);
  }

  .footer-left,
  .footer-right {
    max-width: 32ch;
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .footer-content {
    width: 90%;
  }

  .footer-follow {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-logo {
    font-size: clamp(60px, 12vw, 80px);
  }
}










/* === SERVICIOS === */



/* =============================================
   RESPONSIVE HERO (OBJETO FLOTANTE + SCROLL TEXT)
   ============================================= */

/* Tablet – vertical */
@media (max-width: 1024px) {

  .hero {
    height: 100svh;
    min-height: 100svh;
    padding: 0 1.25rem;
    display: block;
  }

  .hero-inner {
    height: 100%;
    min-height: 100svh;
  }

  .floating-object {
    width: clamp(270px, 58vw, 380px);
    height: clamp(270px, 58vw, 380px);
    max-width: none;
    margin-top: 0;
    top: 48%;
  }

  .floating-img {
    width: 114%;
    height: 114%;
  }

  .scroll-text {
    font-size: clamp(3.8rem, 16vw, 8rem);
    top: 44%;
    left: 50%;
    animation-duration: 48s;
  }

  .bottom-texts {
    inset: 0;
    width: 100%;
    transform: none;
    pointer-events: none;
    gap: 0;
    justify-content: unset;
  }

  .bottom-texts p {
    position: absolute;
    font-size: 1.45rem;
    letter-spacing: 0.05em;
  }

  .bottom-texts p:nth-child(1) {
    top: calc(max(8px, env(safe-area-inset-top)) + 174px);
    left: 10%;
  }

  .bottom-texts p:nth-child(2) {
    top: calc(max(8px, env(safe-area-inset-top)) + 174px);
    right: 10%;
  }

  .bottom-texts p:nth-child(3) {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 74px);
    left: 10%;
  }

  .bottom-texts p:nth-child(4) {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 74px);
    right: 10%;
  }

  .bottom-texts p:nth-child(5) {
    display: none;
  }

  .hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 6;
    pointer-events: none;
  }

  .hero-scroll-cue span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 3px solid #F4C430;
    border-bottom: 3px solid #F4C430;
    transform: rotate(45deg);
    animation: heroCueBlink 1.4s ease-in-out infinite;
  }

  .hero-scroll-cue span:nth-child(2) {
    animation-delay: 0.25s;
  }
}


/* Mobile grande */
@media (max-width: 768px) {

  .hero {
    height: 100svh;
    min-height: 100svh;
    padding: 0 1rem;
  }

  .floating-object {
    width: min(74vw, 300px);
    height: min(74vw, 300px);
    max-width: none;
    top: 47%;
  }

  .scroll-text {
    font-size: clamp(2.9rem, 18vw, 5.8rem);
    top: 42%;
    animation-duration: 42s;
  }

  .bottom-texts {
    inset: 0;
  }

  .bottom-texts p {
    font-size: 1rem;
  }

  .bottom-texts p:nth-child(1) {
    top: calc(max(6px, env(safe-area-inset-top)) + 138px);
    left: 8%;
  }

  .bottom-texts p:nth-child(2) {
    top: calc(max(6px, env(safe-area-inset-top)) + 138px);
    right: 8%;
  }

  .bottom-texts p:nth-child(3) {
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px);
    left: 8%;
  }

  .bottom-texts p:nth-child(4) {
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px);
    right: 8%;
  }

  .hero-scroll-cue {
    bottom: 13%;
  }

  .hero-scroll-cue span {
    width: 22px;
    height: 22px;
  }
}


/* Mobile pequeño */
@media (max-width: 480px) {

  .hero {
    height: 100svh;
    min-height: 100svh;
    padding: 0 0.85rem;
  }

  .floating-object {
    width: min(76vw, 270px);
    height: min(76vw, 270px);
    max-width: none;
    top: 46%;
  }

  .scroll-text {
    font-size: clamp(2.3rem, 20vw, 4.6rem);
    top: 40%;
    animation-duration: 36s;
  }

  .bottom-texts {
    inset: 0;
  }

  .bottom-texts p {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
  }

  .bottom-texts p:nth-child(1) {
    top: calc(max(4px, env(safe-area-inset-top)) + 114px);
    left: 7%;
  }

  .bottom-texts p:nth-child(2) {
    top: calc(max(4px, env(safe-area-inset-top)) + 114px);
    right: 7%;
  }

  .bottom-texts p:nth-child(3) {
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 56px);
    left: 7%;
  }

  .bottom-texts p:nth-child(4) {
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 56px);
    right: 7%;
  }

  .bottom-texts p:nth-child(5) {
    display: none;
  }

  .hero-scroll-cue {
    bottom: 15%;
  }

  .hero-scroll-cue span {
    width: 20px;
    height: 20px;
  }
}

@keyframes heroCueBlink {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(0) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(6px) rotate(45deg);
  }
}

/* Solamente asegura que el scroll-text se centre SIN romper transform */
.scroll-text {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translateY(-50%);
}





/* ============================
   RESPONSIVE DRONE SECTION
   (solo afecta tablet y móvil)
   ============================ */

/* Tablet: apila drone arriba, texto abajo */
@media (max-width: 1024px) {

  .drone-section {
    display: flex;
    flex-direction: column;   /* Apila vertical */
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding: 120px 5%;        /* margen para header fijo */
    text-align: center;
  }

  .drone-media {
    order: 1;                 /* Drone primero */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .drone-img {
    width: 70%;
    max-width: 480px;
    height: auto;
  }

  .drone-text {
    order: 2;                 /* Texto abajo */
    max-width: 600px;
    width: 100%;
  }
}


/* Mobile grande */
@media (max-width: 768px) {

  .drone-section {
    padding: 30px 6% 84px 6%;
    gap: 22px;
  }

  .drone-image-container {
    width: 100%;
    overflow: visible;
  }

  .drone-img {
    width: 80%;
    max-width: 380px;
    filter: drop-shadow(0px 12px 20px rgba(0,0,0,0.18));
  }

  .drone-text h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .drone-text p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    line-height: 1.5;
  }
}


/* Mobile pequeño */
@media (max-width: 480px) {

  .drone-section {
    gap: 14px;
    padding: 18px 6% 60px 6%;
  }

  .drone-img {
    width: 85%;
    max-width: 300px;
    filter: none;
  }
}


@media (max-width: 768px) {
  .drone-legend {
    font-size: 0.95rem;
    margin-top: 12px;
  }
}


/* === OVERRIDES RESPONSIVE para el texto principal === */
/* Tablet */
@media (max-width: 1024px) {
  .drone-text .drone-body {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
  }
}

/* Mobile grande */
@media (max-width: 768px) {
  .drone-text .drone-body {
    font-size: clamp(1rem, 3.5vw, 1.3rem) !important;
  }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .drone-text .drone-body {
    font-size: clamp(0.9rem, 4.5vw, 1.05rem) !important;
  }
}



@media (max-width: 1024px) {
  .drone-text .drone-legend {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
  }
}

/* Mobile grande */
@media (max-width: 768px) {
  .drone-text .drone-legend {
    font-size: clamp(1rem, 3.5vw, 1.3rem) !important;
  }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .drone-text .drone-legend {
    font-size: clamp(0.9rem, 4.5vw, 1.05rem) !important;
  }
}




/* ============================================
   SECCIÓN 7 – MODO SLIDESHOW SOLO EN MÓVIL/TABLET
   ============================================ */
/* ============================================
   SECCIÓN 7 — GRID RESPONSIVE 2 COLUMNAS
   ============================================ */

/* Desktop: tu grid original (no tocamos nada) */


/* Tablet y Móvil: 2 columnas proporcionadas */
@media (max-width: 1024px) {

  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 columnas */
    gap: 16px;
    width: 100%;
    padding: 0 20px;
  }

  .image-column {
    width: 100%;
    height: auto;
  }

  .image-column img {
    width: 100%;
    height: auto;
    display: block;

    /* 🔥 mantiene exactamente la proporción original */
    object-fit: contain;
  }
}

/* Móvil pequeño: mismo grid pero más compacto */
@media (max-width: 600px) {

  .image-grid {
    gap: 12px;
  }

  .image-column img {
    width: 100%;
    height: auto;
  }
}



 
/* ==========================================================
   SECCIÓN 8 - RESPONSIVE (tablet y móvil)
   ========================================================== */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {

  .section-eight-wrapper {
    padding: 60px 40px;
  }

  .insider-card {
    width: 90vw;        /* ya no 150vw */
    max-width: 800px;
    padding: 40px 40px;
    border-radius: 20px;
  }

  .insider-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .insider-text {
    text-align: center;
  }

  .insider-form {
    justify-content: center;
  }
}


/* Móvil grande (≤768px) */
@media (max-width: 768px) {

  .section-eight-wrapper {
    padding: 80px 20px;
  }

  .insider-card {
    width: 92vw;
    max-width: none;
    padding: 35px 30px;

    /* 🔥 Se vuelve VERTICAL */
    border-radius: 24px;
  }

  .insider-title {
    text-align: center;
    font-size: clamp(30px, 8vw, 45px);
  }

  .insider-text {
    font-size: clamp(14px, 4vw, 18px);
    text-align: center;
  }

  .insider-form {
    flex-direction: column;
    gap: 20px;
  }

  .insider-input {
    width: 100%;
  }

  .insider-button {
    width: 100%;
  }
}


/* Móvil pequeño (≤480px) */
@media (max-width: 480px) {

  .insider-card {
    width: 94vw;

    /* 🔥 Ahora sí recuadro vertical */
    padding: 30px 20px;
    min-height: 500px;
  }

  .insider-title {
    font-size: clamp(26px, 10vw, 36px);
  }

  .insider-text {
    font-size: clamp(14px, 4vw, 16px);
  }

  .insider-input,
  .insider-button {
    padding: 12px 18px;
    font-size: 14px;
  }
}


@media (max-width: 1024px) {
  .section-eight {
    height: 80vh; /* antes 100vh → ahora más compacto */
  }

  .section-eight-wrapper {
    height: 80vh;
    padding: 40px 40px; /* reduce los bordes */
  }
}


@media (max-width: 768px) {
  .section-eight {
    height: 75vh; /* menor altura */
  }

  .section-eight-wrapper {
    height: 75vh;
    padding: 30px 20px;
  }
}


@media (max-width: 480px) {
  .section-eight {
    height: 65vh; /* más pequeño aún */
  }

  .section-eight-wrapper {
    height: 65vh;
    padding: 25px 18px;
  }
}


/* footer responsive */
/* === FIX: evitar que sección 8 tape al footer y evitar textos cortados === */
/* =========================
   LOGO FOOTER BASE
========================= */

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 140px auto 24px;
  width: min(78vw, 1200px);
  max-width: 1200px;
}

.footer-logo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  transition: 0.3s ease;
}

/* Ajustes responsive del recuadro amarillo sin desactivar el reveal */
@media (max-width: 1200px) {
  .section-eight {
    margin-bottom: -100svh !important;
    height: 180svh !important;
    overflow: hidden !important;
  }

  .section-eight-wrapper {
    position: sticky !important;
    top: 0 !important;
    height: 100svh !important;
    padding: 40px 6% !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .insider-card {
    width: min(92vw, 760px) !important;
    max-width: 760px !important;
    padding: 32px 28px !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    align-self: center !important;
  }

  .insider-header {
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .insider-title {
    font-size: clamp(28px, 6vw, 44px) !important;
    margin: 0;
    line-height: 1.05;
  }

  .insider-tag {
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .insider-text {
    font-size: clamp(14px, 2.6vw, 18px) !important;
    margin-top: 12px;
    margin-bottom: 18px;
    text-align: center;
  }

  .insider-form {
    width: 100%;
    display: flex;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .insider-input {
    min-width: 0;
    width: 100%;
    padding: 12px 16px;
  }

  .insider-button {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
  }
}

@media (max-width: 1200px) {
  .section-eight-wrapper {
    padding: 36px 6% !important;
  }

  .insider-card {
    width: min(92vw, 760px) !important;
  }
}

@media (max-width: 768px) {
  .section-eight {
    height: 190svh !important;
  }

  .section-eight-wrapper {
    padding: 28px 5% !important;
  }

  .insider-card {
    width: min(92vw, 560px) !important;
    padding: 28px 20px !important;
    border-radius: 22px !important;
  }
}

@media (max-width: 480px) {
  .section-eight {
    height: 200svh !important;
  }

  .section-eight-wrapper {
    padding: 18px 4.5% !important;
  }

  .insider-card {
    width: 92vw !important;
    min-height: auto !important;
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }
}

/* === Footer: evitar que se tape y centrar todo en móvil === */
@media (max-width: 1024px) {
  .footer {
    position: relative !important;
    z-index: 1 !important;
    height: 100svh !important;
    min-height: 100svh !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .footer-content {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5svh 4% 4svh;
    box-sizing: border-box;
    height: auto !important;
    min-height: 88svh !important;
    justify-content: space-between !important;
    gap: 10px;
  }

  /* LOGO FOOTER RESPONSIVE */

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  margin: 6svh auto 8px !important;
}

.footer-logo img {
  width: clamp(300px, 72vw, 560px);
  display: block;
  margin: 0 auto;
  height: auto;
  transition: 0.3s ease;
}


  .footer-follow {
    justify-content: space-between;
    text-align: left;
    width: 100%;
    gap: 12px;
    font-size: clamp(24px, 4vw, 34px) !important;
    flex-direction: row;
    text-transform: uppercase;
  }

  .footer-arrow {
    font-size: 2.2em;
    line-height: 1;
    flex: 0 0 auto;
    animation: footerArrowPulse 1.5s ease-in-out infinite;
  }

  .footer-middle {
    text-align: center;
  }

  .footer-line {
    margin: 12px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
    margin-top: 0 !important;
    padding-bottom: 0;
  }

  .footer-left,
  .footer-right {
    width: 100%;
  }

  .footer-text {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
  }

  /* evitar recorte de textos largos */
  .footer, .footer * {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* Móvil pequeño: todo centrado y tipografías más pequeñas */
@media (max-width: 480px) {
  .insider-card {
    padding: 22px 18px !important;
    border-radius: 12px;
  }

  .insider-title {
    font-size: clamp(22px, 10vw, 32px) !important;
  }

  .insider-text {
    font-size: clamp(13px, 4vw, 16px) !important;
  }

  .footer {
    min-height: 100svh !important;
  }

  .footer-content {
    padding: 4svh 4% 4svh;
    min-height: 90svh !important;
  }

  /* LOGO FOOTER RESPONSIVE */

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  margin: 7svh auto 6px !important;
}

.footer-logo img {
  width: min(92vw, 420px);
  display: block;
  margin: 0 auto;
  height: auto;
  transition: 0.3s ease;
}


  .footer-follow {
    font-size: clamp(18px, 5.5vw, 26px) !important;
    gap: 6px;
  }

  .footer-arrow {
    width: 0.72em;
    height: 0.72em;
  }

  .footer-bottom {
    font-size: clamp(12px, 3.8vw, 14px) !important;
    gap: 12px;
  }

  .footer-extra {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-social {
    justify-content: center;
    width: 100%;
    gap: clamp(18px, 7vw, 34px);
  }

  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
  }

  .footer-social img {
    width: 40px;
  }
}

@keyframes footerArrowPulse {
  0%, 100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  50% {
    opacity: 0.75;
    transform: translateX(4px) translateY(-2px) scale(1.08);
  }
}




/* Seguridad: si aún hubiese superposición por z-index, forzamos estado */
@media (max-width: 992px) {
  .section-eight { z-index: 3 !important; }
  .section-eight-wrapper { z-index: 4 !important; }
  .footer { z-index: 1 !important; }
}




/* SOLO ÍCONO EN MÓVIL */
@media (max-width: 768px) {
  .menu-btn .menu-text {
    display: none !important;   /* esconde la palabra MENÚ */
  }

  .menu-btn {
    padding: 0 !important;       /* quita bordes extra */
    background: none !important; /* sin rectángulo */
  }

  .hamburger span {
    background-color: #00254D;   /* asegúrate del color */
  }
}



@media (max-width: 768px) {
  .menu-btn {
    width: 40px !important;
    height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger {
    transform: scale(0.8); /* hace más pequeño el ícono */
  }
}


/* ================================
   HEADER RESPONSIVE PARA MÓVIL
   ================================ */
@media (max-width: 768px) {

  /* Logo más pequeño */
  .logo-img {
    width: 110px !important;   /* antes era ~150–180px */
    height: auto;
  }

  /* Ocultar el texto "CONTACTO" y dejar solo la flecha */
  .contact-btn .contact-text {
    display: none !important;
  }

@media (max-width: 768px) {
  .contact-btn {
    display: none !important;
  }
}

  /* Ajustes de posición del header */
  .header {
    padding: 20px 22px !important;
  }

  .header-buttons {
    gap: 14px;
  }
}




/* ===== HERO – FIX PARA SAFARI MÓVIL (sombras PNG) ===== */
@media (max-width: 768px) {

  /* Quitamos sombra directa del PNG */
  .floating-img {
    filter: none !important;
  }

  /* Aplicamos sombra suave al contenedor */
  .floating-object {
    filter: drop-shadow(0px 12px 22px rgba(0,0,0,0.28)) !important;
  }
}








/* ===== VALUES SECTION ===== */

/* ===== iconos ===== */

.ennco-values-section {
  padding: 90px 6%;
  background: #f8f9fb;
}

.values-container {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  text-align: center;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-6px);
}

.value-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.value-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: #00254D;
}

.value-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  max-width: 220px;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .values-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .values-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .value-icon {
    width: 60px;
    height: 60px;
  }
}






/* ===== SECCIÓN MVV NUEVA ===== */

.ennco-mvv-section {
  padding: 0;
  background: #f5f5f5;
}

.mvv-scroll-scene {
  position: relative;
  height: 220vh;
  --mvv-progress: 0;
}

.mvv-scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mvv-scene-media {
  position: relative;
  width: calc((1 - var(--mvv-progress)) * 72vw + var(--mvv-progress) * 100vw);
  height: calc((1 - var(--mvv-progress)) * 52vh + var(--mvv-progress) * 100vh);
  border-radius: calc((1 - var(--mvv-progress)) * 28px + var(--mvv-progress) * 0px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 80px rgba(0, 37, 77, 0.18);
}

.mvv-scene-image,
.mvv-scene-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mvv-scene-image {
  object-fit: cover;
  transform: scale(calc(1.03 + var(--mvv-progress) * 0.05));
}

.mvv-scene-blur {
  background: linear-gradient(135deg, rgba(0, 37, 77, 0.18), rgba(0, 37, 77, 0.54));
  backdrop-filter: blur(calc(var(--mvv-progress) * 8px));
  -webkit-backdrop-filter: blur(calc(var(--mvv-progress) * 8px));
}

.mvv-scene-title {
  position: absolute;
  inset: auto auto 7% 6%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Codec Pro", sans-serif;
  font-size: clamp(28px, 5vw, 74px);
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.mvv-scene-title-values {
  inset: 7% auto auto 6%;
}

.mvv-panel-stack,
.mvv-values-stack {
  position: absolute;
  z-index: 4;
  display: flex;
}

.mvv-panel-stack {
  right: 6%;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
}

.mvv-values-stack {
  inset: auto 6% 9% 6%;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.mvv-expand-card {
  overflow: hidden;
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(26px);
}

.mvv-expand-card-blue {
  background: #00254D;
  color: #f5f5f5;
  width: calc(110px + var(--card-progress, 0) * 390px);
  min-height: calc(110px + var(--card-progress, 0) * 54px);
}

.mvv-expand-card-yellow {
  background: #FDDF8B;
  color: #00254D;
  width: calc(96px + var(--card-progress, 0) * 250px);
  min-height: calc(96px + var(--card-progress, 0) * 66px);
}

.mvv-expand-label {
  display: block;
  font-family: "Codec Pro", sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 1.05vw, 18px);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.mvv-expand-card p {
  font-family: "Pangram", sans-serif;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.5;
  max-height: calc(var(--card-progress, 0) * 280px);
  opacity: var(--card-progress, 0);
}

.mvv-expand-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mvv-expand-card-value {
  flex: 1 1 0;
}

@media (min-width: 993px) and (max-width: 1440px) {
  .mvv-scroll-scene {
    height: 210vh;
  }

  .mvv-scene-media {
    width: calc((1 - var(--mvv-progress)) * 78vw + var(--mvv-progress) * 100vw);
    height: calc((1 - var(--mvv-progress)) * 48vh + var(--mvv-progress) * 100vh);
  }

  .mvv-panel-stack {
    left: 48%;
    right: 4%;
    gap: 14px;
  }

  .mvv-values-stack {
    inset: auto 4% 8% 4%;
    gap: 12px;
  }

  .mvv-expand-card-blue {
    width: calc(98px + var(--card-progress, 0) * 320px);
  }

  .mvv-expand-card-yellow {
    width: calc(84px + var(--card-progress, 0) * 210px);
  }
}

@media (max-width: 992px) {
  .mvv-scroll-scene {
    height: 230vh;
  }

  .mvv-scene-media {
    width: calc((1 - var(--mvv-progress)) * 78vw + var(--mvv-progress) * 100vw);
    height: calc((1 - var(--mvv-progress)) * 68vh + var(--mvv-progress) * 100vh);
    border-radius: calc((1 - var(--mvv-progress)) * 24px + var(--mvv-progress) * 0px);
  }

  .mvv-scene-title {
    inset: 7% auto auto 6%;
    font-size: clamp(24px, 8vw, 56px);
  }

  .mvv-panel-stack {
    inset: auto 6% 10% 6%;
    transform: none;
    flex-direction: column;
    align-items: stretch;
  }

  .mvv-values-stack {
    inset: auto 5% 9% 5%;
    flex-direction: column;
    align-items: stretch;
  }

  .mvv-expand-card {
    padding: 16px 18px;
    border-radius: 18px;
  }

  .mvv-expand-card-blue,
  .mvv-expand-card-yellow {
    width: calc(86px + var(--card-progress, 0) * (100vw - 120px));
    min-height: calc(86px + var(--card-progress, 0) * 90px);
  }

  .mvv-expand-card-blue {
    width: calc(82px + var(--card-progress, 0) * (100vw - 148px));
    min-height: calc(88px + var(--card-progress, 0) * 118px);
  }

  .mvv-expand-card-yellow {
    width: calc(80px + var(--card-progress, 0) * (100vw - 148px));
  }
}

@media (max-width: 480px) {
  .mvv-values-stack {
    inset: auto 7% 9% 7%;
  }

  .mvv-expand-card-blue {
    width: calc(78px + var(--card-progress, 0) * (100vw - 164px));
    min-height: calc(84px + var(--card-progress, 0) * 124px);
  }

  .mvv-expand-card-yellow {
    width: calc(76px + var(--card-progress, 0) * (100vw - 164px));
    min-height: calc(82px + var(--card-progress, 0) * 82px);
  }
}





/* ===== WHATSAPP FLOAT ===== */

/* ===== WHATSAPP WRAPPER ===== */
/* ===== WHATSAPP WRAPPER ===== */

.whatsapp-wrapper {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

/* ===== BOTÓN VERDE ===== */

.whatsapp-float {
  width: 65px;
  height: 65px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Hover elegante */
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* ===== MENSAJE ===== */

.whatsapp-tooltip {
  position: absolute;
  right: 80px;
  bottom: 14px;
  background: #00254D;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  background: #00254D;
  transform: rotate(45deg);
}

.whatsapp-tooltip.active {
  opacity: 1;
  transform: translateX(0);
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {

  .whatsapp-wrapper {
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    font-size: 12px;
    right: 70px;
  }
}




/* ===== CARD 4 (fondo amarillo claro) texto azul ===== */

.ennco-card:nth-child(4) {
  color: #00254D;
}

.ennco-card:nth-child(4) .ennco-card-content h2,
.ennco-card:nth-child(4) .ennco-card-content p,
.ennco-card:nth-child(4) .card-border-title {
  color: #00254D;
}

/* Botón también en azul */
.ennco-card:nth-child(4) .ennco-toggle-btn {
  color: #00254D;
}



/* ===== AJUSTE PARA LAPTOPS 13" / PANTALLAS MEDIANAS ===== */
@media (max-width: 1400px) {

  .ennco-cards-container {
    width: min(90vw, 1080px);
    max-width: 1080px;
  }

  /* Reducimos separación horizontal */
  .ennco-card:nth-child(2){ transform: translateX(82px) scale(1); }
  .ennco-card:nth-child(3){ transform: translateX(164px) scale(1); }
  .ennco-card:nth-child(4){ transform: translateX(246px) scale(1); }

}



/* Transición suave de imágenes */
.grid-img {
  width: 100%;
  height: auto;
  transition: opacity 1s ease-in-out;
}

.fade-out {
  opacity: 0;
}
.image-column {
  border-radius: 20px;
  overflow: hidden; /* CLAVE para que no se corten */
}

.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Muy importante */
  display: block;
  transition: opacity 1s ease-in-out;
}





/* ===== FOOTER EXTRA ===== */

.footer-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

/* LINKS */

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  transition: 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.6;
}

/* ICONOS */

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social img {
  width: 26px;
  height: auto;
  transition: 0.3s ease;
  cursor: pointer;
}

.footer-social img:hover {
  transform: translateY(-4px);
  opacity: 0.7;
}

@media (max-width: 1024px) {

  .footer-extra {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

}



.footer-follow {
  
  text-decoration: none;
  
}

.footer-follow:hover {
  opacity: 0.6;
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .footer {
    min-height: 100vh !important;
    padding: 0 1.5vw 24px !important;
    box-sizing: border-box !important;
  }

  .footer-content {
    width: min(95vw, 1400px) !important;
    max-width: 1400px !important;
    height: 88% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    align-items: center !important;
  }

  .footer-logo {
    margin: 90px 0 20px !important;
    width: min(64vw, 760px) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-logo img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-middle,
  .footer-extra,
  .footer-bottom {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: clamp(10px, 1.2vw, 20px) !important;
    padding-right: clamp(10px, 1.2vw, 20px) !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-follow {
    justify-content: flex-end !important;
    gap: 12px !important;
    font-size: clamp(26px, 2.4vw, 38px) !important;
  }

  .footer-links {
    gap: 18px !important;
    flex-wrap: wrap !important;
  }

  .footer-social {
    gap: 16px !important;
  }

  .footer-bottom {
    gap: 28px !important;
    font-size: clamp(13px, 0.95vw, 15px) !important;
    padding-bottom: 3vh !important;
  }

  .footer-left,
  .footer-right {
    max-width: 28ch !important;
  }
}
