/* ═══════════════════════════════════════
   Aire 42 — Mañas Cano Promotora
   Página de construcción / Promoción vendida
═══════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --azul: #0055B8;
  --rojo: #FE3B1F;
  --pad-x: 8.65%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  display: grid;
  grid-template-columns: 74.4% 25.6%;
  grid-template-rows: 100vh;
  overflow: hidden;
}

/* ════════════════════════════
   PANEL IZQUIERDO
════════════════════════════ */
.panel-left {
  position: relative;
  overflow: hidden;
  background-color: var(--azul);
}

/* Triángulo blanco esquina superior-derecha.
   Boceto: diagonal de (71.14%,0) a (100%,45.85%).
   right:-1px elimina la línea azul entre panel y triángulo. */
.panel-left::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: #fff;
  clip-path: polygon(70.5% 0%, 101% 0%, 101% 46.5%);
  pointer-events: none;
}

/* Imagen de fondo */
.panel-left__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.panel-left__bg img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* ── BLOQUE SUPERIOR ── */
.block-top {
  position: absolute;
  z-index: 2;
  top: 15.6%;
  left: var(--pad-x);
  right: 30%;
  display: flex;
  flex-direction: column;
}

/* Logo aire42: 294/1434 = 20.5% */
.logo-aire42 {
  width: 20.5%;
  height: auto;
  display: block;
}

/* Espacio entre logo y título:
   Boceto: logo bottom=237, h1 top=251 → 14px sobre 910 = 1.5% */
.content {
  margin-top: 1.5%;
}

/* H1: 75px en boceto de 1928px ancho → 75/1928 = 3.89vw */
h1 {
  font-size: clamp(1.4rem, 3.9vw, 4.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Subtítulo: 20px en 1928 → 1.04vw.
   Boceto: h1 top=251, sub top=361, h1 tiene font-size 75px
   → gap real entre bottom de h1 y top de sub ≈ 20-30px → 1-1.5% */
.subtitle {
  margin-top: 0.8%;
  font-size: clamp(0.6rem, 1.04vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.64;
}

/* ── BLOQUE INFERIOR ── */
.block-bottom {
  position: absolute;
  z-index: 2;
  bottom: 12.9%;
  left: var(--pad-x);
  right: 2%;
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
}

/* Próximamente: 25px en 1928 → 1.3vw */
.prox {
  font-size: clamp(0.55rem, 1.3vw, 0.9rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Logo Mañas Cano: 336/1434 = 23.4% */
.logo-manas {
  width: 23.4%;
  height: auto;
  display: block;
}

/* ════════════════════════════
   PANEL DERECHO
════════════════════════════ */
.panel-right {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.shape-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 84.2%;
  height: 45.5%;
  display: block;
  --fill-0: #0055B8;
}

.shape-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 84.4%;
  height: 45.6%;
  display: block;
  --fill-0: #FE3B1F;
}

/* ════════════════════════════
   RESPONSIVE — tablet y móvil (≤ 900px)
   Diseño vertical: panel azul arriba, formas abajo
════════════════════════════ */
@media (max-width: 900px) {
  body {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: auto;
  }

  .panel-left {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8vw;
    min-height: 100vh;
    min-height: 100svh;
    padding: 15vw 8vw;
  }

  .panel-left::after { display: none; }
  .panel-left__bg img { object-fit: cover; }

  .block-top,
  .block-bottom {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .logo-aire42 { width: 35%; }
  .content { margin-top: 5vw; }
  .subtitle { margin-top: 2vw; }
  .block-bottom { gap: 5vw; margin-top: auto; }
  .logo-manas { width: 38%; }

  h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
  .subtitle { font-size: clamp(0.9rem, 2.8vw, 1.1rem); }
  .prox { font-size: clamp(0.75rem, 2.2vw, 0.95rem); }

  /* Ocultar panel derecho en vertical */
  .panel-right { display: none; }
}

/* ════════════════════════════
   RESPONSIVE — móvil (≤ 540px)
   Panel azul a pantalla completa, sin bloque blanco
════════════════════════════ */
@media (max-width: 540px) {
  .panel-left {
    padding: 25vw 10vw;
  }

  .logo-aire42 { width: 45%; }
  .content { margin-top: 5vw; }
  .subtitle { margin-top: 2vw; }
  .block-bottom { gap: 5vw; }
  .logo-manas { width: 50%; }

  h1 { font-size: clamp(2rem, 9vw, 3.5rem); }
  .subtitle { font-size: clamp(0.85rem, 4vw, 1.1rem); }
  .prox { font-size: clamp(0.7rem, 3.2vw, 1rem); }
}

/* ════════════════════════════
   ANIMACIONES
════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.block-top    { animation: fadeUp .6s 0s both; }
.block-bottom { animation: fadeUp .6s .25s both; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
