/* =====================================================
   CERREJEROS – SKIN CLARA PROFESIONAL
   Optimizado para SEO local, conversión y mobile
   ===================================================== */

/* -------- Variables de diseño -------- */
:root{
  --bg:#ffffff;
  --card:#f7f8fa;
  --text:#1a1a1a;
  --muted:#5f6368;
  --line:#e5e7eb;

  --primary:#1e73be;     /* Azul confianza */
  --primary-dark:#0056a7;
  --cta:#2ea44f;         /* Verde acción */
  --cta-dark:#22863a;

  --radius:14px;
  --max:1080px;
  --shadow:0 6px 18px rgba(0,0,0,.08);
}

/* -------- Reset básico -------- */
*{
  box-sizing:border-box;
}
html,body{
  margin:0;
  padding:0;
}
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

/* -------- Enlaces -------- */
a{
  color:var(--primary);
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

/* -------- Contenedor -------- */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
}

/* -------- Header / Topbar -------- */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:#ffffff;
  border-bottom:1px solid var(--line);
}
.topbar .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}

.brand{
  display:flex;
  flex-direction:column;
}
.brand strong{
  font-size:15px;
  font-weight:700;
}
.brand span{
  font-size:12px;
  color:var(--muted);
}

.phone{
  font-weight:700;
  color:var(--primary-dark);
}

/* -------- Botones -------- */
.btn{
  background:var(--cta);
  color:#ffffff;
  padding:12px 16px;
  border-radius:999px;
  font-weight:700;
  display:inline-block;
}
.btn:hover{
  background:var(--cta-dark);
  text-decoration:none;
}

/* -------- Hero con imagen full width -------- */
.hero{
  position: relative;
  padding: 56px 0;
  min-height: 690px;   /* ⬅️ AQUÍ */
  overflow: hidden;
  z-index: 0;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Para que el texto se lea bien */
.hero .wrap{
  position: relative;
  z-index: 1;
}

/* Tipografías */
.hero h1{
  font-size:32px;
  margin:0 0 10px;
  color:#ffffff;
}

.hero .lead{
  font-size:16px;
  color:#e5e7eb;
  max-width:680px;
  margin-bottom:16px;
}

/* Responsive */
@media (max-width:768px){
  .hero{
    min-height:360px;
  }
  .hero h1{
    font-size:26px;
  }
}
/* -------- Tarjetas -------- */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}

/* -------- Secciones -------- */
section{
  margin:24px 0;
}
h2{
  font-size:20px;
  margin:0 0 10px;
}
h3{
  font-size:16px;
  margin:18px 0 6px;
}

/* -------- Grid -------- */
.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

/* -------- Listas -------- */
ul{
  padding-left:18px;
}
li{
  margin:6px 0;
}

/* -------- Notas / avisos -------- */
.note{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px;
  font-size:13px;
  color:var(--muted);
}

/* -------- FAQs -------- */
.faq details{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px;
  margin:10px 0;
}

.faq summary{
  cursor:pointer;
  font-weight:700;
}

.faq details[open]{
  box-shadow:var(--shadow);
}
/* =========================
   MAQUETACIÓN AUTOMÁTICA DEL RAW
   (sin clases manuales)
   ========================= */

/* Ancho cómodo y aire */
.content{
  margin-top: 22px;
}

/* H2 = sección grande */
.content h2{
  font-size: 22px;
  line-height: 1.25;
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* primer h2 sin línea arriba */
.content h2:first-of-type{
  border-top: 0;
  padding-top: 0;
  margin-top: 10px;
}

/* H3 = tarjeta */
.content h3{
  font-size: 16px;
  margin: 18px 0 10px;
  padding: 14px 14px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Todo lo que venga justo después del H3,
   lo “metemos” visualmente dentro de la tarjeta
   (sin cambiar el HTML) */
.content h3 + p,
.content h3 + ul,
.content h3 + ol{
  margin-top: -6px;
  padding: 0 14px 14px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Si hay varios párrafos seguidos tras un h3, los encadenamos */
.content h3 + p + p,
.content h3 + p + p + p{
  margin-top: -10px;
  padding: 0 14px 14px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Texto base */
.content p{
  margin: 10px 0;
  color: var(--text);
}

/* Listas con buen look */
.content ul,
.content ol{
  margin: 10px 0 14px;
  padding-left: 20px;
}
.content li{
  margin: 6px 0;
}

/* Negritas más legibles */
.content strong{
  color: var(--text);
}

/* Emojis y símbolos no rompen el layout */
.content{
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
/* ==========================
   HERO centrado vertical y horizontal
   ========================== */

.hero-full{
  min-height: 100vh;              /* ocupa toda la pantalla */
  display: flex;
  align-items: center;            /* centro vertical */
  justify-content: center;        /* centro horizontal */
  position: relative;
  text-align: center;
}

.hero-inner{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;            /* centra contenido en X */
  justify-content: center;        /* centra contenido en Y */
  gap: 18px;
  z-index: 2;
}

/* Texto principal */
.hero h1{
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
}

/* Lead */
.hero .lead{
  max-width: 700px;
  font-size: 18px;
  color: #444;
}

/* Botones */
.hero .header-actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* ==========================
   FOOTER
   ========================== */

.footer{
  background: #0f172a;
  color: #e5e7eb;
  margin-top: 60px;
}

.footer .wrap{
  padding: 48px 16px 24px;
}

.footer-inner{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-title{
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-text{
  font-size: 14px;
  margin-bottom: 10px;
  color: #cbd5f5;
}

.footer-phone a{
  font-size: 16px;
  font-weight: 700;
  color: #22c55e;
  text-decoration: none;
}

.footer-phone a:hover{
  text-decoration: underline;
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li{
  margin-bottom: 8px;
}

.footer-links a{
  font-size: 14px;
  color: #cbd5f5;
  text-decoration: none;
}

.footer-links a:hover{
  color: #ffffff;
  text-decoration: underline;
}

/* Parte inferior */
.footer-bottom{
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: #cbd5f5;
}

.footer-bottom a{
  color: #38bdf8;
  text-decoration: none;
}

.footer-bottom a:hover{
  text-decoration: underline;
}