/* Sitios de los centros (guiacert.com/c/<slug>). Los colores y fuentes llegan como variables desde el perfil:
   --p (principal), --a (acento), --p-texto/--a-texto (texto sobre cada color), --f-titulos, --f-texto. */
:root {
  --tinta: #141a24; --texto: #2c3443; --secundario: #5f6878; --borde: #e4e6ea; --fondo: #ffffff; --suave: #f6f7f9;
  --radio: 14px; --radio-grande: 22px; --sombra: 0 1px 2px rgba(20, 26, 36, .05), 0 12px 32px rgba(20, 26, 36, .09);
  --ancho: 1140px;
}
.estilo-moderno { --radio: 10px; --radio-grande: 16px; }
.estilo-calido { --radio: 20px; --radio-grande: 30px; --suave: #faf6f1; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-texto), system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texto); background: var(--fondo);
       line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--p-tinta); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--tinta); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--f-titulos); font-weight: 600; letter-spacing: -.015em; }
.estilo-moderno h1, .estilo-moderno h2 { font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.contenedor { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }
.oculto-visual { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oculto { display: none !important; }

/* Aviso de vista previa */
.barra-previa { background: #fff6d6; color: #5c4600; font-size: .9rem; padding: 9px 0; border-bottom: 1px solid #f0dc9a; }
.barra-previa .contenedor { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.barra-previa a { color: #5c4600; font-weight: 700; }
.aviso-sitio { background: var(--a); color: var(--a-texto); text-align: center; font-size: .92rem; font-weight: 600; padding: 8px 16px; }

/* Encabezado */
.cabecera { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinta); min-width: 0; }
.marca img { height: 46px; width: auto; max-width: 160px; object-fit: contain; }
.marca .inicial { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--p); color: var(--p-texto);
                  font-family: var(--f-titulos); font-weight: 700; font-size: 1.3rem; flex: none; }
.marca strong { font-size: 1.02rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.navegacion { display: flex; align-items: center; gap: 4px; }
.navegacion a { color: var(--texto); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.navegacion a:hover { background: var(--p-suave); color: var(--p-tinta); }
.navegacion .boton { margin-left: 6px; }
.boton-menu { display: none; background: none; border: 1px solid var(--borde); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; flex: none; }
.boton-menu span, .boton-menu span::before, .boton-menu span::after { display: block; width: 20px; height: 2px; background: var(--tinta); margin: auto; position: relative; }
.boton-menu span::before, .boton-menu span::after { content: ""; position: absolute; left: 0; }
.boton-menu span::before { top: -6px; } .boton-menu span::after { top: 6px; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--p); color: var(--p-texto) !important;
         border: 2px solid var(--p); font: inherit; font-weight: 700; line-height: 1.2; padding: 13px 22px; border-radius: 999px; text-decoration: none;
         cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.estilo-moderno .boton { border-radius: 10px; }
.boton:hover { background: var(--p-oscuro); border-color: var(--p-oscuro); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.boton.contorno { background: transparent; color: var(--p-tinta) !important; border-color: var(--p-medio); }
.boton.contorno:hover { background: var(--p-suave); box-shadow: none; }
.boton.acento { background: var(--a); border-color: var(--a); color: var(--a-texto) !important; }
.boton.chico { padding: 9px 16px; font-size: .92rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Portada */
.portada { position: relative; background: linear-gradient(160deg, var(--p-suave), #fff 70%); overflow: hidden; }
.portada::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -220px; background: var(--a-suave); opacity: .7; }
.portada .contenedor { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; padding: 70px 0 78px; }
.portada.sin-foto .contenedor { grid-template-columns: 1fr; max-width: 820px; text-align: center; }
.portada.sin-foto .acciones, .portada.sin-foto .sellos { justify-content: center; }
.ceja { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--p-tinta); margin-bottom: 14px; }
.ceja.acento { color: var(--tinta); background: var(--a-suave); padding: 4px 10px; border-radius: 999px; letter-spacing: .08em; }
.entrada { font-size: 1.15rem; color: var(--secundario); max-width: 58ch; }
.portada.sin-foto .entrada { margin-inline: auto; }
.foto-portada { position: relative; }
.foto-portada img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radio-grande); box-shadow: var(--sombra); }
.foto-portada .marco { position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radio-grande); border: 2px solid var(--p-medio); z-index: -1; }
.sello-flotante { position: absolute; left: -24px; bottom: 28px; background: #fff; border-radius: var(--radio); padding: 14px 18px; box-shadow: var(--sombra);
                  display: flex; gap: 12px; align-items: center; max-width: 280px; }
.sello-flotante .icono { width: 40px; height: 40px; border-radius: 12px; background: var(--p-suave); color: var(--p-tinta); display: grid; place-items: center; flex: none; }
.sello-flotante strong { display: block; color: var(--tinta); font-size: .95rem; line-height: 1.25; }
.sello-flotante small { color: var(--secundario); font-size: .82rem; }
.sellos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sello { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
         background: #fff; border: 1px solid var(--borde); color: var(--tinta); }
.sello svg { width: 15px; height: 15px; color: var(--p-tinta); flex: none; }
.sello.dorado svg { color: #b8860b; }

/* Cifras */
.cifras { background: var(--p); color: var(--p-texto); }
.cifras .contenedor { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding: 34px 0; }
.cifras strong { display: block; font-family: var(--f-titulos); font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.05; }
.cifras span { font-size: .93rem; opacity: .85; }

/* Secciones */
.seccion { padding: 84px 0; }
.seccion.suave { background: var(--suave); }
.seccion.oscura { background: var(--p-oscuro); color: rgba(255, 255, 255, .82); }
.seccion.oscura h2, .seccion.oscura h3 { color: #fff; }
.cabeza { max-width: 700px; margin-bottom: 38px; }
.cabeza.centrada { margin-inline: auto; text-align: center; }
.cabeza p { color: var(--secundario); font-size: 1.07rem; }
.seccion.oscura .cabeza p { color: rgba(255, 255, 255, .75); }
.seccion.oscura .ceja { color: var(--a); }
.rejilla { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; display: flex; flex-direction: column; gap: 8px;
           transition: transform .15s, box-shadow .15s; }
.tarjeta:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.tarjeta p { color: var(--secundario); margin: 0; font-size: .96rem; }
.codigo { font-weight: 800; color: var(--p-tinta); letter-spacing: .02em; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--p-suave); color: var(--p-tinta); }
.chip.acento { background: var(--a-suave); color: var(--tinta); }
.precio { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--borde); display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; }
.precio strong { font-family: var(--f-titulos); font-size: 1.5rem; color: var(--tinta); line-height: 1; }
.precio small { display: block; font-size: .8rem; color: var(--secundario); }
.precio a { font-weight: 700; font-size: .92rem; text-decoration: none; }

/* Proceso */
.pasos { counter-reset: paso; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.paso { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radio); padding: 24px; }
.paso::before { counter-increment: paso; content: counter(paso); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
                background: var(--a); color: var(--a-texto); font-weight: 800; margin-bottom: 14px; }
.paso p { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .78); }

/* Proyectos */
.proyectos { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.proyecto { background: #fff; border-radius: var(--radio); border: 1px solid var(--borde); overflow: hidden; display: flex; flex-direction: column; }
.proyecto .fotos { position: relative; display: block; }
.proyecto .fotos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.proyecto .fotos .mas { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.proyecto .sin-foto { aspect-ratio: 16 / 10; background: var(--p-suave); display: grid; place-items: center; color: var(--p-tinta); font-family: var(--f-titulos); font-size: 2rem; }
.proyecto .cuerpo { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.proyecto .meta { font-size: .82rem; font-weight: 700; color: var(--secundario); text-transform: uppercase; letter-spacing: .05em; }
.proyecto p { color: var(--secundario); margin: 0; font-size: .95rem; }
.proyecto .datos { display: flex; gap: 18px; margin-top: auto; padding-top: 12px; font-size: .9rem; color: var(--secundario); }
.proyecto .datos strong { color: var(--tinta); font-size: 1.15rem; display: block; }
.verificado { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: #1d7a4a; }
.verificado svg { width: 14px; height: 14px; }

/* Nosotros */
.dividido { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.datos-centro { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dato { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px 18px; }
.dato small { display: block; color: var(--secundario); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.dato strong { color: var(--tinta); font-size: 1.02rem; }
.valores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.valores span { border: 1px solid var(--p-medio); color: var(--p-tinta); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }
.distintivos { display: grid; gap: 12px; margin-top: 22px; }
.distintivo { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; }
.distintivo .medalla { width: 42px; height: 42px; border-radius: 50%; background: #fdf3d7; color: #9a6b00; display: grid; place-items: center; flex: none; }
.distintivo .medalla svg { width: 22px; height: 22px; }
.distintivo small { display: block; color: var(--secundario); }

/* Cobertura */
.estados { display: flex; flex-wrap: wrap; gap: 10px; }
.estados span { background: #fff; border: 1px solid var(--borde); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--tinta); }
.estados span.linea { background: var(--a-suave); border-color: transparent; }

/* Reseñas */
.resena { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; }
.resena .estrellas { color: #e0a100; letter-spacing: 2px; font-size: 1.1rem; }
.resena p { color: var(--texto); }
.resena footer { color: var(--secundario); font-size: .9rem; }
.resena .replica { background: var(--suave); border-radius: 10px; padding: 10px 14px; font-size: .9rem; color: var(--secundario); margin-top: 10px; }

/* Contacto */
.contacto { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.lista-contacto { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.lista-contacto li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; }
.lista-contacto .icono { width: 42px; height: 42px; border-radius: 12px; background: var(--p-suave); color: var(--p-tinta); display: grid; place-items: center; }
.lista-contacto svg { width: 20px; height: 20px; }
.formulario { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-grande); padding: 30px; box-shadow: var(--sombra); display: grid; gap: 14px; }
.formulario .doble { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--tinta); }
.campo input, .campo select, .campo textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--borde); border-radius: 12px; background: #fff; color: var(--texto); }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 3px solid var(--p-suave); border-color: var(--p); }
.nota { font-size: .85rem; color: var(--secundario); margin: 0; }
.exito { background: #e8f6ee; color: #155c37; border-radius: var(--radio); padding: 18px 20px; font-weight: 600; }
.error { background: #fdecea; color: #8a1c13; border-radius: 12px; padding: 12px 16px; }
.trampa { position: absolute; left: -9999px; }

/* Llamado */
.llamado { background: linear-gradient(120deg, var(--p-oscuro), var(--p)); color: var(--p-texto); border-radius: var(--radio-grande); padding: 52px;
           display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; }
.llamado h2 { color: inherit; }
.llamado p { margin: 0; opacity: .85; }
.llamado .acciones { margin: 0; justify-content: flex-end; }
.llamado .boton { background: #fff; color: var(--p-oscuro) !important; border-color: #fff; }

/* Pie */
.pie { background: #0f141c; color: #aeb6c4; padding: 52px 0 26px; font-size: .94rem; }
.pie .columnas { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.pie h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.pie a { color: #dfe4ec; text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie .marca strong { color: #fff; }
.pie .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; }
.hecho-con { display: inline-flex; align-items: center; gap: 6px; color: #dfe4ec; }

/* WhatsApp flotante (planes con contacto directo) */
.whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
            display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.whatsapp svg { width: 30px; height: 30px; }

/* Visor de fotos */
.visor { border: 0; padding: 0; background: transparent; max-width: min(1100px, 96vw); max-height: 94vh; overflow: visible; }
.visor::backdrop { background: rgba(8, 12, 18, .9); }
.visor figure { margin: 0; text-align: center; }
.visor img { max-width: 100%; max-height: 84vh; border-radius: 10px; display: block; margin: 0 auto; }
.visor figcaption { color: #fff; margin-top: 10px; font-size: .95rem; min-height: 1.2em; }
.visor button { position: fixed; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.7rem; cursor: pointer; }
.visor .cerrar { top: 18px; right: 18px; } .visor .anterior { left: 18px; top: 50%; } .visor .siguiente { right: 18px; top: 50%; }

/* Paginación */
.paginacion { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; margin: 28px 0 0; }
.paginacion a, .paginacion strong { min-width: 34px; text-align: center; padding: 4px 10px; border-radius: 8px; }
.paginacion a { border: 1px solid var(--borde); text-decoration: none; }
.paginacion strong { background: var(--p); color: var(--p-texto); }

/* Animación de entrada (respeta reducir movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .aparece { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .aparece.visible { opacity: 1; transform: none; }
}

/* Responsivo */
@media (max-width: 960px) {
  .boton-menu { display: block; }
  .navegacion { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 18px;
                border-bottom: 1px solid var(--borde); box-shadow: var(--sombra); display: none; }
  .navegacion.abierta { display: flex; }
  .navegacion a { padding: 12px 14px; }
  .navegacion .boton { margin: 6px 0 0; }
  .portada .contenedor, .dividido, .contacto, .llamado { grid-template-columns: 1fr; }
  .portada .contenedor { padding: 44px 0 60px; gap: 34px; }
  .sello-flotante { left: 12px; bottom: 12px; }
  .foto-portada .marco { display: none; }
  .pasos { grid-template-columns: 1fr 1fr; }
  .llamado { padding: 34px 24px; }
  .llamado .acciones { justify-content: flex-start; }
  .pie .columnas { grid-template-columns: 1fr 1fr; }
  .seccion { padding: 62px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .pasos, .formulario .doble, .pie .columnas { grid-template-columns: 1fr; }
  .datos-centro { gap: 10px; }
  .datos-centro > * { padding: 12px 14px; }
  .cifras .contenedor { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 26px 0; }
  .marca img { height: 38px; }
  .formulario { padding: 22px 18px; }
  .acciones .boton { flex: 1 1 auto; }
  .portada::after { width: 300px; height: 300px; right: -120px; top: -140px; }
}
