:root{
  --nav-h: 74px;
  --max-w: 1200px;
  --bg: #0b0b10;
  --text: #ffffff;
}

*{ box-sizing: border-box; }

html,body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color: inherit; }
img{ max-width:100%; display:block; }

/* =========================
   NAV (DESKTOP + MOBILE)
========================= */

.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;

  background: rgba(255, 255, 255, 0.75); /* 75% */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0,0,0,.10);
  z-index: 50;
}

.nav__inner{
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* ---------- Brand ---------- */
.brand{
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}

/* IMPORTANT:
   Si usas logo_bco.svg (blanco) sobre fondo claro NO se verá.
   Recomendación: en NAV usa logo.svg (azul/oscuro).
*/
.brand__logo{
  display: block;
  height: 44px;
  width: auto;
}

/* ---------- Desktop menu ---------- */
.menu{
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu a{
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
  padding: 10px 8px;
  border-radius: 10px;
  color: #111;
}

.menu a:hover{
  background: rgba(0,0,0,.06);
}

/* ---------- Language pill ---------- */
.lang{
  display: flex;
  align-items: center;
}

.lang__pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 34px;
  min-width: 44px;
  padding: 0 10px;

  border-radius: 10px;
  background: #24BFF2;
  color: #111;
  text-decoration: none;

  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;

  box-shadow: 0 8px 18px rgba(36,191,242,.22);
}

.lang__pill:hover{ filter: brightness(0.95); }
.lang__pill:active{ transform: translateY(1px); }

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

.nav__burger{
  display: none; /* desktop off */
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  cursor: pointer;

  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.nav__burger span{
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

/* Dropdown */
.nav__mobileMenu{
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  padding: 14px 18px;

  background: rgba(255,255,255,.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0,0,0,.10);
  z-index: 49;
}

.nav__mobileMenu a{
  display: block;
  padding: 12px 8px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.nav.is-open .nav__mobileMenu{ display: block; }

@media (max-width: 860px){

  /* esconder menu desktop y mostrar burger */
  .menu{ display: none; }
  .nav__burger{ display: flex; }

  /* layout: burger | logo | idioma */
  .nav__inner{
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 10px;
  }

  .nav__burger{ justify-self: start; }
  .brand{ justify-self: center; }
  .lang{ justify-self: end; }

  /* Logo 2x en móvil */
  .brand__logo{
    height: 44px; /* 2x de 44 */
    width: auto;
  }

  /* evita saltos raros */
  .lang__pill{
    white-space: nowrap;
    min-width: 44px;
  }
}

@media (max-width: 860px){
  header.nav .menu{
    display: none !important;
  }
}

@media (max-width: 860px){
  header.nav .nav__inner{
    grid-template-columns: 52px 1fr 52px;
  }
}


/* =========================
   PAGE
========================= */

.page{
  padding-top: var(--nav-h);
}


.section{
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px; /* padding lateral siempre */
}

@media (max-width: 860px){
  .section{
    padding: 64px 0;
  }
}


/* ===== HOME HERO: full screen ===== */
.hero{
  position: relative;
  min-height: 100svh; /* 100% alto (mobile-safe) */
  padding: 0;         /* la imagen ya ocupa todo */
  overflow: hidden;
}

.slides, .slide, .slide picture, .slide img{
  width: 100%;
  height: 100%;
}

.slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 450ms ease;
}

.slide.is-active{ opacity: 1; }

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;     /* ocupa todo */
  object-position: center;
  display: block;
}

/* Malla negra 20–30% */
.hero__mesh{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  pointer-events: none;
}

/* ===== Branding over the mesh ===== */
.hero__brand{
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 10px;

  /* Desktop: abajo izquierda */
  left: 88px;
  bottom: 88px;
  text-align: left;
}

/* Logo 2x + texto 2x */
.hero__brandLogo{
  width: clamp(220px, 18vw, 420px); /* <- más grande */
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.45));
}

.hero__brandTagline{
  font-family: "Montserrat", sans-serif;
  font-weight: 600; /* semi-negrita */
  font-size: clamp(20px, 2.2vw, 34px); /* <- más grande */
  color: #fff;
  letter-spacing: .2px;
  text-shadow: 0 10px 26px rgba(0,0,0,.45);
  white-space: nowrap;
}

/* Dots discretos */
.dots{
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot{
  width: 9px;
  height: 9px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.18);
  cursor: pointer;
}

.dot[aria-current="true"]{
  background: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.85);
}

/* Mobile: logo abajo centrado */
@media (max-width: 720px){
  .hero__brand{
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%);
    text-align: center;
    padding: 0 18px; /* para que no pegue al borde */
  }

  .hero__brandLogo{
    width: min(78vw, 360px);
    margin: 0 auto;
  }
}


/* =========================
   CARD + FORM
========================= */

.card{
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.form{
  display:grid;
  gap: 12px;
  margin-top: 12px;
}

.form label{
  display:grid;
  gap: 6px;
  font-weight: 650;
}

.form input,
.form textarea{
  width:100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  color:#fff;
}

.form button{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color:#fff;
  font-weight: 750;
  cursor:pointer;
}

.form button:hover{
  background: rgba(255,255,255,.18);
}

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

.footer{
  padding:18px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.footer__inner{
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  font-size:13px;
}

/* =========================
   CONSENT
========================= */

.consent{
  position: fixed;
  left:14px; right:14px;
  bottom:14px;
  z-index:60;
}

.consent__inner{
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding:14px;
  border-radius:16px;
  background: rgba(10,10,12,.85);
  border: 1px solid rgba(255,255,255,.16);
}

.consent__actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}


/* =========================
   MEDIA QUERIES
========================= */

@media (max-width: 860px){

  .menu{
    display:flex;
    overflow-x:auto;
    white-space: nowrap;
    gap:8px;
  }

  .menu a{
    flex: 0 0 auto;
    font-size: 14px;
  }

  .headline{
    text-align:center;
  }

  .hero__content{
    justify-content:center;
  }
}

@media (min-width: 861px){

  .burger{ display:none; }

  #mobileMenu{ display:none !important; }
}

/* FORCE NAV WHITE + LINKS BLACK (override final) */
.nav{
  background: #fff !important;
  border-bottom: 1px solid #e6e6e6 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav .brand,
.nav .brand__text{
  color: #111 !important;
}

.nav .menu a{
  color: #111 !important;
}

.nav .menu a:hover{
  background: rgba(0,0,0,.06) !important;
}

body::before{
  content:"CSS OK";
  position: fixed;
  bottom: 6px;
  right: 10px;
  font-size: 12px;
  background: #0f0;
  color: #000;
  padding: 4px 6px;
  z-index: 999999;
}

/* ===== Vision section ===== */


.vision{
  background: #fff;
  color: #111;
}

.vision__grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
}

.vision__media{
  border-radius: 18px;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid rgba(0,0,0,.08);
}

.vision__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ===== VISION BACKGROUND VERSION ===== */

.vision{
  position: relative;

  /* regla base */
  min-height: 100vh;

  display: flex;
  align-items: center;

  background-image: url("/assets/img/BKGvision.webp");
  background-size: cover;           /* clave */
  background-position: center left; /* ajusta foco */
  background-repeat: no-repeat;

  color: #111;
}

/* Overlay blanco difuminado desde la derecha */
.vision__overlay{
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to left,
    rgba(255,255,255,0.98) 0%,
    rgba(255,255,255,0.92) 35%,
    rgba(255,255,255,0.75) 55%,
    rgba(255,255,255,0.40) 75%,
    rgba(255,255,255,0.0) 100%
  );

  z-index: 0;
}

/* Contenido */
.vision__content{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Texto a la derecha */
.vision__copy{
  max-width: 680px;
  padding: clamp(40px, 6vw, 80px);
}

/* Responsive */
@media (max-width: 860px){
  .vision{
    background-position: center;
  }

  .vision__overlay{
    background: rgba(255,255,255,0.92);
  }

  .vision__content{
    justify-content: center;
  }

  .vision__copy{
    max-width: 100%;
    padding: 40px 20px;
  }
}

.vision__titleRow{
  display: flex;
  align-items: center;
  gap: 14px;
}

.vision__icon{
  width: clamp(44px, 5vw, 70px);
  height: auto;
}

.vision__title{
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1;
  font-size: clamp(28px, 4vw, 56px); /* responsive */
}

.vision__titleBlack{ color: #111; }
.vision__titleBlue{ color: #24BFF2; }

.vision__text{
  margin: 18px 0 0 0;
  font-size: clamp(16px, 1.3vw, 20px); /* responsive */
  line-height: 1.25;
  font-weight: 400;
  color: #111;
}

.vision__motto{
  margin: 22px 0 0 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 800;
  color: #111;
  text-align: center;   /* centra el texto */
  letter-spacing: 0.5px;
}

/* Mobile: apilado correcto */
@media (max-width: 860px){
  .vision__grid{
    grid-template-columns: 1fr;
  }
  .vision__media{
    order: 1;
  }
  .vision__copy{
    order: 2;
  }
}

/* ===== Business Model ===== */
.bm{
  background:#fff;
  color:#111;
  position:relative;
}

.bm__wrap{
  position:relative;
  /* margen entre inicio de sección y título */
  padding-top: clamp(70px, 8vh, 130px);
}

/* ===== SVG lines overlay ===== */
.bm__svg{
  position:absolute;
  inset: 0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
  opacity:.55;
}

.bm__path{
  fill:none;
  stroke: rgba(36,191,242,.35);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 20px rgba(36,191,242,.18));

  /* “dibujado” */
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
}

/* ===== Title ===== */
.bm__titleRow{
  display:flex;
  align-items:center;
  gap: 14px;
  position:relative;
  z-index:1;
  margin-bottom: clamp(26px, 4.5vw, 54px);
}

.bm__icon{
  width: clamp(38px, 4.5vw, 62px);
  height:auto;
}

.bm__title{
  margin:0;
  font-weight:800;
  line-height:1;
  letter-spacing:-0.6px;
  font-size: clamp(28px, 4vw, 56px);
}

.bm__titleBlack{ color:#111; }
.bm__titleBlue{ color:#24BFF2; }

/* ===== Grid layout ===== */
.bm__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items:start;
  /* ↓ reducimos espacios (tu pediste compactar) */
  column-gap: clamp(40px, 4vw, 90px);   /* antes muy grande */
  row-gap: clamp(34px, 4vw, 80px);      /* antes enorme */

  grid-template-areas:
    "a b"
    "photo photo"
    "c d";

  position:relative;
  z-index:1; /* arriba del svg */
}

/* Asignación por área */
#bmA{ grid-area:a; }
#bmB{ grid-area:b; }
#bmPhoto{ grid-area:photo; }
#bmC{ grid-area:c; }
#bmD{ grid-area:d; }

/* Cards */
.bm__card{
  padding: 10px 0;
  position:relative;
}

/* Lo que pediste: B a la altura del final de A y D a la altura del final de C */
.bm__card--b,
.bm__card--d{
  align-self:end;
}

/* Head row con número */
.bm__headRow{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  margin: 0 0 10px 0;
}

.bm__step{
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #24BFF2;
  color:#fff;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.bm__h{
  margin: 0;
  font-weight:800;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.12;
}

/* Texto */
.bm__p{
  margin: 0 0 10px 0;
  font-weight:400;
  line-height:1.35;
  font-size: clamp(16px, 1.2vw, 20px);
}

/* Foto central */
.bm__photo{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background:#f3f3f3;
}

.bm__photo img{
  width:100%;
  height: clamp(180px, 26vw, 320px);
  object-fit:cover;
  display:block;
}

.bm__motto{
  margin: 40px 0 clamp(80px, 8vw, 160px) 0;
  text-align:center;
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 24px);
}

/* ===== BM: stagger (solo desktop) ===== */
@media (min-width: 861px){

  /* 2 empieza a la altura de la última línea del 1 */
  #bmB{
    margin-top: clamp(250px, 7vw, 300px);
  }

  /* 4 empieza a la altura de la última línea del 3 */
  #bmD{
    margin-top: clamp(240px, 6vw, 290px);
  }
}

/* ===== Pins (anchor points for JS) ===== */
.bm__pin{
  position:absolute;
  width: 10px;
  height: 10px;
  border-radius:999px;
  opacity:0;             /* invisibles */
  pointer-events:none;
}

.bm__pin--out{ right:-6px; top:45%; }
.bm__pin--in{  left:-6px; top:45%; }

#bmPhoto .bm__pin--in{ top:20%; }
#bmPhoto .bm__pin--out{ top:75%; }

/* Mobile: apilado, sin SVG */
@media (max-width: 860px){
  .bm__svg{ display:none; }

  .bm__grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "photo"
      "c"
      "d";
  }

  .bm__card--b,
  .bm__card--d{
    align-self: start; /* en móvil no forzamos el “end” */
  }
}

/* ===== Infrastructure ===== */
.infra{
  position: relative;
  color: #fff;
  background-image: url("/assets/img/fondoTec.png");
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
  overflow: hidden;
}

/* malla / overlay gris */
.infra::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(70,70,70,.55), rgba(70,70,70,.55)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 60%);
  pointer-events:none;
  z-index:0;
}

.infra__wrap{ position: relative; z-index: 1; }

.infra__titleRow{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: clamp(14px, 2.6vw, 22px);
}

.infra__icon{
  width: clamp(44px, 5vw, 70px);
  height:auto;
}

.infra__title{
  margin:0;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1;
  font-size: clamp(30px, 4.2vw, 62px);
}

.infra__titleWhite{ color:#fff; }
.infra__titleBlue{ color:#24BFF2; }

.infra__lead{
  max-width: 980px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.infra__p{
  margin: 0 0 12px 0;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.35;
  font-weight: 500;
  text-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.infra__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.infra__card{
  background: rgba(36,191,242,.55);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 18px 18px 16px 18px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  min-height: 250px;
}

.infra__h{
  margin: 0 0 10px 0;
  font-weight: 800;
  font-size: clamp(16px, 1.25vw, 18px);
  letter-spacing: .4px;
}

.infra__txt{
  margin: 0 0 12px 0;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.35;
  font-weight: 500;
}

.infra__countries{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 10px;
}

.infra__factory{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  flex: 0 0 auto;
}

.infra__txt--countries{
  margin: 3px 0 0 0;
  opacity: .98;
}

/* Responsive */
@media (max-width: 1100px){
  .infra__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .infra__grid{ grid-template-columns: 1fr; }
  .infra__card{ min-height: auto; }
}

/* ===== Choosing Us (Partner) ===== */
.choose{
  background:#fff;
  color:#111;
}

.choose__wrap{
  position: relative;
}

.choose__titleRow{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.choose__icon{
  width: clamp(38px, 4.5vw, 62px);
  height:auto;
}

.choose__title{
  margin:0;
  font-weight:800;
  line-height:1;
  letter-spacing:-0.6px;
  font-size: clamp(28px, 4vw, 56px);
}

.choose__titleBlack{ color:#111; }
.choose__titleBlue{ color:#24BFF2; }

.choose__lead{
  margin: 0 0 clamp(22px, 3vw, 38px) 0;
  font-weight: 800;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.25;
}

.choose__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
}

.choose__card{
  border-radius: 28px;
  padding: clamp(18px, 2.4vw, 28px);
}

/* top row filled gradient */
.choose__card--filled{
  color:#fff;
  background: linear-gradient(90deg, rgba(0,179,198,1) 0%, rgba(142,236,245,1) 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}
.choose__card--filled2{
  background: linear-gradient(90deg, rgba(0,123,180,1) 0%, rgba(171,236,244,1) 100%);
}

.choose__h{
  margin: 0 0 10px 0;
  font-weight: 800;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.12;
}

.choose__p{
  margin: 0;
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.35;
  opacity: .98;
}

/* bottom row outlined */
.choose__card--outline{
  background: #fff;
  border: 4px solid rgba(36,191,242,.35);
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}

.choose__h--dark{ color:#111; }
.choose__p--dark{ color:#111; opacity: .9; }

/* Mobile stack */
@media (max-width: 860px){
  .choose__grid{
    grid-template-columns: 1fr;
  }
}

/* ===== Careers/Partners grid: 2 cuadrados lado a lado ===== */
#careers-partners{
  background: rgba(36, 191, 242, 0.30);
  min-height: 100vh;
}

.cp__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}

@media (max-width: 860px){
  .cp__grid{ grid-template-columns: 1fr; }
}

/* ===== Flip cards ===== */
.flip{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  perspective: 1200px;

  /* cuadrada por default (FRONT) */
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 320px;
}

.flip__inner{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 650ms ease;
}

.flip.is-flipped .flip__inner{
  transform: rotateY(180deg);
}

.flip__face{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip__front{
  cursor: pointer;
}

.flip__back{
  transform: rotateY(180deg);
  position: relative;
  background: #fff;
  color: #111;
  padding: 28px 22px 22px;
  overflow: auto;
}

/* Imagen front */
.flip__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Label sobre la foto */
.flip__label{
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: #fff;
  text-shadow: 0 8px 22px rgba(0,0,0,.55);
  line-height: 1.02;
}

/* Título grande (front/back) */
.flip__label,
.flip__backTitle{
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -0.5px;
  line-height: 1.05;
}

/* Back title spacing */
.flip__backTitle{
  margin: 0 0 18px 0;
}

/* Botón X en esquina superior derecha */
.flip__close{
  position: absolute;
  top: 16px;
  right: 16px;

  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.95);
  cursor: pointer;

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

  font-size: 18px;
  font-weight: 800;
  transition: all .2s ease;
}
.flip__close:hover{
  background:#24BFF2;
  color:#fff;
  border-color:#24BFF2;
}

/* ===== Form labels ===== */
.form label{
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin: 0 0 10px 0;
}

.form label > input,
.form label > textarea,
.form label > select{
  display:block;
  width: 100%;
  margin-top: 6px;
}

/* ===== Form fields background ===== */
.form input,
.form textarea,
.form select{
  background: rgba(90, 207, 245, 0.5); /* #5ACFF5 al 50% */
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111;
  transition: all .2s ease;
}

.form input::placeholder,
.form textarea::placeholder{
  color: rgba(0,0,0,.45);
}

.form input:focus,
.form textarea:focus,
.form select:focus{
  outline: none;
  border-color: #24BFF2;
  box-shadow: 0 0 0 3px rgba(36,191,242,.25);
  background: rgba(90, 207, 245, 0.65);
}

/* ===== Work mode: horizontal ===== */
.cp__fieldset{
  border: none;
  padding: 0;
  margin: 14px 0 6px;

  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.cp__fieldset legend{
  flex: 0 0 100%;
  font-weight: 700;
  margin-bottom: 6px;
}

.cp__check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.cp__check input{
  width: 16px;
  height: 16px;
  accent-color: #24BFF2;
}

/* ===== Buttons ===== */
.form button[type="submit"]{
  margin-top: 16px;
  width: 100%;
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .25s ease;

  background: linear-gradient(135deg, #24BFF2, #1e7fd4);
  color: #fff;
  box-shadow: 0 6px 18px rgba(36,191,242,.25);
}

.form button[type="submit"]:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(36,191,242,.35);
}
.form button[type="submit"]:active{
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(36,191,242,.25);
}

/* ===== (opcional) mejor padding móvil en back ===== */
@media (max-width: 860px){
  .flip__back{ padding: 22px 16px 16px; }
}

/* ===== CONTACT (full screen + bg cover/crop) ===== */
.contact{
  position: relative;
  min-height: 100vh;
  overflow: hidden; /* clave: recorta el fondo cuando el contenido no excede */
  color: #fff;
}

/* Fondo: usa TU imagen (la que pediste “solo el fondo”) */
.contact__bg{
  position:absolute;
  inset:0;
  z-index:0;

  background-image: url("/assets/img/BKGcontacto.webp"); /* <-- CAMBIA el nombre si aplica */
  background-size: cover;          /* recorta sin deformar */
  background-position: center;     /* centra el recorte */
  background-repeat: no-repeat;

  transform: scale(1.02); /* micro para evitar líneas de borde */
}

/* Velo/contraste para legibilidad */
.contact::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(1200px 700px at 25% 35%, rgba(0,0,0,.15), rgba(0,0,0,.72)),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65));
}

/* Layout */
.contact__wrap{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: start;   /* ← CAMBIO CLAVE */
  padding: clamp(22px, 4vw, 64px) clamp(20px, 6vw, 80px);;
}

/* Columna izquierda */
.contact__title{
  margin: 0 0 14px 0;
  font-weight: 800;
  letter-spacing: -0.6px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.05;
}

.contact__lead{
  margin: 0 0 22px 0;
  max-width: 52ch;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,.80);
}

.contact__checks{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact__checkItem{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: clamp(14px, 1.25vw, 18px);
  color: rgba(255,255,255,.92);
}

.contact__checkIcon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}

/* Tarjeta derecha (glass) */
.contact__card{
  border-radius: 22px;
  padding: clamp(18px, 2.2vw, 26px);
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

.contact__cardTitle{
  margin: 0 0 14px 0;
  font-weight: 800;
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: -0.2px;
}

/* Form: reusa tu .form pero lo afinamos para contacto */
.contact__form label{
  color: rgba(255,255,255,.88);
}

.contact__form input,
.contact__form textarea{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder{
  color: rgba(255,255,255,.55);
}

.contact__form input:focus,
.contact__form textarea:focus{
  border-color: rgba(36,191,242,.95);
  box-shadow: 0 0 0 3px rgba(36,191,242,.25);
  background: rgba(255,255,255,.16);
}

.contact__form button[type="submit"]{
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #24BFF2, #1e7fd4);
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Responsive */
@media (max-width: 860px){
  .contact__wrap{
    grid-template-columns: 1fr;
    align-items: start;
    padding: 42px 0;
  }
  .contact__card{
    margin-top: 8px;
  }
}

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

.footer{
  background: #24BFF2;
  color: #fff;
  padding: 60px 24px 30px;
   font-size: 15px; /* tamaño base del texto */
}

.footer__wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__brand{
  max-width: 360px;
}

.footer__logo{
  height: 4em;
  margin-bottom: 16px;
}

.footer__tagline{
  font-size: 15px;
  line-height: 1.6;
  opacity: .8;
}

.footer__nav{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav a{
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}

.footer__nav a:hover{
  color: #24BFF2;
}

/* Bottom */

.footer__bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: .7;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom a{
  color: #fff;
  text-decoration: none;
}

.footer__bottom a:hover{
  color: #24BFF2;
}

/* Mobile */

@media (max-width: 768px){
  .footer__wrap{
    flex-direction: column;
    gap: 30px;
  }

  .footer__bottom{
    flex-direction: column;
    text-align: center;
  }
}