@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

:root {
    color-scheme: light;
    --slate: #354650;
    --green: #507900;
    --lime: #a4d329;
    --pale: #edf5dc;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--slate); font: 700 1rem/1.4 Nunito, system-ui, sans-serif; }
main { max-width: 1320px; margin: auto; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; min-height: 510px; overflow: hidden; }
.hero-copy { padding: clamp(24px, 4vw, 64px); align-self: center; }
.hero-image { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 35%; }
.marca { width: min(220px, 70%); margin-bottom: 20px; text-align: center; background: white; border-radius: 10px; padding: 5px 10px; color: var(--slate); }
.marca img { display: block; width: 100%; height: auto; }
.marca span { font-size: .83rem; font-weight: 900; letter-spacing: .28em; text-transform: uppercase; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.65rem, 5.6vw, 5.6rem); line-height: .98; font-weight: 900; letter-spacing: -.045em; }
h1 em { display: block; color: var(--green); }
.hero-copy p { margin: 18px 0; font-size: clamp(1.05rem, 2vw, 1.4rem); max-width: 32ch; }
.trayectoria { display: table; margin-bottom: 14px; padding: 5px 14px; color: white; background: var(--green); border-radius: 24px; }
.cta { display: inline-block; padding: 13px 22px; color: white; background: linear-gradient(#087c45,#005c31); border: 2px solid #fff; border-radius: 32px; text-align: center; text-decoration: none; font-size: clamp(1rem, 2.1vw, 1.35rem); font-weight: 900; box-shadow: 0 5px 12px #163c242e; }
.cta:hover { background: #004f2d; }
.cta:focus-visible { outline: 3px solid #2475c1; outline-offset: 4px; }
.productos, .pasos, .visitas, .plan, .detalle { margin: 18px clamp(12px, 3vw, 42px); }
.productos { background: var(--pale); border-radius: 16px; text-align: center; padding: 14px; font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 900; }
.pasos ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.pasos li { counter-increment: paso; display: grid; justify-items: center; gap: 8px; border-radius: 16px; text-align: center; padding: 14px 6px; background: var(--pale); font-weight: 900; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: white; background: var(--green); }
.plan { display: grid; grid-template-columns: 1fr .68fr; border-radius: 24px; overflow: hidden; background: var(--pale); }
.oferta { padding: 18px 20px 10px; }
.oferta h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.1; font-weight: 900; }
.oferta h2 span { display: block; color: var(--green); }
.oferta p { margin-top: 8px; }
table { align-self: center; border-spacing: 0; margin: 12px 20px 20px; text-align: center; overflow: hidden; border-radius: 14px; background: white; }
th, td { padding: 9px 4px; font-variant-numeric: tabular-nums; }
thead { color: white; background: var(--slate); }
tbody tr + tr > * { border-top: 1px solid #d7dfcc; }
tbody .plan-anual { color: #345500; font-weight: 900; }
tbody .ahorro { color: var(--green); font-weight: 900; }
.limpieza { grid-column: 2; grid-row: 1 / 3; width: 100%; height: 100%; object-fit: cover; }
.detalle { text-align: center; }
.cierre { padding: 12px 16px 28px; text-align: center; background: linear-gradient(white,var(--pale)); }
.tecnico .hero { color: white; background: var(--slate); }
.tecnico h1 em { color: var(--lime); font-style: normal; }
.tecnico .trayectoria { color: var(--lime); background: transparent; padding-left: 12px; border-left: 5px solid var(--lime); border-radius: 0; }
.tecnico .visitas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.visitas article { background: #f3f5f1; border-radius: 16px; border-left: 6px solid var(--lime); padding: 16px; }
.visitas h2 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
.tecnico .plan { grid-template-columns: .72fr 1fr; }
.tecnico .oferta { align-self: center; }
.tecnico table { margin-top: 20px; }
.tecnico .pasos { margin-top: 20px; }

@media (max-width: 660px) {
    .hero { display: flex; flex-direction: column; min-height: auto; }
    .hero-copy { align-self: stretch; padding: 22px 20px 18px; }
    .marca { width: 165px; margin-bottom: 14px; }
    .hero-image { height: clamp(225px, 60vw, 400px); }
    .plan, .tecnico .plan { grid-template-columns: minmax(0, 1fr); }
    table { margin: 10px 12px 16px; }
    .limpieza { grid-column: 1; grid-row: auto; height: 185px; object-position: center 35%; }
    .pasos ol { gap: 6px; }
    .pasos li { font-size: .87rem; }
}

/* Ilustraciones y jerarquía de los mockups */
.hero-copy { position: relative; z-index: 1; }
.galeria .hero { background: #fff; }
.galeria .hero-image { object-position: center; }
.trayectoria { font-size: clamp(1rem, 2vw, 1.35rem); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(#087b42, #056036); }
.cta img { width: 25px; height: 25px; object-fit: contain; flex: none; }
.productos { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 16px; }
.productos img { width: 76px; height: auto; border-radius: 16px; }
.productos small { display: block; font-size: .72em; font-weight: 700; }
.pasos h2 { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 12px; font-size: clamp(1.3rem, 3vw, 2rem); }
.pasos h2::before, .pasos h2::after { content: ""; width: min(12vw, 110px); height: 2px; background: var(--green); }
.pasos li { position: relative; background: transparent; align-content: start; padding: 6px 4px 12px; font-size: clamp(.82rem, 1.8vw, 1.28rem); }
.pasos li img { width: min(78%, 156px); height: auto; border-radius: 44%; }
.pasos li::before { position: absolute; top: 4px; left: 10%; width: 30px; height: 30px; font-size: .88rem; box-shadow: 0 0 0 3px white; }
.pasos li + li::after { content: ""; position: absolute; top: 42%; left: -10px; width: 12px; height: 12px; border-top: 3px solid var(--green); border-right: 3px solid var(--green); transform: rotate(45deg); }
.oferta h2 { display: inline-flex; flex-wrap: wrap; gap: .3em; padding: 9px 14px; border-radius: 16px; background: var(--green); color: white; }
.oferta h2 span { color: inherit; }
.visitas article { display: flex; align-items: center; gap: 16px; padding: 0 14px 0 0; overflow: hidden; }
.visitas img { width: 43%; align-self: stretch; object-fit: cover; }
.visitas article div { padding-block: 12px; }

@media (min-width: 661px) {
    .galeria .hero { grid-template-columns: 46% 54%; min-height: 470px; }
    .galeria .hero-image { width: calc(100% + 48px); margin-left: -48px; mask-image: linear-gradient(to right, transparent, black 13%); }
}
@media (max-width: 660px) {
    .pasos li::before { width: 22px; height: 22px; left: 3%; top: 1px; font-size: .75rem; }
    .pasos li + li::after { width: 8px; height: 8px; left: -7px; }
    .visitas article { flex-direction: column; gap: 0; padding: 0; }
    .visitas img { width: 100%; height: 90px; }
    .visitas article div { padding: 10px; }
}

/* Persuasión del plan anual + prueba social */
.confianza { display: flex; align-items: center; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.confianza img { width: min(100%, 440px); height: auto; border-radius: 12px; }
.confianza span { font-weight: 900; font-size: clamp(.95rem, 2vw, 1.2rem); }
.off { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--lime); color: var(--slate); font-size: .68em; vertical-align: middle; white-space: nowrap; }
.plan-nota { margin: -8px 20px 18px; text-align: center; font-weight: 700; color: var(--green); }

/* Mobile: los badges (tira ancha 992x252) se ven chicos dentro del padding — full-bleed + texto abajo */
@media (max-width: 660px) {
    .confianza { flex-direction: column; align-items: stretch; gap: 10px; margin: 14px -20px; }
    .confianza img { width: 100%; border-radius: 0; }
    .confianza span { padding: 0 20px; text-align: center; }
    .trayectoria { margin-left: auto; margin-right: auto; }
    .hero-copy .cta { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transition: transform .16s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float:focus-visible { outline: 3px solid #2475c1; outline-offset: 3px; }
.whatsapp-float img { width: 34px; height: 34px; object-fit: contain; }
