/* EcoVuela · hoja de estilos.
   Identidad: verde oliva #7A8C35, ámbar #E8A020, crema. Tipografías alojadas en el propio dominio (nada sale del
   navegador del visitante hacia terceros). */

@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }

:root {
  --oliva: #7a8c35;
  --oliva-oscuro: #5a6b28;
  --oliva-profundo: #2c3318;
  --oliva-noche: #1f2511;
  --oliva-claro: #e7ecd2;
  --ambar: #e8a020;
  --ambar-oscuro: #b97a0c;
  --brasa: #d9542b;
  --crema: #faf8f2;
  --crema-2: #f2eee1;
  --tinta: #2c3318;
  --texto: #4a5232;
  --gris: #6b7258;
  --linea: #e1dccb;
  --blanco: #ffffff;
  --radio: 16px;
  --sombra: 0 10px 34px rgba(44, 51, 24, .10);
  --sombra-grande: 0 24px 60px rgba(31, 37, 17, .22);
  --ancho: 1200px;
  --fuente: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --titulos: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fuente); font-size: 1.0625rem; line-height: 1.7; color: var(--texto); background: var(--crema); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--oliva-oscuro); }
a:hover { color: var(--oliva-profundo); }
h1, h2, h3 { font-family: var(--titulos); font-weight: 700; line-height: 1.15; color: var(--oliva-profundo); margin: 0 0 .55em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.contenedor { width: min(var(--ancho), 100% - 2.5rem); margin-inline: auto; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--ambar); color: var(--oliva-noche); padding: .6rem 1rem; z-index: 200; font-weight: 700; }
.saltar:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 242, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.cabecera .contenedor { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.marca { display: flex; align-items: center; gap: .9rem; text-decoration: none; margin-right: auto; }
.marca .marca-icono { height: 40px; width: auto; }
.marca .marca-texto { height: 17px; width: auto; }
.menu { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu a { display: block; text-decoration: none; color: var(--tinta); font-weight: 700; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; padding: .5rem .8rem; border-radius: 8px; }
.menu a:hover { background: var(--oliva-claro); color: var(--oliva-oscuro); }
.menu .menu-cta a { background: var(--oliva); color: #fff; margin-left: .4rem; }
.menu .menu-cta a:hover { background: var(--oliva-oscuro); color: #fff; }
.boton-menu { display: none; background: none; border: 1px solid var(--linea); border-radius: 10px; padding: .5rem .8rem; font: inherit; font-weight: 700; color: var(--oliva-profundo); cursor: pointer; }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.6rem; border-radius: 999px; font: inherit; font-weight: 700; letter-spacing: .02em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.boton:hover { transform: translateY(-2px); }
.boton-principal { background: var(--ambar); color: var(--oliva-noche); }
.boton-principal:hover { background: #f2b23a; color: var(--oliva-noche); }
.boton-claro { border-color: rgba(255, 255, 255, .6); color: #fff; }
.boton-claro:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.boton-oliva { background: var(--oliva); color: #fff; }
.boton-oliva:hover { background: var(--oliva-oscuro); color: #fff; }

/* ---------- Portada ---------- */
.portada { position: relative; min-height: min(88vh, 760px); display: grid; align-items: center; color: #f3f1e6; overflow: hidden; background: var(--oliva-noche); }
.portada-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 30, 12, .92) 0%, rgba(25, 30, 12, .78) 38%, rgba(25, 30, 12, .25) 72%, rgba(25, 30, 12, .05) 100%); }
.portada .contenedor { position: relative; z-index: 1; padding: 5rem 0; }
.portada-texto { max-width: 620px; }
.portada h1 { color: #fff; }
.portada .entradilla { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #e2e6cf; max-width: 46ch; }
.etiqueta { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--oliva); margin-bottom: 1rem; }
.etiqueta::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.portada .etiqueta { color: var(--ambar); }
.acciones { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.sellos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .92rem; line-height: 1.45; color: #d7dcc0; }
.sellos strong { display: block; font-family: var(--titulos); font-size: 1.35rem; color: #fff; font-weight: 600; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(4rem, 8vw, 7rem) 0; }
.seccion-blanca { background: var(--blanco); }
.seccion-crema { background: var(--crema-2); }
.cabeza-seccion { max-width: 760px; margin-bottom: 3rem; }
.cabeza-seccion p { font-size: 1.15rem; color: var(--gris); }
.centrada { text-align: center; margin-inline: auto; }
.centrada .etiqueta { justify-content: center; }

/* Servicios con imagen */
.servicios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.servicio { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.servicio:hover { transform: translateY(-4px); box-shadow: var(--sombra-grande); }
.servicio figure { margin: 0; aspect-ratio: 16 / 8; overflow: hidden; background: var(--oliva-profundo); }
.servicio figure img { width: 100%; height: 100%; object-fit: cover; }
.servicio-cuerpo { padding: 1.7rem 1.8rem 1.9rem; }
.servicio-cuerpo p { margin: 0; color: var(--gris); }
.servicio-num { font-family: var(--titulos); color: var(--ambar-oscuro); font-size: .95rem; font-weight: 700; letter-spacing: .1em; display: block; margin-bottom: .3rem; }

/* Bloque de vuelo real */
.vuelo { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.vuelo-imagen { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra-grande); }
.vuelo-imagen img { width: 100%; }
.vuelo-leyenda { position: absolute; left: 1rem; bottom: 1rem; background: rgba(250, 248, 242, .94); border-radius: 12px; padding: .7rem .9rem; font-size: .82rem; color: var(--tinta); box-shadow: var(--sombra); }
.vuelo-leyenda .barra { height: 9px; width: 180px; border-radius: 5px; margin: .35rem 0 .2rem; background: linear-gradient(90deg, #a50026, #f46d43, #fee08b, #a6d96a, #1a9850, #006837); }
.vuelo-leyenda .extremos { display: flex; justify-content: space-between; color: var(--gris); }
.sello-real { position: absolute; top: 1rem; left: 1rem; background: var(--oliva); color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .75rem; border-radius: 999px; }
.lista-check { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.lista-check li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--oliva) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* Qué recibes: panel */
.panel-marco { border-radius: 14px; overflow: hidden; box-shadow: var(--sombra-grande); background: #0e1621; border: 1px solid #22303f; }
.panel-barra { display: flex; gap: 6px; padding: 10px 14px; background: #16212e; }
.panel-barra span { width: 11px; height: 11px; border-radius: 50%; background: #3a4a5c; }
.panel-barra span:first-child { background: #e0654b; } .panel-barra span:nth-child(2) { background: #e8b54a; } .panel-barra span:nth-child(3) { background: #5ab36a; }
.pie-imagen { font-size: .86rem; color: var(--gris); margin-top: .8rem; text-align: center; }
.entregas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.entrega { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.6rem; }
.entrega p { margin: 0; color: var(--gris); }
.icono { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--oliva-claro); color: var(--oliva-oscuro); margin-bottom: 1rem; }
.icono svg { width: 24px; height: 24px; }

/* Para quién */
.publico { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.publico li { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.4rem 1.1rem; text-align: center; font-weight: 700; color: var(--tinta); }
.publico svg { display: block; width: 34px; height: 34px; margin: 0 auto .7rem; color: var(--oliva); }

/* Piloto */
.piloto { position: relative; overflow: hidden; border-radius: 26px; color: #e9ecda; background: var(--oliva-profundo); }
.piloto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.piloto-contenido { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; padding: clamp(2.2rem, 5vw, 4rem); }
.piloto h2 { color: #fff; }
.piloto .etiqueta { color: var(--ambar); }
.piloto ol { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.piloto ol li { counter-increment: p; position: relative; padding: .7rem 0 .7rem 3rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.piloto ol li::before { content: counter(p); position: absolute; left: 0; top: .55rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ambar); color: var(--oliva-noche); font-weight: 900; display: grid; place-items: center; font-size: .9rem; }

/* Contacto */
.contacto { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.formulario { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--sombra); }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.campo { margin-bottom: 1.1rem; }
.campo label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; color: var(--tinta); }
.campo .opcional { font-weight: 400; color: var(--gris); }
.campo input, .campo textarea { width: 100%; padding: .85rem .95rem; border: 1px solid #cfc9b4; border-radius: 10px; font: inherit; color: var(--tinta); background: var(--crema); }
.campo input:focus, .campo textarea:focus { border-color: var(--oliva); outline: 3px solid rgba(122, 140, 53, .22); background: #fff; }
.campo textarea { min-height: 140px; resize: vertical; }
.oculto { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.casilla { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; margin-bottom: 1.3rem; }
.casilla input { margin-top: .32rem; width: 1.1rem; height: 1.1rem; accent-color: var(--oliva); flex: none; }
.info-datos { font-size: .85rem; color: var(--gris); border-top: 1px solid var(--linea); margin-top: 1.5rem; padding-top: 1rem; }
.info-datos table { width: 100%; border-collapse: collapse; }
.info-datos th { text-align: left; vertical-align: top; padding: .3rem .8rem .3rem 0; white-space: nowrap; color: var(--tinta); }
.info-datos td { padding: .3rem 0; }
.aviso-envio { border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1.2rem; font-weight: 700; }
.aviso-ok { background: var(--oliva-claro); color: var(--oliva-oscuro); }
.aviso-error { background: #fbe3d6; color: #9b3a14; }
.datos-contacto { list-style: none; padding: 0; margin: 2rem 0 0; }
.datos-contacto li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.datos-contacto .icono { margin: 0; flex: none; }
.datos-contacto strong { display: block; color: var(--tinta); }

/* Datos pendientes de completar (solo durante la revisión) */
.pendiente { background: #fff3b0; color: #6b4b00; border: 1px dashed #d4a600; border-radius: 4px; padding: 0 .3em; font-weight: 700; }

/* ---------- Pie ---------- */
.pie { background: var(--oliva-noche); color: #c4c9ad; padding: 4rem 0 2rem; font-size: .95rem; }
.pie .contenedor { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.pie-logo { width: 170px; margin-bottom: 1rem; }
.pie h3 { font-family: var(--fuente); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; margin-bottom: 1rem; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: .5rem; }
.pie a { color: #e3e6d2; text-decoration: none; }
.pie a:hover { color: var(--ambar); }
.pie-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.4rem; margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .86rem; }

/* ---------- Aviso de cookies ---------- */
.aviso-cookies { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 760px; margin-inline: auto; background: var(--oliva-noche); color: #e6e9d6; border-radius: 16px; padding: 1.1rem 1.3rem; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); display: flex; gap: 1.2rem; align-items: center; font-size: .95rem; }
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { margin: 0; }
.aviso-cookies strong { color: #fff; }
.aviso-cookies a { color: var(--ambar); }
.aviso-cookies .boton { padding: .7rem 1.3rem; flex: none; }

/* ---------- Páginas legales ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal .contenedor { max-width: 880px; }
.legal article { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(1.5rem, 4vw, 3rem); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .96rem; }
.legal th, .legal td { border: 1px solid var(--linea); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.legal th { background: var(--crema); width: 32%; color: var(--tinta); }
.legal .actualizado { color: var(--gris); font-size: .92rem; }
.migas { font-size: .92rem; margin-bottom: 1rem; }

/* ---------- Adaptación ---------- */
@media (max-width: 1080px) {
  .publico { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .vuelo, .contacto, .piloto-contenido { grid-template-columns: 1fr; }
  .entregas { grid-template-columns: repeat(2, 1fr); }
  .pie .contenedor { grid-template-columns: 1fr 1fr; }
  .portada::after { background: linear-gradient(90deg, rgba(25, 30, 12, .9), rgba(25, 30, 12, .6)); }
}
@media (max-width: 820px) {
  .boton-menu { display: inline-block; }
  .menu { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--crema); border-bottom: 1px solid var(--linea); padding: .5rem 1.25rem 1rem; }
  .menu.abierto { display: flex; }
  .menu a { padding: .8rem 0; border-bottom: 1px solid var(--linea); border-radius: 0; }
  .menu .menu-cta a { margin: .8rem 0 0; text-align: center; border-radius: 999px; }
}
@media (max-width: 680px) {
  .servicios, .entregas, .fila, .sellos { grid-template-columns: 1fr; }
  .publico { grid-template-columns: repeat(2, 1fr); }
  .pie .contenedor { grid-template-columns: 1fr; }
  .info-datos th { white-space: normal; }
  .aviso-cookies { flex-direction: column; align-items: stretch; text-align: left; }
  .marca .marca-texto { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton, .servicio { transition: none; }
}
