/* =========================================================
   Valero Child – Estilos de la landing
   (Reemplazar todo el contenido previo por este bloque)
   ========================================================= */

/* ------------------ Google Fonts (ligeras, elegantes) ------------------ */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Montserrat:wght@300;400;500;600&display=swap");

/* ------------------ Variables de color y medidas ------------------ */
:root{
  --white: #FFFFFF;
  --sand:  #BEA48B;   /* botón / acentos */
  --rose:  #E7DED7;   /* fondos suaves */
  --sage:  #B7B195;   /* detalles tenues */
  --green: #5B6D5D;   /* títulos/acentos oscuros */
  --text:  #2B2B2B;   /* texto principal */
  --muted: #666A6A;
  --shadow: 0 10px 24px rgba(0,0,0,.08);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
}

/* ------------------ Reset mínimo & base ------------------ */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  color:var(--text);
  background:var(--white);
  font-family:"Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
  font-size:16px;
}

img, video{ max-width:100%; height:auto; display:block; }

/* Contenedores globales de secciones */
.section-container,
.hero-container{
  width: min(var(--maxw), 92vw);
  margin-inline:auto;
}

/* Títulos */
h1,h2,h3,h4{
  font-family:"Cormorant Garamond", Georgia, "Times New Roman", serif;
  color:var(--green);
  margin:0 0 .6em 0;
  line-height:1.15;
}
h1{ font-size: clamp(32px, 4.6vw, 56px); text-align:center; }
h2{ font-size: clamp(26px, 3.2vw, 38px); }
h3{ font-size: clamp(20px, 2.2vw, 26px); }

p{ margin:0 0 1em 0; font-size: clamp(14px, 1.3vw, 18px); color:var(--text); }
.center{ text-align:center; }

/* Botón primario */
.cta-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  background:var(--sand);
  color:var(--white);
  text-decoration:none;
  font-weight:600;
  font-size: clamp(14px, 1.2vw, 16px);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  position:relative;
  z-index:3; /* siempre por encima del video */
  max-width:100%;
  white-space:nowrap;
}
.cta-button:hover{ transform:translateY(-1px); box-shadow:0 12px 28px rgba(0,0,0,.12); background:#b39277; }
.cta-button:active{ transform:translateY(0); }

/* ------------------ HERO ------------------ */
.hero{
  padding: clamp(28px, 5vw, 56px) 0;
  background:
    radial-gradient(1200px 300px at 50% -80px, rgba(183,177,149,.16), transparent 65%),
    var(--white);
}
.hero .hero-container{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: clamp(14px, 2.4vw, 22px);
  text-align:center;
}
.hero p{
  max-width: 880px;
  color:var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  margin-inline:auto;
}

/* Marco del video (aunque no haya imagen aún) */
.hero-media{
  width: 100%;
  max-width: 1024px;
  background: var(--rose);
  border-radius: var(--radius);
  padding: clamp(8px, 1.4vw, 14px);
  box-shadow: var(--shadow);
}
.hero-media video{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 6px);
  object-fit: cover;
  background: #222;
  position:relative; z-index:1;
}

/* ------------------ SECCIONES GENERALES ------------------ */
section{ padding: clamp(36px, 6vw, 72px) 0; }
section .section-container{ display:block; }

/* ------------------ ¿POR QUÉ ESTA GUÍA? ------------------ */
.porque h2{ max-width: 920px; }
.porque p{ max-width: 920px; color:var(--text); }

/* Tarjeta visual (antes/después) */
.media-card{
  margin: clamp(18px, 3vw, 28px) auto 0;
  width: min(920px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.04);
}
.media-card img{
  width:100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--rose);
}
.media-card figcaption{
  padding: 10px 14px;
  font-size: .925rem;
  color: var(--muted);
}

/* ------------------ 6 PASOS ------------------ */
.seis-pasos ul{
  list-style:none;
  padding:0;
  margin: clamp(10px, 2vw, 16px) 0 0 0;
  display:grid;
  gap: 10px;
  max-width: 920px;
}
.seis-pasos li{
  position:relative;
  padding-left: 30px;
  font-size: clamp(15px, 1.25vw, 18px);
}
.seis-pasos li::before{
  content:"✔︎";
  position:absolute; left:0; top:0;
  color:var(--green);
  font-weight:600;
}

/* ------------------ COMBOS (grilla y tarjetas) ------------------ */
.combos .section-container > p{ color:var(--muted); max-width:920px; }

.combos-grid{
  margin-top: clamp(16px, 3vw, 28px);
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 24px);
}
@media (min-width: 760px){
  .combos-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px){
  .combos-grid{ grid-template-columns: repeat(3, 1fr); }
}

.combo-card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.04);
  padding: clamp(14px, 2vw, 18px);
  display:flex;
  flex-direction:column;
  gap: 12px;
  min-height: 100%;
}
.combo-card h3{ margin-top: 2px; }

.combo-img{
  width:100%;
  aspect-ratio: 4 / 3;          /* tamaño uniforme, sin desbordes */
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--rose);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

.combo-card ul{
  list-style:none;
  padding:0; margin: 6px 0 4px 0;
  display:grid; gap: 6px;
}
.combo-card li{
  position:relative;
  padding-left: 26px;
  color: var(--text);
  font-size: clamp(14px, 1.15vw, 16px);
}
.combo-card li::before{
  content:"✔︎";
  position:absolute; left:0; top:0;
  color:var(--green); font-weight:600;
}

/* Botón dentro de la tarjeta (no se sale) */
.combo-card .cta-button{
  align-self:flex-start;    /* queda dentro, pegado a la tarjeta */
  margin-top:auto;          /* baja el botón al final de la card */
  max-width: 100%;
  white-space:normal;
}

/* ------------------ TESTIMONIOS ------------------ */
.testimonios .section-container{ max-width: 920px; }
.testimonio{
  background: var(--white);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(14px, 2vw, 18px);
  margin-top: 14px;
}
.testimonio p{ margin:.4em 0; }
.testimonio-nombre{ color:var(--muted); }

/* ------------------ FORMULARIO ASESORÍA ------------------ */
.asesoria .section-container{ max-width: 880px; }
.asesoria p{ color:var(--muted); }

.asesoria form{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}
.asesoria input[type="text"],
.asesoria input[type="email"],
.asesoria input[type="tel"]{
  padding: 12px 14px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.12);
  background: var(--white);
  font: inherit;
  outline:none;
}
.asesoria input:focus{
  border-color: var(--sand);
  box-shadow: 0 0 0 4px rgba(190,164,139,.15);
}
.asesoria button.cta-button{
  width: max(240px, 40%);
  justify-self: start;
}

/* ------------------ SOBRE/CONTACTO ------------------ */
.sobre .section-container{ max-width: 920px; }
.sobre iframe{
  margin-top: 12px;
  width:100%; height: 340px;
  border:0; border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------------ FOOTER simple ------------------ */
footer{
  padding: 32px 0 44px;
  background: linear-gradient(to bottom, #f6f4f2, #efebe7);
  margin-top: 28px;
}
footer .footer-container{
  width:min(920px, 92vw);
  margin-inline:auto;
  text-align:center;
  color: var(--muted);
}
footer img{
  width: 120px; height:auto;
  margin: 0 auto 8px;
  filter: saturate(.9);
}

/* ------------------ Alineaciones & micro-ajustes ------------------ */
.hero .cta-button{ margin-top: 4px; }
.porque h2, .porque p,
.seis-pasos h2,
.combos h2, .combos .section-container > p,
.testimonios h2,
.asesoria h2, .asesoria p,
.sobre h2, .sobre p{ margin-left:auto; margin-right:auto; }

/* ------------------ Ocultar encabezado del tema SOLO aquí ------------------ */
/* Evita que vuelva a aparecer el título del tema en esta plantilla */
body.page-template-page-landing-valero-php #headering,
body.page-template-page-landing-valero-php #header,
body.page-template-page-landing-valero-php .site-title,
body.page-template-page-landing-valero-php .site-description{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  clip-path: inset(50%) !important;
  white-space:nowrap !important;
}

/* ------------------ Responsivo fino ------------------ */
@media (max-width: 640px){
  .cta-button{ width:100%; }
  .asesoria button.cta-button{ width:100%; justify-self:stretch; }
}
/* ====================== */
/* VALERO – FIX PACK UI   */
/* (Pegar al final del CSS)*/
/* ====================== */

/* 1) Tipografías más grandes y legibles */
body{
  font-size: 18px;          /* antes 16–17 */
  line-height: 1.65;
}
p{ font-size: 18px; }
h1{ font-size: clamp(36px, 5.6vw, 58px) !important; }
h2{ font-size: clamp(28px, 3.4vw, 42px) !important; }
h3{ font-size: clamp(20px, 2.6vw, 26px) !important; }

/* 2) HERO – título/intro arriba del video, centrado */
.hero .hero-container{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  text-align:center !important;
  gap: 12px;
}
.hero .hero-container > h1{ order:1 !important; margin-top:4px; }
.hero .hero-container > p { order:2 !important; max-width:960px; color:#555; }
.hero .hero-media            { order:3 !important; }
.hero .hero-container > video{ order:3 !important; } /* por si usas <video> directo */
.hero .cta-button            { order:4 !important; }

/* 3) Ocultar encabezado del tema SOLO en esta landing */
/* – por plantilla y por ID de página (post=5) */
body.page-template-page-landing-valero-php #headering,
body.page-template-page-landing-valero-php #header,
body.page-template-page-landing-valero-php .site-title,
body.page-template-page-landing-valero-php .site-description,
.page-id-5 #header,
.page-id-5 #headerimg,
.page-id-5 #headerimg h1,
.page-id-5 #headerimg a{
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  z-index: -9999 !important;
}

/* 4) COMBOS – proporciones, sin huecos, CTA dentro sin desbordar */
.combos-grid{
  display:grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px){ .combos-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .combos-grid{ grid-template-columns: 1fr; } }

.combo-card{
  display:flex;                 /* <— para controlar el flujo interno */
  flex-direction:column;
  align-items:stretch;
  gap: 10px;
  min-height: 100%;
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}
.combo-card .combo-img{
  width:100%;
  height: clamp(190px, 22vw, 260px); /* misma altura en todas */
  object-fit:cover;
  border-radius:12px;
  background:#E7DED7;
  margin:0;
}
.combo-card h3{ margin:4px 0 4px; }
.combo-card ul{
  list-style:none; padding:0; margin: 2px 0 0 0; /* <— quita hueco extra */
}
.combo-card li{ position:relative; padding-left:24px; margin:6px 0; font-size:16px; }
.combo-card li::before{ content:"✓"; position:absolute; left:0; top:0; color:#5B6D5D; font-weight:700; }

/* Botón SIEMPRE dentro y sin salirse */
.combo-card .cta-button{
  margin-top: 12px;        /* un poco de respiración, sin hueco gigante */
  align-self: stretch;     /* ancho de la tarjeta */
  white-space: normal;     /* permite salto de línea si es largo */
}

/* 5) Botones más grandes */
.cta-button{
  font-size: 17px !important;
  padding: 14px 28px !important;
  border-radius: 16px !important;
}

/* 6) Asegurar clic sobre video (z-index) */
.hero .hero-container > video,
.hero .hero-media video{
  position:relative; z-index:1;
}
.cta-button{ position:relative; z-index:3; }

/* 7) Ajustes responsive finos */
@media (max-width: 560px){
  body{ font-size: 17px; }
  .cta-button{ width:100%; }
}
/* ============== FIXES ESPECÍFICOS – NO ROMPEN LO ANTERIOR ============== */

/* 1) Ocultar por completo el header del tema SOLO en la página de la landing (ID 5) */
body.page-id-5 .wp-site-blocks > header,
body.page-id-5 header.wp-block-template-part,
body.page-id-5 .site-header,
body.page-id-5 #header,
body.page-id-5 #headerimg,
body.page-id-5 #masthead {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  z-index: -9999 !important;
}

/* 2) Legibilidad general (sin tocar tu paleta) */
html { scroll-behavior: smooth; }
body { font-size: 17px; }
p, li { font-size: 17px; line-height: 1.6; }
h2 { font-size: clamp(24px, 3.6vw, 34px); }
@media (max-width: 480px){
  h1 { font-size: clamp(28px, 7.6vw, 34px); }
}

/* 3) Mantener el orden del HERO: título + intro arriba, luego video y CTA */
.hero .hero-container{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .hero-container h1{ order: 1; }
.hero .hero-container p{  order: 2; }
.hero .hero-media{       order: 3; }
.hero .cta-button{       order: 4; }

/* 4) Tarjetas de combos – proporciones y distribución */
.combo-card{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px; /* quita hueco extra inferior */
}

.combo-card .combo-img,
.combo-card .combo-slider{
  width: 100%;
  height: clamp(190px, 42vw, 240px); /* más proporcionado en móvil */
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Si usas el contenedor de slider, que sea “lienzo” correcto */
.combo-slider{
  position: relative;
  overflow: hidden;
  background: var(--valero-beige-soft, #E7DED7);
  box-shadow: inset 0 0 0 1px #eee;
}

/* Botones del slider: circulares, superpuestos y sin barras grises */
.combo-slider .nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 20px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.combo-slider .nav:hover{ background: rgba(0,0,0,.55); transform: translateY(-50%) scale(1.04); }
.combo-slider .nav.prev{ left: 10px; }
.combo-slider .nav.next{ right: 10px; }

/* Puntos del slider */
.combo-slider .dots{
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  gap: 6px;
  justify-content: center;
  z-index: 6;
}
.combo-slider .dots .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.combo-slider .dots .dot.active{
  background: var(--valero-green, #5B6D5D);
  transform: scale(1.12);
}

/* Listado y títulos dentro de la tarjeta sin huecos raros */
.combo-card h3{ margin: 0 0 4px; }
.combo-card ul{ margin: 0 0 10px; padding-left: 0; }

/* Botón de la tarjeta: no se sale, ocupa ancho, texto bien */
.combo-card .cta-button{
  width: 100%;
  margin-top: auto;
  text-align: center;
  white-space: normal;      /* permite salto de línea si el texto es largo */
  line-height: 1.2;
  font-size: 16px;
  padding: 14px 18px;
}

/* 5) Pequeños ajustes responsive para móvil */
@media (max-width: 640px){
  .section-container{ padding: 0 16px; }
  .combo-card .combo-img,
  .combo-card .combo-slider{ height: clamp(170px, 52vw, 220px); }
  .cta-button{ font-size: 16px; }
}
/* Vimeo en el HERO – asegura que el iframe llene el marco 16:9 existente */
.hero .hero-media{ position: relative; }
.hero .hero-media iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: var(--valero-beige-soft, #E7DED7);
}
/* ====== Ajuste SOLO para carruseles de combos con fotos verticales ====== */
/* Relación retrato 3:4 en desktop/tablet */
.combo-card .combo-img,
.combo-card .combo-slider{
  height: auto !important;
  aspect-ratio: 3 / 4;        /* retrato: más alto que ancho */
}

/* Un poco más alto en móviles estrechos */
@media (max-width: 640px){
  .combo-card .combo-img,
  .combo-card .combo-slider{
    aspect-ratio: 2 / 3;      /* aún más vertical en móvil */
  }
}

/* (Opcional) si ves que los puntos o flechas quedan muy pegados al borde */
.combo-slider .dots{ bottom: 10px; }
.combo-slider .nav{ top: 50%; transform: translateY(-50%); }