/* =======================
   Variables
   ======================= */
:root{
  --cian: #00E0FF;
  --azul-oscuro: #0A1030;
  --texto: #11151c;
  --texto-suave: #546070;
  --borde: #E7EAF0;
  --blanco: #fff;
  --bg: #fff;
}

/* =======================
   Base
   ======================= */
:root{ box-sizing:border-box; }
*, *::before, *::after{ box-sizing:inherit; }

html,body{ margin:0; padding:0; }
body{
  color:#11151c; color:var(--texto);
  background:#fff; background:var(--bg);
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }

/* Contenedor único */
.wrap{ width:min(1280px,96%); margin:0 auto; }

/* =======================
   Tipografía
   ======================= */
.h1{
  font-size:clamp(22px,2.2vw,30px);
  line-height:1.18;
  margin:0 0 10px;
  font-weight:600;
  text-align:center;
}
.h2{
  font-size:clamp(18px,1.8vw,24px);
  line-height:1.2;
  margin:0 0 12px;
  font-weight:600;
  text-align:center;
}
.h2--accent{ color:var(--cian); }
.lead{
  font-size:clamp(16px,1.5vw,18px);
  color:var(--texto-suave);
  text-align:center;
  margin:0 auto;
  max-width:760px;
}

/* =======================
   Header
   ======================= */
.hero{
  height:200px;
  background:#0A1030;
  background:var(--azul-oscuro) url("Cab-WEB.png?v=15") center/cover no-repeat;
}
@media (max-width:768px){
  .hero{ height:160px; background-position:left center; }
}

/* =======================
   Secciones
   ======================= */
.section{ padding:36px 0; }
.section--vp{ padding-top:32px; padding-bottom:28px; }

/* Texto principal centrado y ancho coherente */
.section--vp .lead{
  max-width:760px;
  margin:0 auto;
  text-align:center;
}

/* =======================
   Aviso de actualización (rectángulo centrado)
   ======================= */
.section--notice{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px 0;
  background:none;
  border:none;
}

.section--notice .wrap{
  background:var(--blanco);
  border:2px solid var(--cian);
  border-radius:12px;
  padding:20px 30px;
  max-width:760px;      /* igual que botón */
  text-align:center;
  box-shadow:0 4px 20px rgba(0,224,255,.1);
}

.section--notice p{
  margin:0;
  font-size:clamp(16px,1.5vw,18px);
  color:var(--texto-suave);
  line-height:1.6;
}

/* =======================
   CTA / CONTACTO
   ======================= */
.section--cta{
  text-align:center;
  padding:50px 0 48px;
}
.section--cta .h2{
  text-align:center;
  margin-bottom:16px;
}
.section--cta .lead{
  display:block;
  text-align:center;
  white-space:normal;
  margin:0 auto 24px;
  max-width:760px;
}
.section--cta .button{
  display:inline-block;
  margin-bottom:20px;
}
.section--cta .contact-mail,
#contacto .contact-mail{
  display:block;
  text-align:center;
  margin-top:8px;
  font-size:15px;
  color:var(--texto-suave);
}

/* =======================
   Botón general
   ======================= */
.button{
  padding:12px 22px;
  border-radius:10px;
  font-weight:600;
  border:1px solid transparent;
  transition:transform .05s ease, box-shadow .2s ease, background .2s ease;
}
.button--primary{
  background:var(--cian);
  color:#07333C;
  box-shadow:0 8px 22px rgba(0,224,255,.24);
}
.button--primary:hover{ transform:translateY(-1px); }
.button--primary:active{ transform:translateY(0); }

/* =======================
   Formulario
   ======================= */
.form{
  display:grid;
  gap:12px;
  max-width:760px;
  margin:0 auto;
}
.form__row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:560px){
  .form__row{ grid-template-columns:1fr; }
}
.form input,
.form textarea{
  width:100%;
  background:#fff;
  border:1px solid #E7EAF0;
  border-radius:10px;
  padding:12px 14px;
  font-size:16px;
  font-family:inherit;
  outline:none;
}
.form input:focus,
.form textarea:focus{
  border-color:var(--cian);
  box-shadow:0 0 0 4px rgba(0,224,255,.18);
}
.contact-mail{ margin-top:10px; color:var(--texto-suave); }

/* =======================
   Footer
   ======================= */
.footer{
  border-top:1px solid #E7EAF0;
  padding:22px 0 28px;
  color:var(--texto-suave);
  text-align:center;
}
/* --- Desktop por defecto: fondo COVER, la <img> oculta --- */
.hero{
  height: 200px;
  background: var(--azul-oscuro) url("Cab-WEB.png?v=16") center/cover no-repeat;
}
.hero-img{ display:none; width:100%; height:auto; }

/* --- Tablet + móvil: SOLO imagen fluida, SIN fondo --- */
@media (max-width: 1024px){
  .hero{
    background: none !important;   /* desactiva el fondo para evitar el “cortado” */
    height: auto !important;        /* que se ajuste a la imagen */
    padding: 0 !important;
    margin: 0;
  }
  .hero-img{
    display: block !important;
    width: 100%;
    height: auto;
  }
}

/* Opcional: un pelín de aire lateral en móviles muy pequeños */
@media (max-width: 480px){
  .hero-img{
    display:block !important;
    width: 100%;
    height: auto;
    /* si tu imagen toca mucho el borde, descomenta: */
    /* padding: 0 12px; box-sizing: border-box; */
  }
}
