﻿:root {
    --verde: #107C41;
    --verde-osc: #0B5A2F;
    --verde-claro: #21A366;
    --gris-bg: #f5f7f9;
    --texto: #1f2937;
    --muted: #6b7280;
    --borde: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--texto);
    background: #fff;
    margin: 0;
    line-height: 1.6;
}

a { color: var(--verde); text-decoration: none; }
a:hover { color: var(--verde-osc); text-decoration: underline; }

h1, h2, h3, h4, h5 { font-weight: 700; color: #111827; }

/* ---------- Navbar ---------- */
.navbar-institucional {
    background: linear-gradient(135deg, var(--verde-osc), var(--verde));
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.navbar-institucional .navbar-brand { font-weight: 800; letter-spacing: -.3px; color: #fff; }
.navbar-institucional .nav-link { color: rgba(255,255,255,.9) !important; font-weight: 500; border-radius: 8px; padding: .45rem .8rem !important; }
.navbar-institucional .nav-link:hover { background: rgba(255,255,255,.12); color: #fff !important; text-decoration: none; }

/* ---------- Botones ---------- */
.btn-verde { background: var(--verde); border-color: var(--verde); color: #fff; font-weight: 600; }
.btn-verde:hover { background: var(--verde-osc); border-color: var(--verde-osc); color: #fff; }
.btn-outline-verde { color: var(--verde); border: 2px solid var(--verde); background: #fff; font-weight: 600; }
.btn-outline-verde:hover { background: var(--verde); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--verde-osc) 0%, var(--verde) 60%, var(--verde-claro) 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.hero p.lead { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 720px; margin: 0 auto 1.8rem; }
.hero .badge-pill { background: rgba(255,255,255,.15); color: #fff; border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; margin: .2rem; display: inline-block; }

/* ---------- Secciones ---------- */
.seccion { padding: 3.5rem 0; }
.seccion-titulo { text-align: center; margin-bottom: 2.5rem; }
.seccion-titulo h2 { font-size: 1.9rem; }
.seccion-titulo p { color: var(--muted); max-width: 640px; margin: .5rem auto 0; }

/* ---------- Tarjetas de plantilla ---------- */
.card-plantilla {
    border: 1px solid var(--borde);
    border-radius: 14px;
    background: #fff;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
    overflow: hidden;
}
.card-plantilla:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,124,65,.13); }
.card-plantilla .card-icono {
    width: 54px; height: 54px; border-radius: 12px;
    background: rgba(16,124,65,.1); color: var(--verde);
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1rem;
}
.card-plantilla .card-body { padding: 1.5rem; display: flex; flex-direction: column; }
.card-plantilla h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card-plantilla p { color: var(--muted); font-size: .92rem; flex-grow: 1; }
.card-plantilla .card-foot { display: flex; align-items: center; justify-content: flex-end; margin-top: 1rem; }
.badge-categoria { background: rgba(16,124,65,.1); color: var(--verde-osc); font-size: .72rem; font-weight: 600; padding: .3rem .6rem; border-radius: 6px; }
.badge-pro { background: #fde68a; color: #92400e; font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: 6px; }

/* ---------- Categoria header (catalogo) ---------- */
.cat-header { display:flex; align-items:center; gap:.6rem; margin: 2.2rem 0 1.2rem; }
.cat-header h2 { font-size: 1.4rem; margin: 0; }
.cat-header .linea { flex-grow: 1; height: 1px; background: var(--borde); }

/* ---------- Detalle (landing) ---------- */
.detalle-hero { background: var(--gris-bg); padding: 2.5rem 0; border-bottom: 1px solid var(--borde); }
.detalle-hero .icono-grande {
    width: 72px; height: 72px; border-radius: 16px; background: var(--verde); color: #fff;
    display:flex; align-items:center; justify-content:center; font-size: 2.2rem; margin-bottom: 1rem;
}
.detalle-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.breadcrumb a { color: var(--verde); }

.comparativa { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .comparativa { grid-template-columns: 1fr; } }
.plan {
    border: 1px solid var(--borde); border-radius: 16px; padding: 1.8rem; background: #fff; display:flex; flex-direction:column;
}
.plan.pro { border: 2px solid var(--verde); box-shadow: 0 10px 30px rgba(16,124,65,.12); position: relative; }
.plan.pro .ribbon {
    position:absolute; top:-12px; right:18px; background: var(--verde); color:#fff;
    font-size:.72rem; font-weight:700; padding:.3rem .8rem; border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; }
.plan .precio { font-size: 2.2rem; font-weight: 800; color: var(--verde-osc); }
.plan .precio small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0; }
.plan ul li { padding: .35rem 0 .35rem 1.7rem; position: relative; color: #374151; font-size: .95rem; }
.plan ul li:before { content: "\2713"; position: absolute; left: 0; color: var(--verde); font-weight: 700; }
.plan .btn { margin-top: auto; }

.seo-block { margin: 2.2rem 0; }
.seo-block h2 { font-size: 1.45rem; margin-bottom: .9rem; }
.seo-block p { color: #374151; }

.accordion-button:not(.collapsed) { background: rgba(16,124,65,.08); color: var(--verde-osc); }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(16,124,65,.2); }

/* ---------- Pagos ---------- */
.pago-card { max-width: 560px; margin: 3rem auto; text-align:center; border:1px solid var(--borde); border-radius:18px; padding:2.5rem; }
.pago-card .icono { font-size: 3.5rem; }
.icono-exito { color: var(--verde); }
.icono-cancelado { color: #d97706; }

/* ---------- Footer ---------- */
.footer-institucional { background: #0f172a; color: #cbd5e1; padding: 3rem 0 0; }
.footer-institucional h5, .footer-institucional h6 { color: #fff; }
.footer-institucional a { color: #cbd5e1; }
.footer-institucional a:hover { color: #fff; }
.footer-institucional ul li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding: 1.2rem 0; font-size: .85rem; }
.footer-legal-links a { margin-left: 1rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #0f172a; color: #e2e8f0; padding: 1rem; z-index: 1080; box-shadow: 0 -4px 20px rgba(0,0,0,.2); transition: transform .3s ease; }
.cookie-banner.hide { transform: translateY(100%); }
.cookie-content { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: space-between; }
.cookie-text { display:flex; gap:.8rem; align-items:flex-start; max-width: 680px; }
.cookie-text i { font-size: 1.5rem; color: var(--verde-claro); }
.cookie-text p { margin: .2rem 0 0; font-size: .88rem; color: #cbd5e1; }
.cookie-actions { display:flex; gap:.6rem; }
.btn-cookie-primary { background: var(--verde); color:#fff; border:none; padding:.5rem 1.1rem; border-radius:8px; font-weight:600; cursor:pointer; }
.btn-cookie-secondary { background: transparent; color:#cbd5e1; border:1px solid #475569; padding:.5rem 1.1rem; border-radius:8px; cursor:pointer; }

/* ---------- Alertas ---------- */
.alert-flotante { position: fixed; top: 80px; right: 20px; z-index: 1090; max-width: 360px; }
