/* ================================
   MONTESANTO · DESIGN SYSTEM
   ================================ */

:root {
    /* Palette */
    --cream: #f5f1e8;
    --cream-warm: #ede6d3;
    --cream-deep: #e8dfc9;
    --ink: #0f1419;
    --ink-soft: #1a1f2e;
    --ink-light: #2a3142;
    --gold: #b8935a;
    --gold-light: #c9a876;
    --gold-deep: #9a7842;
    --text: #2a2620;
    --text-muted: #6b6359;
    --text-light: #8a8278;
    --line: rgba(184, 147, 90, 0.2);
    --line-dark: rgba(245, 241, 232, 0.12);

    /* Type */
    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --container: 1280px;
    --radius: 4px;
    --shadow-sm: 0 4px 16px rgba(15, 20, 25, 0.06);
    --shadow-md: 0 12px 40px rgba(15, 20, 25, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 20, 25, 0.12);
    --trans: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: auto; }

body {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* ================================
   TYPOGRAPHY
   ================================ */

.eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    display: inline-block;
    position: relative;
    padding-left: 48px;
}

.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 36px;
    height: 1px;
    background: var(--gold);
}

.eyebrow-light { color: var(--gold-light); }
.eyebrow-light::before { background: var(--gold-light); }

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 24px;
}

.section-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--gold);
}

.section-title-light { color: var(--cream); }
.section-title-light em { color: var(--gold-light); }

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.75;
}

.section-sub-light { color: rgba(245, 241, 232, 0.7); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}

.section-header .eyebrow { display: block; padding-left: 0; }
.section-header .eyebrow::before { left: 50%; transform: translate(-50%, -50%); top: 50%; width: 36px; }
.section-header .eyebrow { padding-left: 0; }
.section-header .eyebrow::before { display: none; }
.section-header .section-sub { margin: 0 auto; }

/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--trans);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--cream);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-deep);
    border-color: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(184, 147, 90, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(245, 241, 232, 0.3);
}

.btn-ghost:hover {
    background: rgba(245, 241, 232, 0.08);
    border-color: var(--cream);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink-soft);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--cream);
}

.btn-full { width: 100%; }

/* ================================
   NAVIGATION
   ================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(245, 241, 232, 0.0);
    backdrop-filter: blur(0);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(245, 241, 232, 0.96);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--line);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: height 0.3s ease;
}

.nav.scrolled .nav-logo-img { height: 42px; }

.nav-logo-dark { display: none; }

.nav.scrolled .nav-logo-light { display: none; }
.nav.scrolled .nav-logo-dark { display: block; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
    margin-left: auto;
    margin-right: 32px;
}

.nav-menu a {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav.scrolled .nav-menu a { color: var(--text); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after { width: 100%; }
.nav-menu a:hover { color: var(--gold); }

.nav-cta {
    padding: 11px 24px;
    background: var(--gold);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--gold-deep);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--cream);
    transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span { background: var(--ink); }

/* ================================
   HERO
   ================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--cream);
    padding: 140px 32px 120px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 20, 25, 0.65) 0%, rgba(15, 20, 25, 0.55) 50%, rgba(15, 20, 25, 0.85) 100%),
        radial-gradient(ellipse at center, rgba(15, 20, 25, 0.3) 0%, rgba(15, 20, 25, 0.7) 100%);
    z-index: 2;
}

/* Mountain silhouette decoration */
.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background-image:
        linear-gradient(180deg, transparent 0%, rgba(15, 20, 25, 0.4) 50%, rgba(15, 20, 25, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 880px;
    text-align: center;
}

.hero-emblem {
    max-width: 320px;
    margin: 0 auto 36px;
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    filter: blur(8px);
    animation: emblemReveal 2s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-emblem img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(12px);
    animation: softFadeUp 1.2s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 32px;
    color: var(--cream);
}

.word-line {
    display: block;
    overflow: hidden;
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    filter: blur(14px);
    animation: wordReveal 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    margin-right: 0.28em;
}

.word:last-child { margin-right: 0; }

.word-line .word:nth-child(1) { animation-delay: 1.1s; }
.word-line .word:nth-child(2) { animation-delay: 1.25s; }
.word-line .word:nth-child(3) { animation-delay: 1.4s; }

.italic-line {
    margin-top: 0.1em;
    opacity: 0;
    transform: translateY(40px);
    filter: blur(20px);
    animation: italicReveal 2s 1.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--gold-light);
    display: inline-block;
    background: linear-gradient(90deg, var(--gold-light) 0%, #e6c98f 50%, var(--gold-light) 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 6s 3.5s ease-in-out infinite;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(245, 241, 232, 0.78);
    max-width: 620px;
    margin: 0 auto 44px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
    animation: softFadeUp 1.4s 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    animation: softFadeUp 1.2s 3.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes emblemReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes italicReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes softFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(245, 241, 232, 0.12);
    max-width: 640px;
    margin: 0 auto;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.meta-number {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--gold-light);
    line-height: 1;
}

.meta-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.6);
    line-height: 1.5;
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: rgba(245, 241, 232, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1.5s 3.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-scroll span {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.6);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--gold-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================
   ABOUT
   ================================ */

.about {
    padding: 140px 0;
    background: var(--cream);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 100px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-frame {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-frame::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(245, 241, 232, 0.2);
    z-index: 2;
    pointer-events: none;
}

.about-badge {
    position: absolute;
    bottom: -32px;
    right: -32px;
    background: var(--ink);
    color: var(--cream);
    padding: 28px 40px;
    text-align: center;
    border-radius: 2px;
    box-shadow: var(--shadow-md);
}

.badge-since {
    display: block;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.badge-year {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
}

.about-content .lead {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 400;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-values {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.value {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold);
}

.value-icon svg {
    width: 22px;
    height: 22px;
}

.value h4 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.value p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* ================================
   SERVICES
   ================================ */

.services {
    padding: 140px 0;
    background: var(--cream-warm);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-card {
    background: var(--cream);
    padding: 56px 40px;
    transition: all var(--trans);
    cursor: pointer;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover {
    background: var(--ink);
    color: var(--cream);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover h3 { color: var(--cream); }
.service-card:hover p { color: rgba(245, 241, 232, 0.7); }
.service-card:hover .service-icon { color: var(--gold-light); }
.service-card:hover .service-link { color: var(--gold-light); }
.service-card:hover .arrow { transform: translateX(6px); }

.service-icon {
    width: 56px;
    height: 56px;
    color: var(--gold);
    margin-bottom: 32px;
    transition: color var(--trans);
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
    transition: color var(--trans);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    font-size: 0.95rem;
    transition: color var(--trans);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    transition: color var(--trans);
}

.arrow {
    transition: transform var(--trans);
    display: inline-block;
}

/* ================================
   SYMBOLOGY
   ================================ */

.symbology {
    padding: 140px 0;
    background:
        radial-gradient(ellipse at top right, rgba(184, 147, 90, 0.08) 0%, transparent 50%),
        var(--ink);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.symbology::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 147, 90, 0.06) 0%, transparent 70%);
    z-index: 1;
}

.symbology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.emblem-large {
    margin-top: 48px;
    width: 200px;
    opacity: 0.95;
}

.symbols {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.symbol {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-dark);
}

.symbol:last-child { border-bottom: none; padding-bottom: 0; }

.symbol-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 147, 90, 0.08);
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    padding: 16px;
}

.symbol-content h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--gold-light);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.symbol-content p {
    color: rgba(245, 241, 232, 0.7);
    line-height: 1.75;
    font-weight: 300;
}

/* ================================
   PLANS
   ================================ */

.plans {
    padding: 140px 0;
    background: var(--cream);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.plan-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 56px 40px;
    border-radius: 2px;
    position: relative;
    transition: all var(--trans);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.plan-featured {
    background: var(--ink);
    border-color: var(--ink);
    transform: scale(1.04);
}

.plan-featured:hover { transform: scale(1.04) translateY(-8px); }

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--cream);
    padding: 8px 20px;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    border-radius: 2px;
}

.plan-header { text-align: center; margin-bottom: 32px; }

.plan-header h3 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.plan-featured .plan-header h3 { color: var(--cream); }

.plan-header p {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.plan-featured .plan-header p { color: var(--gold-light); }

.plan-price {
    text-align: center;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

.plan-featured .plan-price {
    border-color: var(--line-dark);
}

.currency {
    display: block;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.plan-featured .currency { color: var(--gold-light); }

.amount {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
    display: inline-block;
}

.plan-featured .amount { color: var(--cream); }

.period {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.04em;
}

.plan-featured .period { color: rgba(245, 241, 232, 0.5); }

.plan-features {
    list-style: none;
    margin-bottom: 36px;
    flex-grow: 1;
}

.plan-features li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.93rem;
    color: var(--text);
    border-bottom: 1px dashed var(--line);
}

.plan-features li:last-child { border-bottom: none; }

.plan-featured .plan-features li {
    color: rgba(245, 241, 232, 0.85);
    border-color: var(--line-dark);
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 1px;
    background: var(--gold);
}

/* ================================
   TESTIMONIALS
   ================================ */

.testimonials {
    padding: 140px 0;
    background: var(--cream-warm);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial {
    background: var(--cream);
    padding: 56px 40px 40px;
    position: relative;
    border-top: 2px solid var(--gold);
}

.quote-mark {
    font-family: var(--serif);
    font-size: 6rem;
    line-height: 0.7;
    color: var(--gold);
    opacity: 0.25;
    margin-bottom: 16px;
    height: 40px;
}

.testimonial p {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink-soft);
    font-style: italic;
    margin-bottom: 32px;
    font-weight: 400;
}

.testimonial-author {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.author-info strong {
    display: block;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ================================
   CONTACT
   ================================ */

.contact {
    padding: 140px 0;
    background:
        radial-gradient(ellipse at bottom left, rgba(184, 147, 90, 0.1) 0%, transparent 50%),
        var(--ink);
    color: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title { margin-bottom: 28px; }

.contact-details {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-dark);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.contact-item a, .contact-item p {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--cream);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.contact-form {
    background: rgba(245, 241, 232, 0.04);
    border: 1px solid var(--line-dark);
    padding: 48px 40px;
    border-radius: 2px;
}

.contact-form h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-sub {
    color: rgba(245, 241, 232, 0.6);
    font-size: 14px;
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-dark);
    padding: 12px 0;
    color: var(--cream);
    font-family: var(--sans);
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a876' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0 center;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 24px;
}

.form-group select option { background: var(--ink); color: var(--cream); }

/* ================================
   FOOTER
   ================================ */

.footer {
    background: #0a0d12;
    color: rgba(245, 241, 232, 0.7);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line-dark);
}

.footer-brand p {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.footer-col h4 {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a, .footer-col li {
    color: rgba(245, 241, 232, 0.65);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(245, 241, 232, 0.5);
}

.footer-legal {
    display: flex;
    gap: 28px;
}

.footer-legal a {
    color: rgba(245, 241, 232, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--gold-light); }

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .about-grid,
    .symbology-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 64px; }
    .services-grid,
    .plans-grid,
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-featured { transform: scale(1); }
    .plan-featured:hover { transform: translateY(-8px); }
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    /* Plans → carrusel swipeable */
    .plans-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding: 28px 20px 16px;
        margin: 0 -20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .plans-grid::-webkit-scrollbar { display: none; }
    .plan-card {
        flex: 0 0 78%;
        max-width: 320px;
        scroll-snap-align: center;
        padding: 36px 26px 32px;
    }
    .plan-featured { transform: scale(1); }
    .plan-card:hover { transform: none; }
    .plan-featured:hover { transform: none; }

    .plan-header { margin-bottom: 18px; }
    .plan-header h3 { font-size: 1.55rem; }
    .plan-header p { font-size: 12px; }

    .plan-features { margin-bottom: 22px; }
    .plan-features li {
        padding: 7px 0 7px 22px;
        font-size: 0.85rem;
        line-height: 1.35;
    }
    .plan-features li::before { width: 12px; }
    .plan-badge {
        top: -12px;
        padding: 6px 16px;
        font-size: 9px;
    }
    .plan-card .btn { padding: 14px 28px; font-size: 12px; }

    /* Testimonials → carrusel swipeable */
    .testimonials-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 32px 20px 20px;
        margin: 0 -20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .testimonials-grid::-webkit-scrollbar { display: none; }
    .testimonial {
        flex: 0 0 85%;
        max-width: 360px;
        scroll-snap-align: center;
    }

    /* Indicador visual de carrusel */
    .carousel-hint {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    .carousel-hint span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(184, 147, 90, 0.3);
        transition: all 0.3s ease;
    }
    .carousel-hint span.active {
        background: var(--gold);
        width: 24px;
        border-radius: 4px;
    }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .nav-container { padding: 0 20px; gap: 16px; }
    .nav-logo-sub { display: none; }
    .nav-cta { padding: 9px 16px; font-size: 11px; }
    .hero { padding: 120px 20px 80px; }
    .hero-meta { flex-direction: column; gap: 24px; }
    .meta-divider { width: 40px; height: 1px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .about, .services, .symbology, .plans, .testimonials, .contact { padding: 80px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .about-badge { right: 0; bottom: -20px; padding: 18px 28px; }
    .badge-year { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .section-header { margin-bottom: 56px; }
    .symbol { gap: 20px; }
    .symbol-icon { width: 56px; height: 56px; padding: 12px; }
}

/* ================================
   ANIMATIONS ON SCROLL
   ================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* En mobile, las cards dentro de carruseles nunca deben tener reveal animation:
   el transform interfiere con el scroll horizontal y hace que parezcan moverse solas. */
@media (max-width: 768px) {
    .plans-grid .plan-card,
    .plans-grid .plan-card.reveal,
    .testimonials-grid .testimonial,
    .testimonials-grid .testimonial.reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

::selection {
    background: var(--gold);
    color: var(--cream);
}

html { scrollbar-width: thin; scrollbar-color: var(--gold) var(--cream); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
