/* ============================================================
   ARD Pozos Sépticos — Hoja de estilos del sitio público
   Paleta tomada del sitio original:
   azul #2d7ac4 · verde #7ab648 · azul oscuro #1b3a5c
   ============================================================ */

:root {
    --azul: #2d7ac4;
    --azul-oscuro: #1b3a5c;
    --verde: #7ab648;
    --verde-oscuro: #659a3b;
    --whatsapp: #25d366;
    --gris-fondo: #f5f5f5;
    --gris-borde: #d1d5dc;
    --texto: #171717;
    --texto-suave: #4b5563;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: var(--texto);
    background: #fff;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

.contenedor {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.header .contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.header-logo { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav a {
    color: var(--azul-oscuro);
    font-weight: 500;
    font-size: .95rem;
}
.nav a:hover { color: var(--azul); text-decoration: none; }

.btn {
    display: inline-block;
    padding: .7rem 1.5rem;
    border-radius: .5rem;
    font-weight: 600;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-oscuro); }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--azul-oscuro); }
.btn-blanco { background: #fff; color: var(--azul-oscuro); }
.btn-contorno { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-contorno:hover { background: rgba(255, 255, 255, .12); }
.btn-grande { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-bloque { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background: var(--azul-oscuro);
}
.hero-fondo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
}
.hero-contenido {
    position: relative;
    padding: 5.5rem 1.25rem 4.5rem;
    max-width: 1140px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
    max-width: 22ch;
    margin-bottom: 1rem;
}
.hero p.sub {
    font-size: 1.15rem;
    max-width: 52ch;
    color: #dbe7f3;
    margin-bottom: 1.8rem;
}
.hero-acciones { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-insignias {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-top: 2.6rem;
    font-size: .9rem;
    color: #e8f0f8;
}
.hero-insignias span { display: flex; align-items: center; gap: .45rem; }
.hero-insignias .punto {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--verde); display: inline-block;
}

/* ---------- Secciones ---------- */
.seccion { padding: 4.2rem 0; }
.seccion-gris { background: var(--gris-fondo); }
.seccion-oscura { background: var(--azul-oscuro); color: #fff; }
.titulo-seccion {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--azul-oscuro);
    margin-bottom: .6rem;
}
.seccion-oscura .titulo-seccion { color: #fff; }
.subtitulo-seccion { color: var(--texto-suave); max-width: 60ch; margin-bottom: 2.4rem; }
.seccion-oscura .subtitulo-seccion { color: #c9d8e8; }

/* ---------- Rejillas / tarjetas ---------- */
.rejilla { display: grid; gap: 1.4rem; }
.rejilla-2 { grid-template-columns: repeat(2, 1fr); }
.rejilla-3 { grid-template-columns: repeat(3, 1fr); }
.rejilla-4 { grid-template-columns: repeat(4, 1fr); }

.tarjeta {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .8rem;
    padding: 1.6rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.tarjeta h3 { color: var(--azul-oscuro); font-size: 1.08rem; margin-bottom: .5rem; }
.tarjeta p { color: var(--texto-suave); font-size: .93rem; }
.tarjeta .paso-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--azul);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: .9rem;
}
.tarjeta .icono { font-size: 1.7rem; margin-bottom: .7rem; }

/* ---------- Dos columnas con imagen ---------- */
.dos-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.6rem;
    align-items: center;
}
.dos-col img { border-radius: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.lista-check { list-style: none; margin-top: 1.2rem; }
.lista-check li {
    padding-left: 1.7rem;
    position: relative;
    margin-bottom: .7rem;
    color: var(--texto-suave);
}
.lista-check li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--verde);
    font-weight: 700;
}

/* ---------- Galería ---------- */
.galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .9rem;
}
.galeria img {
    border-radius: .6rem;
    height: 210px;
    width: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}
.galeria img:hover { transform: scale(1.03); }

/* ---------- Cobertura ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
    background: #eaf3fb;
    color: var(--azul-oscuro);
    border: 1px solid #cfe3f5;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
}

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.campo { display: flex; flex-direction: column; gap: .3rem; }
.campo-completo { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: .9rem; color: var(--azul-oscuro); }
.campo input,
.campo select,
.campo textarea {
    padding: .65rem .8rem;
    border: 1px solid var(--gris-borde);
    border-radius: .45rem;
    font-size: .95rem;
    font-family: inherit;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
    outline: 2px solid var(--verde);
    border-color: var(--verde);
}
.campo .ayuda { font-size: .8rem; color: var(--texto-suave); }
.campo-check { flex-direction: row; align-items: center; gap: .6rem; }
.campo-check input { width: 18px; height: 18px; }
fieldset.grupo {
    border: 1px solid #e5e7eb;
    border-radius: .8rem;
    padding: 1.4rem;
    margin-bottom: 1.6rem;
}
fieldset.grupo legend {
    font-weight: 700;
    color: var(--azul-oscuro);
    padding: 0 .6rem;
    font-size: 1.05rem;
}

/* ---------- Panel de cotización ---------- */
.panel-precio {
    background: var(--azul-oscuro);
    color: #fff;
    border-radius: .8rem;
    padding: 1.6rem;
}
.panel-precio .fila {
    display: flex;
    justify-content: space-between;
    padding: .45rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .25);
    font-size: .95rem;
}
.panel-precio .fila.total {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #b9e39a;
    padding-top: .8rem;
}

/* ---------- Alertas ---------- */
.alerta {
    padding: .9rem 1.2rem;
    border-radius: .5rem;
    margin-bottom: 1.2rem;
    font-size: .95rem;
}
.alerta-exito { background: #e7f6e7; color: #1e6b1e; border: 1px solid #bfe5bf; }
.alerta-error { background: #fdecec; color: #a02121; border: 1px solid #f5c2c2; }
.alerta-info { background: #eaf3fb; color: var(--azul-oscuro); border: 1px solid #cfe3f5; }

/* ---------- Calendario ---------- */
.calendario {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .8rem;
    padding: 1.4rem;
}
.calendario-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.calendario-nav h3 { color: var(--azul-oscuro); text-transform: capitalize; }
.calendario-rejilla {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .35rem;
}
.calendario-rejilla .dow {
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: var(--texto-suave);
    text-transform: uppercase;
    padding: .3rem 0;
}
.dia {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    font-size: .92rem;
    border: 1px solid transparent;
}
.dia.vacio { border: none; }
.dia.disponible {
    background: #eef7e6;
    color: #33691e;
    cursor: pointer;
    border-color: #cfe6b8;
    font-weight: 600;
}
.dia.disponible:hover { background: var(--verde); color: #fff; }
.dia.seleccionado { background: var(--azul); color: #fff; font-weight: 700; }
.dia.ocupado { background: #f3f4f6; color: #9ca3af; text-decoration: line-through; }
.dia.pasado { color: #d1d5dc; }
.leyenda { display: flex; gap: 1.2rem; font-size: .82rem; color: var(--texto-suave); margin-top: .9rem; flex-wrap: wrap; }
.leyenda i {
    display: inline-block; width: 14px; height: 14px;
    border-radius: 4px; margin-right: .35rem; vertical-align: -2px;
}
.leyenda .l-disp { background: #eef7e6; border: 1px solid #cfe6b8; }
.leyenda .l-ocup { background: #f3f4f6; border: 1px solid #e5e7eb; }

/* ---------- Footer ---------- */
.footer {
    background: var(--azul-oscuro);
    color: #c9d8e8;
    padding: 3rem 0 1.4rem;
    font-size: .92rem;
}
.footer h4 { color: #fff; margin-bottom: .8rem; }
.footer a { color: #c9d8e8; }
.footer a:hover { color: #fff; }
.footer-logo { height: 60px; width: auto; margin-bottom: 1rem; background: #fff; border-radius: .5rem; padding: .3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 1.2rem;
    text-align: center;
    font-size: .85rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: transform .15s ease;
}
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Pasos del flujo ---------- */
.pasos-flujo {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.pasos-flujo .paso {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: .6rem .4rem;
    border-radius: .5rem;
    font-size: .85rem;
    font-weight: 600;
    background: #eef2f6;
    color: var(--texto-suave);
}
.pasos-flujo .paso.activo { background: var(--azul); color: #fff; }
.pasos-flujo .paso.hecho { background: #e3f0d8; color: #33691e; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .rejilla-3, .rejilla-4 { grid-template-columns: repeat(2, 1fr); }
    .galeria { grid-template-columns: repeat(2, 1fr); }
    .dos-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .rejilla-2, .rejilla-3, .rejilla-4, .form-grid { grid-template-columns: 1fr; }
    .nav a:not(.btn) { display: none; }
    .hero-contenido { padding: 3.5rem 1.25rem 3rem; }
}

/* ---------- Documentos imprimibles ---------- */
.documento {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 3rem;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .1);
}
.documento .doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--azul);
    padding-bottom: 1.2rem;
    margin-bottom: 1.8rem;
}
.documento .doc-header img { height: 70px; }
.documento h1 { color: var(--azul-oscuro); font-size: 1.5rem; }
.documento table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.documento th, .documento td {
    border: 1px solid #d1d5dc;
    padding: .55rem .8rem;
    text-align: left;
    font-size: .92rem;
}
.documento th { background: #eaf3fb; color: var(--azul-oscuro); width: 40%; }
@media print {
    body * { visibility: hidden; }
    .documento, .documento * { visibility: visible; }
    .documento { position: absolute; inset: 0; box-shadow: none; margin: 0; }
    .no-imprimir { display: none !important; }
}
