/*
Theme Name: La Escudera
Description: Tema hijo de GeneratePress para La Escudera Correduría de Seguros. Desarrollado por ZETA Comunicación.
Author: ZETA Comunicación
Author URI: https://zetacomunicacion.com
Template: generatepress
Version: 1.8.1
Text Domain: laescudera
*/

/* ==========================================================
   La Escudera — Identidad
   Pizarra principal:  #2A464A
   Pizarra profunda:   #00272E
   Acento (CTA):       #C9962E
   Fondo claro:        #F4F6F6
   ========================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --le-slate: #2A464A;
  --le-deep: #00272E;
  --le-accent: #C9962E;
  --le-accent-dark: #A87B1F;
  --le-light: #F4F6F6;
  --le-line: #DDE4E5;
  /* Curvas de movimiento (tokens) */
  --le-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --le-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--le-slate);
  font-size: 18px;
  line-height: 1.65;
}

h1, h2, h3, h4, .main-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  color: var(--le-deep);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

/* ---------- Cabecera ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--le-line);
}
.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
}
.site-header .site-logo img,
.site-header img.header-image {
  max-height: 62px;
  width: auto;
  height: 62px;
}
/* El logotipo ya contiene el nombre: ocultamos el título duplicado */
.site-header .site-branding { display: none; }
.main-navigation {
  background: transparent;
}
.main-navigation .main-nav ul li a {
  color: var(--le-slate);
  font-weight: 600;
  font-size: 15px;
}
.main-navigation .main-nav ul li a:hover {
  color: var(--le-accent-dark);
}
@media (max-width: 768px) {
  .site-header .inside-header { padding: 10px 20px; }
  .site-header .site-logo img,
  .site-header img.header-image { max-height: 48px; height: 48px; }
}

/* ---------- Botones ---------- */
.wp-block-button__link,
.le-btn {
  border-radius: 6px;
  font-weight: 700;
  padding: 16px 34px;
  transition: all .2s ease;
}
.le-btn-accent .wp-block-button__link {
  background: var(--le-accent);
  color: #fff;
}
.le-btn-accent .wp-block-button__link:hover {
  background: var(--le-accent-dark);
  transform: translateY(-1px);
}
.le-btn-ghost .wp-block-button__link {
  background: transparent;
  color: var(--le-deep);
  border: 2px solid var(--le-slate);
}
.le-btn-ghost .wp-block-button__link:hover {
  background: var(--le-deep);
  color: #fff;
}
.le-btn-ghost-light .wp-block-button__link {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.le-btn-ghost-light .wp-block-button__link:hover {
  background: #fff;
  color: var(--le-deep);
}

/* ---------- Hero fotográfico ---------- */
.le-kicker {
  color: var(--le-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 14px;
}
.le-hero-cover { display: flex; align-items: center; }
.le-hero-cover .wp-block-cover__inner-container { width: 100%; }
.le-hero-cover h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  margin: .3em 0 .3em;
  text-wrap: balance;
}
.le-hero-cover .le-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: #DCE6E7;
  max-width: 33em;
}
.le-hero-cover .le-sub strong { color: #fff; }
/* Degradado inferior para fundir con la franja siguiente */
.le-hero-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(0,39,46,.55));
  pointer-events: none;
}

/* ---------- Sección Aviación ---------- */
.le-aviacion h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.le-img-round img {
  border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(0,39,46,.45);
}

/* ---------- Cubiertas oscuras (correduría y CTA) ---------- */
.le-dark-cover, .le-cta-cover { color: #E8EEEF; }
.le-dark-cover h2, .le-cta-cover h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
.le-dark-cover p, .le-cta-cover p { color: #C4D2D4; }
.le-dark-cover strong { color: #fff; }

/* ---------- Franja de confianza ---------- */
.le-trust {
  background: #fff;
}
.le-trust h3 {
  font-size: 1.05rem;
  margin-bottom: .4em;
}
.le-trust .wp-block-column {
  border-left: 3px solid var(--le-accent);
  padding-left: 22px;
}
.le-trust p { font-size: .95rem; margin-bottom: 0; }

/* ---------- Tarjetas de seguros con foto ---------- */
.le-cards h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.le-card {
  background: #fff;
  border: 1px solid var(--le-line);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: all .22s ease;
}
.le-card:hover {
  border-color: var(--le-slate);
  box-shadow: 0 18px 40px -20px rgba(0,39,46,.4);
  transform: translateY(-4px);
}
.le-card .le-card-img { margin: 0; }
.le-card .le-card-img img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.le-card:hover .le-card-img img { transform: scale(1.045); }
.le-card .le-card-body { padding: 26px 26px 30px; }
.le-card h3 {
  font-size: 1.25rem;
  margin-bottom: .5em;
}
.le-card p {
  font-size: .95rem;
  margin-bottom: 0;
  color: #51686C;
}
.le-card-cta {
  background: linear-gradient(160deg, var(--le-deep) 0%, var(--le-slate) 100%);
  border: none;
  display: flex;
  align-items: center;
}
.le-card-cta h3 { color: #fff; }
.le-card-cta p { color: #C4D2D4; }
.le-card-cta .le-card-body { padding: 34px 30px; }

/* ---------- Footer ---------- */
.site-footer, .site-info {
  background: var(--le-deep);
  color: #9FB3B6;
}
.site-info a { color: #C4D2D4; }
.site-info .inside-site-info { padding: 34px 20px 40px; }
.le-footer-legal { text-align: center; font-size: 13px; line-height: 1.7; max-width: 880px; margin: 0 auto; }
.le-footer-legal p { margin-bottom: .5em; }
.le-footer-links { font-size: 14px; font-weight: 600; }
.le-footer-kit { margin-top: 26px; }
.le-footer-kit img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  background: #F4F6F6;
  padding: 20px 30px;
  border-radius: 10px;
}

/* Botón Presupuesto en el menú */
.main-navigation .main-nav ul li.le-menu-cta a {
  background: var(--le-accent);
  color: #fff !important;
  border-radius: 6px;
  margin: 14px 0 14px 12px;
  padding: 9px 22px;
  line-height: 1.4;
}
.main-navigation .main-nav ul li.le-menu-cta a:hover {
  background: var(--le-accent-dark);
}

/* ---------- Cabecera de página interior ---------- */
.le-page-hero { min-height: 46vh; display: flex; align-items: center; }
.le-page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: .25em 0 .2em;
}
.le-page-hero .le-sub { color: #DCE6E7; font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 36em; }

/* ---------- Bloques de producto (páginas interiores) ---------- */
.le-productos h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.le-producto {
  background: #fff;
  border: 1px solid var(--le-line);
  border-left: 4px solid var(--le-accent);
  border-radius: 10px;
  padding: 30px 32px !important;
  height: 100%;
}
.le-producto h3 { font-size: 1.15rem; margin-bottom: .45em; }
.le-producto p { font-size: .95rem; color: #51686C; margin-bottom: 0; }

/* ---------- Formulario de presupuesto ---------- */
.le-form { max-width: 760px; }
.le-form .le-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.le-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 640px) { .le-form-grid { grid-template-columns: 1fr; } }
.le-form label { font-weight: 700; font-size: .92rem; color: var(--le-deep); display: block; }
.le-form input[type=text], .le-form input[type=email], .le-form input[type=tel],
.le-form input[type=number], .le-form select, .le-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 15px;
  border: 1px solid #C3CFD1;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: var(--le-slate);
}
.le-form input:focus, .le-form select:focus, .le-form textarea:focus {
  outline: 2px solid var(--le-accent);
  outline-offset: 1px;
  border-color: var(--le-accent);
}
.le-form .le-suma input { max-width: 140px; }
.le-form .le-consent label { font-weight: 400; font-size: .88rem; }
.le-form .le-consent input { margin-right: 8px; }
.le-form-btn {
  background: var(--le-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 8px;
  padding: 16px 42px;
  cursor: pointer;
  transition: all .2s ease;
}
.le-form-btn:hover { background: var(--le-accent-dark); transform: translateY(-1px); }
.le-form-ok, .le-form-error {
  border-radius: 10px;
  padding: 26px 30px;
  margin-bottom: 26px;
}
.le-form-ok { background: #EAF4EC; border: 1px solid #BFDCC6; }
.le-form-ok h3 { color: #1E5B2E; }
.le-form-error { background: #FBEFEA; border: 1px solid #EBCABC; color: #8A3A1B; }

/* ==========================================================
   Movimiento — reveals al hacer scroll (decorativo, no bloquea)
   ========================================================== */
.le-reveal {
  opacity: 0;
  transform: translateY(48px) scale(.98);
  filter: blur(8px);
  transition:
    opacity 900ms var(--le-ease-out),
    transform 900ms var(--le-ease-out),
    filter 900ms var(--le-ease-out);
  will-change: opacity, transform, filter;
  transition-delay: 0ms;
}
/* Variantes laterales (filas de dos columnas: imagen/texto) */
.le-reveal.le-from-left  { transform: translateX(-64px) scale(.98); }
.le-reveal.le-from-right { transform: translateX(64px) scale(.98); }
.le-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

/* Hero: entrada escalonada al cargar */
.le-hero-cover .le-kicker,
.le-hero-cover h1,
.le-hero-cover .le-sub,
.le-hero-cover .wp-block-buttons {
  animation: le-rise 950ms var(--le-ease-out) both;
}
.le-hero-cover h1 { animation-delay: 120ms; }
.le-hero-cover .le-sub { animation-delay: 260ms; }
.le-hero-cover .wp-block-buttons { animation-delay: 400ms; }
@keyframes le-rise {
  from { opacity: 0; transform: translateY(52px); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
/* Hero: la imagen asienta lentamente (Ken Burns) */
.le-hero-cover { overflow: hidden; }
.le-hero-cover .wp-block-cover__image-background {
  animation: le-settle 3200ms var(--le-ease-out) both;
}
@keyframes le-settle {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* Covers interiores: la imagen asienta al entrar en viewport */
.wp-block-cover:not(.le-hero-cover) { overflow: hidden; }
.wp-block-cover:not(.le-hero-cover) .wp-block-cover__image-background {
  transform: scale(1.14);
  transition: transform 1600ms var(--le-ease-out);
}
.wp-block-cover.le-cover-in .wp-block-cover__image-background {
  transform: scale(1);
}

/* Botones: feedback de pulsación */
.wp-block-button__link:active,
.le-form-btn:active,
#le-cookies-ok:active {
  transform: scale(0.97);
  transition: transform 120ms var(--le-ease-out);
}

/* Cabecera con sombra al hacer scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: box-shadow 250ms var(--le-ease-out);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 28px -12px rgba(0,39,46,.25);
}

/* Accesibilidad: sin movimiento si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .le-reveal { opacity: 1; transform: none; transition: none; }
  .le-hero-cover .le-kicker,
  .le-hero-cover h1,
  .le-hero-cover .le-sub,
  .le-hero-cover .wp-block-buttons,
  .le-hero-cover .wp-block-cover__image-background { animation: none; }
  .wp-block-cover:not(.le-hero-cover) .wp-block-cover__image-background { transform: none; transition: none; }
  .le-card, .le-card .le-card-img img, .wp-block-button__link { transition: none; }
}

/* ---------- Aviso de cookies ---------- */
.le-cookies {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  max-width: 560px;
  margin: 0 auto;
  background: var(--le-deep);
  color: #DCE6E7;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 18px 48px -12px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  gap: 20px;
}
.le-cookies[hidden] { display: none; }
.le-cookies p { margin: 0; font-size: .85rem; line-height: 1.5; }
.le-cookies a { color: #fff; text-decoration: underline; }
.le-cookies strong { color: #fff; }
.le-cookies button {
  background: var(--le-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
}
.le-cookies button:hover { background: var(--le-accent-dark); }
@media (max-width: 600px) {
  .le-cookies { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- GTranslate: selector de idioma flotante ---------- */
.gtranslate_wrapper {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 99990;
}
.gtranslate_wrapper .gt_float_switcher {
  border-radius: 8px;
  box-shadow: 0 10px 30px -10px rgba(0,39,46,.45);
  font-family: inherit;
}

/* ---------- Página de contacto ---------- */
.le-contacto-datos p { margin-bottom: .6em; }
.le-contacto-datos strong { color: var(--le-deep); }

/* ---------- Utilidades ---------- */
/* GeneratePress constriñe cada inner-container anidado a 1200px con padding:
   lo anulamos y dejamos que .le-wrap controle el ancho. */
.entry-content .wp-block-group__inner-container {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.entry-content .wp-block-columns { width: 100%; }
.le-wrap {
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 5vw;
  padding-right: 5vw;
}
.le-section-pad { padding-top: 90px; padding-bottom: 90px; }
@media (max-width: 768px) {
  .le-section-pad { padding-top: 56px; padding-bottom: 56px; }
  .le-hero img { max-width: 170px; }
}

/* ==========================================================
   AÑADIDOS 1.8.0 — Banda UAS (inicio), banner dron (aviación),
   logos de aseguradoras. ZETA Comunicación.
   ========================================================== */

/* Banda UAS destacada en el inicio (fondo pizarra profundo) */
.le-uas h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.le-uas .le-kicker { color: var(--le-accent); }
.le-uas .le-producto { height: 100%; }
.le-uas .wp-block-columns { margin-bottom: 26px; }
.le-uas .wp-block-buttons { margin-top: 8px; }

/* Banner destacado en la apertura de Aviación */
.le-banner-dron { background: var(--le-accent); }
.le-banner-dron .le-wrap { padding-top: 15px; padding-bottom: 15px; }
.le-banner-dron-text {
  margin: 0;
  text-align: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}
.le-banner-dron-text strong { color: var(--le-deep); }

/* Fila de logos de aseguradoras */
.le-logos { background: #fff; }
.le-logos h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.le-logos-row,
.le-logos-row > .wp-block-group__inner-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 52px;
}
.le-logos-row .le-logo { margin: 0; }
.le-logos-row .le-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  .le-logos-row { gap: 22px 34px; }
  .le-logos-row .le-logo img { height: 32px; }
}

/* Turnstile (si se activa con claves en wp-config) */
.le-form .le-turnstile { margin: 6px 0 18px; }
