/* ============================================================
   EXTINTORES CEMUZA — Estilos v2 (misma paleta, look moderno)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #8B1E1E;
    --primary-dark: #6d1818;
    --secondary: #fbbf24;
    --dark: #0f172a;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --radius: 18px;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

img { max-width: 100%; }

/* ===== ANIMACIÓN DE APARICIÓN ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 10px 25px -8px rgba(139, 30, 30, .6);
}
.btn-primary:hover { box-shadow: 0 16px 32px -8px rgba(139, 30, 30, .7); }
.btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: var(--white); }
.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: 0 10px 25px -8px rgba(251, 191, 36, .55);
}
.btn-secondary:hover { box-shadow: 0 16px 32px -8px rgba(251, 191, 36, .7); }

/* ===== BARRA SUPERIOR ===== */
#topbar {
    background: var(--dark);
    color: var(--gray-300);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.topbar-info { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.topbar-sep { opacity: .4; }
.topbar-wa {
    color: var(--whatsapp);
    text-decoration: none;
    font-weight: 700;
    transition: color .3s ease;
}
.topbar-wa:hover { color: var(--white); }

/* ===== CABECERA STICKY ===== */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--primary);
    transition: box-shadow .3s ease;
}
#header.scrolled { box-shadow: var(--shadow); }
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}
#site_title a { display: flex; align-items: center; text-decoration: none; }
.logo-img { max-height: 58px; width: auto; display: block; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--gray-800); letter-spacing: 1px; }
.logo-text b { color: var(--primary); }

/* ===== MENÚ ===== */
#mainnav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
#mainnav ul li a {
    position: relative;
    color: var(--gray-600);
    text-decoration: none;
    padding: .6rem 1.1rem;
    display: block;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 10px;
    transition: color .25s ease, background .25s ease;
}
#mainnav ul li a::after {
    content: '';
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: .35rem;
    height: 3px;
    border-radius: 3px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
#mainnav ul li a:hover { color: var(--primary); background: var(--gray-50); }
#mainnav ul li a:hover::after { transform: scaleX(1); }

/* ===== HERO ===== */
#hero {
    position: relative;
    min-height: 560px;
    background-image: url('https://images.unsplash.com/photo-1582131504857-351c4c0c0d5f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
}
.hero-overlay {
    width: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(100deg, rgba(15, 23, 42, .92) 0%, rgba(109, 24, 24, .78) 55%, rgba(15, 23, 42, .55) 100%);
}
.hero-content { color: var(--white); max-width: 760px; padding-top: 4rem; padding-bottom: 4rem; }
.hero-badge {
    display: inline-block;
    background: rgba(251, 191, 36, .15);
    border: 1px solid rgba(251, 191, 36, .5);
    color: var(--secondary);
    font-weight: 600;
    font-size: .85rem;
    padding: .4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    letter-spacing: .5px;
    animation: fadeUp .8s ease both;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeUp .8s ease .15s both;
}
.hero-title span {
    display: block;
    color: var(--secondary);
    font-size: clamp(1.2rem, 2.6vw, 1.9rem);
    font-weight: 300;
    margin-top: .35rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: .9;
    max-width: 560px;
    margin-bottom: 2rem;
    animation: fadeUp .8s ease .3s both;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp .8s ease .45s both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

/* ===== FRANJA DE CONFIANZA ===== */
#trust { background: var(--white); padding: 4rem 0 2rem; }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.trust-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.trust-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.trust-icon { font-size: 2.2rem; display: block; margin-bottom: .75rem; }
.trust-item h4 { color: var(--primary); font-size: 1.05rem; margin-bottom: .35rem; }
.trust-item p { color: var(--gray-600); font-size: .88rem; line-height: 1.5; }

/* ===== GALERÍA / SLIDER ===== */
#gallery { background: var(--gray-50); padding: 4rem 0; margin-top: 2rem; }
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--dark);
    text-align: center;
}
.section-title span { color: var(--primary); }
.section-lead {
    text-align: center;
    color: var(--gray-600);
    max-width: 560px;
    margin: .5rem auto 1.5rem;
}
.simple-slider {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-200);
}
.simple-slider::-webkit-scrollbar { height: 8px; }
.simple-slider::-webkit-scrollbar-track { background: var(--gray-200); border-radius: 10px; }
.simple-slider::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.simple-slider img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    scroll-snap-align: start;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}
.simple-slider img:hover { transform: scale(1.03); box-shadow: 0 15px 30px rgba(139, 30, 30, .3); }

/* ===== CONTENIDO PRINCIPAL ===== */
#templatemo_content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
}
.content_box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}
.content_box h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
}
.content_box h2:first-child { margin-top: 0; }
.content_box p { color: var(--gray-600); margin-bottom: 1.5rem; line-height: 1.8; }
.content_box img { border-radius: 12px; }

/* ===== SIDEBAR ===== */
.side_column_box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-top: 4px solid var(--primary);
}
.side_column_box h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    padding-bottom: .85rem;
    border-bottom: 2px solid var(--secondary);
}
.side_column_box ul { list-style: none; padding: 0; }
.side_column_box ul li a {
    display: block;
    color: var(--gray-600);
    text-decoration: none;
    padding: .55rem .25rem;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
    transition: color .25s ease, padding-left .25s ease;
}
.side_column_box ul li a:hover { color: var(--primary); padding-left: .7rem; }

/* ===== CAJA WHATSAPP ===== */
.whatsapp-box {
    background: linear-gradient(135deg, var(--whatsapp-dark), var(--whatsapp));
    color: var(--white);
    border: none;
    border-top: none;
    text-align: center;
}
.whatsapp-box h3 { color: var(--white); border-bottom-color: rgba(255, 255, 255, .3); }
.whatsapp-icon { font-size: 3rem; margin-bottom: 1rem; }
.whatsapp-btn {
    display: inline-block;
    background: var(--white);
    color: var(--whatsapp-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 1rem 0;
    transition: transform .3s ease, box-shadow .3s ease;
}
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
.whatsapp-note { font-size: .8rem; opacity: .85; }

/* ===== CTA FINAL ===== */
#cta-final {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: .5rem; }
.cta-inner p { opacity: .9; margin-bottom: 1.75rem; }

/* ===== PIE DE PÁGINA ===== */
#footer {
    background: var(--dark);
    color: var(--gray-300);
    border-top: 4px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
    text-align: left;
}
.footer-logo { max-height: 50px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}
.footer-col p { font-size: .92rem; line-height: 1.9; }
.footer_nav ul { list-style: none; padding: 0; display: block; }
.footer_nav ul li a {
    color: var(--gray-300);
    text-decoration: none;
    display: block;
    padding: .3rem 0;
    transition: color .3s ease, padding-left .3s ease;
}
.footer_nav ul li a:hover { color: var(--secondary); padding-left: .5rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: .85rem;
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.wa-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 200;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--whatsapp-dark), var(--whatsapp));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(18, 140, 126, .6);
    transition: transform .3s ease;
    animation: waPulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer_nav ul li a:hover { padding-left: 0; }
    #hero { background-attachment: scroll; }
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: .5rem; padding-bottom: .5rem; }
    #mainnav ul { justify-content: center; }
    #hero { min-height: 480px; }
    .hero-content { text-align: center; padding-top: 3rem; padding-bottom: 3rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    #templatemo_content { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 2rem; }
    .topbar-inner { justify-content: center; }
}
@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .trust-grid { grid-template-columns: 1fr; }
    .simple-slider img { max-width: 270px; height: 210px; }
    .btn { padding: .85rem 1.6rem; font-size: .92rem; }
    .wa-float { width: 52px; height: 52px; font-size: 1.4rem; }
}

/* ===== VARIABLES JIMDO ===== */
var { display: block; font-style: normal; }

/* ================= MINIATURA ================= */
.czc-card {
    max-width: 420px;
    margin: 2rem auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15,23,42,.18);
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    text-align: center;
}
.czc-thumb { position: relative; cursor: pointer; background: #0f172a; }
.czc-thumb img { width: 100%; height: 320px; object-fit: cover; object-position: top; display: block; transition: transform .4s ease; }
.czc-thumb:hover img { transform: scale(1.04); }
.czc-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.85) 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding-bottom: 1.25rem; gap: .35rem;
    opacity: 0; transition: opacity .35s ease;
}
.czc-thumb:hover .czc-thumb-overlay { opacity: 1; }
.czc-play {
    width: 54px; height: 54px; border-radius: 50%;
    background: #fbbf24; color: #0f172a;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.czc-thumb-text { color: #fff; font-weight: 700; font-size: .95rem; }
.czc-card-info { padding: 1.25rem 1.5rem 1.5rem; }
.czc-card-info h3 { margin: 0 0 .25rem; color: #8B1E1E; font-size: 1.2rem; font-weight: 800; }
.czc-card-info p { margin: 0 0 1rem; color: #475569; font-size: .88rem; }
.czc-open-btn {
    background: linear-gradient(135deg, #8B1E1E, #6d1818);
    color: #fff; border: none; cursor: pointer;
    padding: .8rem 2rem; border-radius: 50px;
    font-weight: 700; font-size: .95rem;
    font-family: inherit;
    box-shadow: 0 10px 25px -8px rgba(139,30,30,.6);
    transition: transform .25s ease, box-shadow .25s ease;
}
.czc-open-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -8px rgba(139,30,30,.75); }

/* ================= MODAL ================= */
.czc-modal {
    display: none;
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(10, 14, 25, .96);
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    animation: czcFade .3s ease;
}
.czc-modal.open { display: flex; }
@keyframes czcFade { from { opacity: 0; } to { opacity: 1; } }

.czc-modal-bar {
    display: flex; align-items: center; gap: 1rem;
    padding: .8rem 1.25rem;
    background: linear-gradient(120deg, #6d1818, #8B1E1E);
    color: #fff;
}
.czc-modal-title { font-weight: 700; font-size: .98rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.czc-counter {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    padding: .25rem .9rem; border-radius: 50px;
    font-weight: 700; font-size: .85rem;
    white-space: nowrap;
}
.czc-close {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff; width: 38px; height: 38px;
    border-radius: 50%; font-size: 1.05rem; cursor: pointer;
    transition: background .25s ease, transform .25s ease;
    flex-shrink: 0;
}
.czc-close:hover { background: #fbbf24; color: #0f172a; transform: rotate(90deg); }

/* ================= ESCENARIO DEL LIBRO ================= */
.czc-stage {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    padding: 1rem 4rem;
    min-height: 0;
    overflow: hidden;
}
.czc-bookwrap {
    width: min(1000px, 92vw, calc((100vh - 190px) * 1.55));
    margin: 0 auto;
}
.czc-bookwrap .stf__parent { margin: 0 auto; }
.czc-bookwrap img { border-radius: 3px; }
.czc-cargando {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fbbf24; font-weight: 700; font-size: 1rem;
    pointer-events: none;
}

.czc-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(255,255,255,.92); color: #8B1E1E;
    font-size: 1.9rem; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    padding-bottom: 5px;
    box-shadow: 0 8px 22px rgba(0,0,0,.5);
    transition: background .25s ease, transform .25s ease;
    z-index: 5;
}
.czc-arrow:hover { background: #fbbf24; transform: translateY(-50%) scale(1.1); }
.czc-arrow:disabled { opacity: .3; cursor: default; }
.czc-prev { left: 1rem; }
.czc-next { right: 1rem; }

.czc-modal-foot { padding: .8rem 1.5rem 1.2rem; }
.czc-range {
    width: 100%; -webkit-appearance: none; appearance: none;
    height: 6px; border-radius: 6px;
    background: rgba(255,255,255,.2);
    outline: none; cursor: pointer;
}
.czc-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fbbf24; border: 3px solid #8B1E1E;
    cursor: pointer;
}
.czc-range::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: #fbbf24; border: 3px solid #8B1E1E;
    cursor: pointer;
}

@media (max-width: 600px) {
    .czc-stage { padding: .75rem 2.9rem; }
    .czc-bookwrap { width: min(92vw, calc((100vh - 190px) * .77)); }
    .czc-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
    .czc-prev { left: .3rem; }
    .czc-next { right: .3rem; }
    .czc-modal-title { font-size: .82rem; }
    .czc-thumb img { height: 260px; }
}