/**
 * Saira — estilos principales (referencia Jade Tarot)
 */

:root {
    --purple-deep: #2E0A3E;
    --purple-mid: #3d1252;
    --purple-soft: #4a1863;
    --green-deep: #0B3D1B;
    --green-mid: #145a28;
    --gold: #D4AF37;
    --gold-light: #e8c96a;
    --gold-dark: #a8841a;
    --cream: #f5efe6;
    --muted: #c4b8cc;
    --white: #ffffff;
    --whatsapp: #128c57;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --radius: 4px;
    --font-display: "Cinzel", Georgia, serif;
    --font-body: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--purple-deep);
    color: var(--cream);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

a:hover,
a:focus {
    color: var(--gold);
}

.container {
    width: min(1140px, 100% - 32px);
    margin-inline: auto;
}

.container-wide {
    width: min(1280px, 100% - 24px);
    margin-inline: auto;
}

/* Navigation */
#navigation {
    position: relative;
    background: rgba(46, 10, 62, 0.94);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(12px);
    z-index: 9000;
}

#navigation.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.nav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.logo:hover {
    color: var(--gold-light);
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold);
    border-radius: 8px;
    width: 48px;
    height: 44px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-menu a {
    display: block;
    color: var(--cream);
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.main-menu a:hover,
.main-menu a.is-active {
    color: var(--gold);
}

.main-menu .nav-call {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--purple-deep);
    border-radius: var(--radius);
    margin-left: 8px;
    padding: 10px 18px;
}

.main-menu .nav-call:hover {
    color: var(--purple-deep);
    opacity: 0.92;
}

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    min-height: 92svh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(46, 10, 62, 0.92) 0%, rgba(46, 10, 62, 0.72) 45%, rgba(46, 10, 62, 0.35) 100%),
        url(../img/hero-desktop.webp) center / cover no-repeat;
    color: var(--white);
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    padding-left: clamp(16px, 4vw, 48px);
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    margin: 0 0 8px;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--gold-light);
    margin: 0 0 20px;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.hero-subtitle em {
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-lead {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    margin: 0 0 28px;
    max-width: 520px;
    color: rgba(245, 239, 230, 0.92);
    line-height: 1.6;
}

.hero-phone {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    color: var(--white);
    margin-bottom: 20px;
    padding: 12px 24px;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    background: rgba(46, 10, 62, 0.5);
}

.hero-phone:hover {
    color: var(--white);
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.hero-phone-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold-light);
}

.hero-phone-number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--gold);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.trust-item svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--gold);
}

.scroll-down {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(212, 175, 55, 0.7);
    font-size: 1.8rem;
    animation: bounceSoft 2.2s ease-in-out infinite;
}

.scroll-down:hover {
    color: var(--gold);
}

/* Urgency banner */
.urgency-banner {
    background: linear-gradient(90deg, var(--green-deep), var(--green-mid));
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.urgency-banner p {
    margin: 0;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--white);
}

.urgency-banner a {
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 1.15em;
    margin-left: 6px;
    border-bottom: 1px solid rgba(232, 201, 106, 0.5);
}

/* Section titles */
.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    text-align: center;
    color: var(--gold);
    margin: 0 0 12px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.section-title-decor::before,
.section-title-decor::after {
    content: "";
    height: 1px;
    width: min(120px, 20vw);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
    color: var(--muted);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

/* Services grid */
.services-section {
    padding: 72px 0 56px;
    background: var(--purple-deep);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
    background: var(--purple-mid);
    border: 1px solid rgba(212, 175, 55, 0.12);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    z-index: 1;
}

.service-card--green {
    background: var(--green-deep);
}

.service-card__media {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card__body h3 {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    color: var(--gold);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
}

.service-card__body p {
    margin: 0 0 20px;
    color: rgba(245, 239, 230, 0.88);
    font-size: 0.92rem;
    line-height: 1.55;
}

.service-card--featured {
    grid-column: 1 / -1;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 320px;
}

.service-card--featured .service-card__media {
    min-height: 280px;
}

/* About */
.about-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(46, 10, 62, 0.88), rgba(46, 10, 62, 0.94)),
        url(../img/about-bg.webp) center / cover no-repeat;
}

.about-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--gold);
}

.about-section .section-title {
    margin-bottom: 24px;
}

.about-text {
    max-width: 720px;
    margin: 0 auto 32px;
    color: rgba(245, 239, 230, 0.9);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.7;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    margin-top: 32px;
}

.about-highlight {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Why choose */
.why-section {
    padding: 72px 0;
    background: var(--purple-mid);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.why-item {
    text-align: center;
    padding: 16px 8px;
}

.why-item svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    color: var(--gold);
}

.why-item span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-light);
    line-height: 1.35;
}

/* Contact CTA */
.contact-section {
    position: relative;
    padding: 88px 0;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(46, 10, 62, 0.82), rgba(46, 10, 62, 0.9)),
        url(../img/cta-bg.webp) center / cover no-repeat;
}

.contact-section .section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 16px;
}

.contact-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--cream);
    margin: 0 auto 12px;
    max-width: 560px;
}

.contact-sub {
    color: var(--muted);
    margin: 0 auto 32px;
    font-size: 0.95rem;
}

.contact-phone {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.45);
    line-height: 1.2;
}

.contact-phone:hover {
    color: var(--gold-light);
}

/* Footer bar */
.footer-bar {
    background: rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 20px 0;
}

.footer-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
}

.footer-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.footer-bar-item svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

footer {
    background: #0a0610;
    padding: 28px 0 32px;
    text-align: center;
}

.footer-copy {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-logo {
    display: block;
    margin: 0 auto;
    opacity: 0.8;
}

.privacy-link {
    display: block;
    margin: 20px auto 0;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}

.privacy-link:hover {
    color: var(--gold);
}

/* Buttons */
.hero-ctas,
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: var(--radius);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.82rem;
    font-family: var(--font-body);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: var(--shadow);
    min-width: 200px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-cta:hover,
.sticky-btn:hover {
    transform: translateY(-2px);
    color: var(--purple-deep);
}

.btn-cta-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: none;
}

.btn-cta-outline:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
}

.btn-cta-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: var(--purple-deep);
}

.btn-cta-gold:hover {
    color: var(--purple-deep);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.btn-cta-phone,
.sticky-btn-phone {
    background: linear-gradient(135deg, var(--purple-soft), var(--purple-mid));
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-cta-phone:hover {
    color: var(--gold-light);
}

.btn-cta-whatsapp,
.sticky-btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-cta-whatsapp:hover {
    color: var(--white);
}

.btn-cta-sm {
    min-width: 0;
    padding: 12px 20px;
    font-size: 0.72rem;
}

.btn-cta .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Sticky CTA */
.sticky-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    bottom: 22px;
    right: 14px;
    z-index: 9999;
}

.sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
    padding: 14px 20px;
    color: var(--white);
    letter-spacing: 0.04em;
}

.sticky-btn .icon {
    width: 20px;
    height: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: 85vh;
    overflow: auto;
    background: var(--cream);
    color: #2a1524;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--purple-deep);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #2a1524;
    padding: 0 4px;
}

.modal-body {
    padding: 20px 24px;
}

.modal-body p {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: justify;
}

.modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

/* Motion */
.reveal,
.reveal-hero {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible,
.reveal-hero.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-cta {
    animation: ctaPulse 2.2s ease-in-out infinite;
}

.pulse-soft {
    animation: softPulse 2.8s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 14px 36px rgba(212, 175, 55, 0.55); transform: translateY(-1px) scale(1.02); }
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35); }
    50% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
}

@keyframes bounceSoft {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-hero {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-down, .pulse-cta, .pulse-soft {
        animation: none !important;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card--featured {
        grid-template-columns: 1fr;
    }

    .service-card__media {
        min-height: 220px;
        max-height: 260px;
    }

    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    html { font-size: 16px; }

    .hero {
        min-height: 100svh;
        align-items: flex-end;
        padding: 88px 0 72px;
        background:
            linear-gradient(180deg, rgba(46, 10, 62, 0.55) 0%, rgba(46, 10, 62, 0.88) 55%, var(--purple-deep) 100%),
            url(../img/hero-mobile.webp) center top / cover no-repeat;
    }

    .hero-inner {
        padding-left: 16px;
        padding-right: 16px;
        text-align: center;
        margin-inline: auto;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .trust-row {
        justify-content: center;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 76px;
        right: 12px;
        left: 12px;
        flex-direction: column;
        align-items: stretch;
        background: var(--purple-mid);
        border: 1px solid rgba(212, 175, 55, 0.25);
        border-radius: 8px;
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .main-menu.is-open {
        display: flex;
    }

    #navigation.nav-fixed {
        position: fixed;
    }

    .nav-inner {
        position: relative;
    }

    .hero-ctas .btn-cta,
    .cta-row .btn-cta {
        width: 100%;
        min-width: 0;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-bar-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    body {
        padding-bottom: 108px;
    }

    .sticky-cta {
        right: 10px;
        bottom: 12px;
    }
}

@media (max-width: 380px) {
    .sticky-btn {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
}
