/* Shared styles for service pages, guides and 404. Tokens mirror index.html */
:root {
    --bg-primary: #FFFBFE;
    --bg-secondary: #FCF2FA;
    --bg-card: #FFFFFF;
    --bg-accent: #FBEEF8;
    --text-primary: #2E1A28;
    --text-secondary: #6E5A68;
    --text-accent: #8E3F72;
    --accent: #B6649C;
    --accent-light: #F6E1F1;
    --accent-glow: rgba(142, 63, 114, 0.24);
    --border: rgba(114, 58, 98, 0.12);
    --border-strong: rgba(114, 58, 98, 0.26);
    --shadow: 0 4px 24px rgba(114, 58, 98, 0.08);
    --shadow-hover: 0 14px 48px rgba(114, 58, 98, 0.16);
    --shadow-card: 0 2px 16px rgba(46, 26, 40, 0.05);
    --gradient-hero: linear-gradient(135deg, #FFF8FD 0%, #FDEAFE 45%, #F7D8EE 75%, #EFC6E3 100%);
    --gradient-accent: linear-gradient(135deg, #B6649C 0%, #8E3F72 55%, #723A62 100%);
    --gradient-cta: linear-gradient(135deg, #8E3F72 0%, #50283F 100%);
    --nav-bg: rgba(255, 251, 254, 0.88);
    --whatsapp: #25D366;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --radius: 20px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #150D13;
    --bg-secondary: #1D1219;
    --bg-card: #261823;
    --bg-accent: #2F1E2B;
    --text-primary: #F7E8F2;
    --text-secondary: #BFA5B6;
    --text-accent: #E7A6D3;
    --accent: #E7A6D3;
    --accent-light: #3A2433;
    --accent-glow: rgba(231, 166, 211, 0.2);
    --border: rgba(231, 166, 211, 0.1);
    --border-strong: rgba(231, 166, 211, 0.22);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 2px 16px rgba(0,0,0,0.25);
    --gradient-hero: linear-gradient(135deg, #150D13 0%, #1D1219 40%, #261823 70%, #2F1E2B 100%);
    --nav-bg: rgba(21, 13, 19, 0.9);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body {
    font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary);
    line-height: 1.75; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--text-primary); }
a { color: var(--text-accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 1000; background: var(--nav-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.site-header .logo img { height: 56px; width: auto; }
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }
.header-links { display: flex; list-style: none; gap: 22px; }
.header-links a { font-size: 0.84rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.header-links a:hover, .header-links a[aria-current="page"] { color: var(--text-accent); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    text-decoration: none; transition: var(--transition); font-family: var(--font-body);
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn-primary { background: var(--gradient-accent); color: var(--white); box-shadow: 0 6px 24px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--accent-glow); }
.btn-secondary { background: var(--bg-card); color: var(--text-accent); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { background: var(--accent-light); }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 18px 0 0; font-size: 0.8rem; color: var(--text-secondary); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: '\203A'; margin-right: 6px; color: var(--border-strong); }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-accent); }

/* ===== PAGE HERO ===== */
.page-hero { background: var(--gradient-hero); padding: 8px 0 64px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; margin-top: 32px; }
.eyebrow {
    display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 3px; color: var(--text-accent); margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; margin-bottom: 18px; letter-spacing: -0.5px; }
.page-hero h1 em { font-style: italic; color: var(--text-accent); }
.lede { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 24px; max-width: 560px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; list-style: none; }
.hero-facts li {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 50px;
    padding: 6px 16px; font-size: 0.8rem; font-weight: 600; color: var(--text-accent);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero-img {
    position: relative; overflow: hidden; box-shadow: var(--shadow-hover);
    aspect-ratio: 4 / 5; background: var(--bg-card); justify-self: center; width: min(100%, 420px);
    border-radius: 999px 999px 28px 28px; border: 7px solid var(--bg-card);
}
.page-hero-img::after {
    content: ''; position: absolute; left: 18px; bottom: 18px; width: 132px; height: 132px;
    border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 8px 24px rgba(80, 40, 63, 0.3);
    background: url('/images/brand/moritas-sello-240.webp') center / cover;
}
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== SECTIONS & PROSE ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-secondary); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--text-secondary); }
.prose p strong, .prose li strong { color: var(--text-primary); }
.prose ul, .prose ol { margin: 0 0 20px 22px; color: var(--text-secondary); }
.prose li { margin-bottom: 8px; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }
.prose figcaption { font-size: 0.8rem; color: var(--text-secondary); text-align: center; margin-top: 8px; }
.note {
    background: var(--bg-accent); border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
    padding: 16px 20px; margin: 24px 0; font-size: 0.92rem; color: var(--text-secondary);
}

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; flex-grow: 1; }
.card .price { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--text-accent); margin-bottom: 4px; }
.card .price-note { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 16px; }
.card.featured { border-color: var(--accent); box-shadow: var(--shadow-hover); }
a.card { text-decoration: none; color: inherit; transition: var(--transition); }
a.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.card-img { margin: -28px -24px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; height: 180px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-link { font-size: 0.82rem; font-weight: 600; color: var(--text-accent); }

/* ===== STEPS ===== */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps li::before {
    content: counter(step); display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-accent); color: var(--white);
    font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: 0.88rem; color: var(--text-secondary); }

/* ===== DO / DON'T ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check-list, .cross-list { list-style: none; margin: 0 !important; }
.check-list li, .cross-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--text-accent); font-weight: 700; }
.cross-list li::before { content: '\2715'; position: absolute; left: 0; color: var(--text-secondary); font-weight: 700; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--bg-card); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-accent); color: var(--text-primary); font-weight: 600; }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.faq-list summary {
    padding: 18px 56px 18px 22px; cursor: pointer; font-weight: 600; font-size: 0.95rem;
    list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%; background: var(--accent-light); color: var(--text-accent);
    display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 22px 18px; color: var(--text-secondary); font-size: 0.92rem; }

/* ===== ARTICLE ===== */
.article-meta { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 8px; }
.toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; margin: 0 0 32px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 0.9rem; }
.toc ol { margin: 0 0 0 20px !important; }
.toc a { text-decoration: none; }

/* ===== CTA BAND ===== */
.cta-band { background: var(--gradient-cta); color: var(--white); text-align: center; padding: 64px 0; }
.cta-seal {
    width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 24px;
    border: 4px solid rgba(255, 255, 255, 0.55); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { opacity: 0.9; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: var(--white); color: #723A62; }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 56px 0 28px; font-size: 0.86rem; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-cols h2 {
    font-family: var(--font-body); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-accent); margin-bottom: 16px;
}
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--text-secondary); text-decoration: none; }
.footer-cols a:hover { color: var(--text-accent); }
.footer-cols p { color: var(--text-secondary); }
.footer-cols img { height: 72px; width: auto; margin-bottom: 14px; }
.footer-legal { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: 0.78rem; color: var(--text-secondary); }

/* ===== WHATSAPP ===== */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 998; width: 58px; height: 58px;
    background: var(--whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
}
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
.sticky-cta { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .header-links { display: none; }
    .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .page-hero-img { width: min(100%, 340px); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .site-header .logo img { height: 42px; }
    .site-header .container { height: 72px; }
    .page-hero-img::after { width: 100px; height: 100px; left: 12px; bottom: 12px; }
    .section { padding: 52px 0; }
    .two-col { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .wa-float { display: none; }
    .sticky-cta {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 997;
        background: var(--gradient-cta); padding: 12px 16px; text-align: center;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    }
    .sticky-cta a { color: var(--white); font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .sticky-cta svg { width: 20px; height: 20px; fill: currentColor; }
    body { padding-bottom: 56px; }
}
