/* =====================================================
   ESPINOZA NEGRETE & ASOCIADOS — PRESTIGE DESIGN SYSTEM
   Theme: Dark Luxury Law / Editorial Noir
   Centralized Styles for Site-wide Consistency
===================================================== */

:root {
    --navy: #060F1E;
    --navy-mid: #0C1B32;
    --navy-light: #152844;
    --navy-card: #0E1F38;
    --gold: #6d604a;
    --gold-bright: #ebda79;
    --gold-pale: #f5ea9a;
    --gold-dark: #fcd69d60;
    --cream: #F5F0E8;
    --dim: rgba(245, 240, 232, 0.65);
    --dim2: rgba(245, 240, 232, 0.42);
    --white: #FFFFFF;
    --gold-line: #ffe24fa7;
    --glass: rgba(6, 15, 30, 0.82);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Helvetica Neue', sans-serif;
    background: var(--navy);
    color: var(--cream);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── NAVIGATION ─────────────────────────────────── */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gold-line);
    transition: background 0.4s, border-color 0.4s;
}

.main-nav.scrolled {
    background: rgba(6, 15, 30, 0.97);
    border-bottom-color: rgba(201, 168, 76, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    /* Ensure it stays above mobile menu */
}

.nav-logo img {
    height: 52px;
    /* Adjust as needed */
    width: auto;
    object-fit: contain;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.35s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-bright);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.call-button {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cream);
    background: #fcd69d60;
    border: 1px solid rgba(252, 214, 157, 0.6);
    padding: 0.6rem 1.5rem;
    border-radius: 1px;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
    display: inline-block;
    overflow: hidden;
}

.call-button:hover {
    background: var(--gold-pale);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger-line {
    width: 22px;
    height: 1.5px;
    background: var(--cream);
    transition: all 0.3s ease;
    display: block;
}

/* ── ORNAMENT DIVIDERS ───────────────────────── */
.ornament-row {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.5rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
}

.ornament-row::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-line));
}

.ornament-row::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--gold-line), transparent);
}

.ornament-diamond {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── SECTION HEADERS ────────────────────────────── */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    gap: 2rem;
}

.section-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.63rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gold-bright);
    font-weight: 500;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.7rem, 3vw, 2.9rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.18;
    letter-spacing: 0.01em;
}

.section-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dim);
    max-width: 280px;
    text-align: right;
    line-height: 1.6;
    flex-shrink: 0;
}

/* ── HERO SUB-PAGES ────────────────────────────── */
.hero-sub {
    padding: 10rem 4rem 6rem;
    background: linear-gradient(to bottom, var(--navy-mid), var(--navy));
    border-bottom: 1px solid var(--gold-line);
    text-align: center;
}

.hero-sub h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
    margin-right: 0.22em; /* Ensure proper word spacing */
}

.word-anim {
    display: inline-block;
    transform: translateY(115%);
    will-change: transform;
}

.hero-sub p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--gold-pale);
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

/* ── ACCORDIONS (SERVICES) ───────────────────────── */
.accordion-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.prestige-accordion {
    border-bottom: 1px solid var(--gold-line);
    margin-bottom: 0;
}

.prestige-accordion summary {
    list-style: none;
    padding: 2.2rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--white);
    transition: color 0.3s;
}

.prestige-accordion summary::-webkit-details-marker {
    display: none;
}

.prestige-accordion summary::after {
    content: '+';
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    color: var(--gold);
    transition: transform 0.4s ease;
}

.prestige-accordion[open] summary::after {
    transform: rotate(45deg);
}

.prestige-accordion summary:hover {
    color: var(--gold-bright);
}

.accordion-content {
    padding: 0 0 2.5rem 0;
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dim);
    animation: slideDown 0.5s ease-out;
}

.accordion-content p {
    margin-bottom: 1.2rem;
}

.accordion-content ul {
    list-style: none;
    margin-top: 1rem;
}

.accordion-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.accordion-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── FOOTER ──────────────────────────────────────── */
.main-footer {
    background: rgba(4, 10, 20, 0.98);
    border-top: 1px solid var(--gold-line);
    padding: 2.2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
}

.footer-brand {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
    line-height: 1.6;
    text-align: center;
}

.footer-brand strong {
    display: block;
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    margin-bottom: 0.2rem;
}

.footer-social {
    display: flex;
    gap: 1.6rem;
    align-items: center;
    justify-content: center;
}

.footer-social a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.75;
    filter: brightness(0) saturate(100%) invert(90%) sepia(18%) saturate(1211%) hue-rotate(323deg) brightness(102%) contrast(98%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(91%) sepia(35%) saturate(769%) hue-rotate(327deg) brightness(103%) contrast(92%);
    transform: translateY(-2px) scale(1.1);
}

.footer-copy {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--dim);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.developer-credit {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--dim);
}

.developer-credit a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--gold);
}

@media (min-width: 769px) {
    .main-footer {
        padding-bottom: 5rem;
    }

    .developer-credit {
        position: absolute;
        right: 4rem;
        bottom: 1.5rem;
    }
}

.dev-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* ── WHATSAPP BUTTON ─────────────────────────────── */
.whatsapp-flotante {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 22px rgba(37, 211, 102, 0.40);
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.58);
}

.whatsapp-flotante img {
    width: 28px;
    height: 28px;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
    .main-footer {
        padding: 1.5rem 1.5rem;
        gap: 1rem;
    }

    .developer-credit {
        position: static;
        margin-top: 0.5rem;
    }
}

@media (max-width: 1024px) {
    .main-nav {
        padding: 1.1rem 2rem;
    }
}

@media (max-width: 820px) {
    .hamburger-menu {
        display: flex;
        order: 3;
    }

    .call-button {
        order: 2;
    }

    .nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .main-nav.is-open .nav-center {
        right: 0;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .section-desc {
        text-align: left;
        max-width: 100%;
        margin-right: 0;
        padding-right: 1.5rem;
    }
}

/* ── SERVICES GRID (HOME) ───────────────────────── */
.services-section {
    padding: 1.5rem 4rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--navy-mid);
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    transition: background 0.4s, transform 0.4s;
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.service-card:hover {
    background: var(--navy-card);
}

.card-num {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 2.5rem;
    display: block;
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 2rem;
    color: var(--gold);
}

.card-icon svg:not(.custom-card-icon) {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
}

.card-icon svg.custom-card-icon {
    width: 100%;
    height: 100%;
    fill: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .custom-card-icon {
    transform: scale(1.18);
    filter: drop-shadow(0 0 16px rgba(245, 234, 154, 0.55));
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    color: var(--white);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    font-weight: 400;
}

.card-desc {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dim);
    margin-bottom: 3rem;
    font-weight: 300;
}

.card-link {
    margin-top: auto;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: gap 0.3s;
}

.service-card:hover .card-link {
    gap: 1.2rem;
}

.card-link::after {
    content: '→';
    font-size: 1rem;
}

/* ── LANDING SPECIFIC ────────────────────────────── */
.landing-page-body {
    background: var(--navy);
}

.landing-main {
    padding-top: 5rem;
}

.landing-hero {
    padding: 12rem 2rem 8rem;
    text-align: center;
    background: radial-gradient(circle at top, var(--navy-mid), var(--navy));
    border-bottom: 1px solid var(--gold-line);
}

.landing-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    color: var(--white);
    margin: 1.5rem 0;
}

.landing-hero em {
    font-style: normal;
    color: var(--gold);
}

.lead-magnet-section {
    max-width: 800px;
    margin: -4rem auto 6rem;
    background: var(--navy-card);
    border: 1px solid var(--gold);
    padding: 5rem 4rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.pdf-preview {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: left;
    border: 1px solid var(--gold-line);
}

.pdf-icon {
    font-size: 4rem;
}

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.symptom-item {
    background: var(--navy-mid);
    border: 1px solid var(--gold-line);
    padding: 3rem 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.symptom-item:hover {
    border-color: var(--gold);
}

.symptom-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1.5rem;
}

.call-to-action {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 1.2rem 2.8rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.call-to-action:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
}

/* ── MODAL ── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--navy-card);
    border: 1px solid var(--gold);
    width: 100%;
    max-width: 500px;
    padding: 4rem;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

/* ── CONTACT & FORM ────────────────────────────── */
.contact-container {
    max-width: 1100px;
    margin: 4rem auto 8rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-card {
    background: var(--navy-card);
    border: 1px solid var(--gold-line);
    padding: 3rem;
    border-radius: 2px;
}

.contact-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-info-item p,
.contact-info-item a {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--dim);
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Form Styles */
.prestige-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-field label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-pale);
}

.form-field input,
.form-field textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gold-line);
    padding: 1rem;
    color: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s, background 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
}

/* Premium Interactive Gallery Carousel & Lightbox */
.prestige-collage {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    background: var(--navy-mid);
    border-top: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
}

.collage-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4.5rem;
    position: relative;
}

.collage-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* smooth momentum scrolling on iOS */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding: 0.5rem 0;
}

.collage-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.collage-item {
    flex-shrink: 0;
    width: 260px;
    height: 340px;
    border: 1px solid var(--gold-line);
    border-radius: 4px;
    overflow: hidden;
    filter: sepia(0.15) contrast(1.05) brightness(0.85);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    scroll-snap-align: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    position: relative;
}

.collage-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.collage-item:hover {
    filter: sepia(0) contrast(1.1) brightness(1.05);
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
}

.collage-item:hover::after {
    opacity: 1;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 15, 28, 0.85);
    border: 1px solid var(--gold-line);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-nav:hover {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

/* Lightbox Modal CSS */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 11, 21, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 3.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
    z-index: 1110;
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    color: #fff;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border: 1px solid var(--gold);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.15);
    border-radius: 4px;
}

.lightbox-caption {
    margin-top: 1.2rem;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .prestige-collage {
        padding: 2rem 0;
    }
    .collage-container {
        padding: 0 3rem;
    }
    .carousel-nav {
        width: 36px;
        height: 36px;
    }
    .carousel-nav.prev {
        left: 0.5rem;
    }
    .carousel-nav.next {
        right: 0.5rem;
    }
    .collage-item {
        width: 210px;
        height: 280px;
    }
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.8rem;
    }
    .lightbox-caption {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── BLOG ───────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto 8rem;
    padding: 0 2rem;
}

.prestige-blog-card {
    background: var(--navy-card);
    border: 1px solid var(--gold-line);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.4s, border-color 0.4s;
    overflow: hidden;
}

.prestige-blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.prestige-blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.blog-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.blog-card-excerpt {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dim);
    margin-bottom: 2rem;
}

.blog-card-more {
    margin-top: auto;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-more::after {
    content: '→';
    transition: transform 0.3s;
}

.prestige-blog-card:hover .blog-card-more::after {
    transform: translateX(5px);
}

/* ── POST / ARTICLE ────────────────────────────── */
.post-container {
    max-width: 850px;
    margin: 4rem auto 10rem;
    padding: 0 2rem;
}

.post-header {
    text-align: center;
    margin-bottom: 5rem;
}

.post-meta {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.post-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.post-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--dim);
    line-height: 1.5;
}

.post-content {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dim);
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--white);
    margin: 4rem 0 1.5rem;
    border-bottom: 1px solid var(--gold-line);
    padding-bottom: 0.8rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 1rem;
}

.post-content strong {
    color: var(--gold-bright);
}

.post-image-full {
    width: 100%;
    margin: 3rem 0;
    border: 1px solid var(--gold-line);
}

.post-image-full img {
    width: 100%;
    display: block;
}

.post-cta {
    background: var(--navy-card);
    border: 1px solid var(--gold);
    padding: 3rem;
    text-align: center;
    margin: 5rem 0;
}

.post-cta strong {
    font-family: 'Cinzel', serif;
    display: block;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.post-cta p {
    margin-bottom: 2rem;
}

@media (max-width: 800px) {
    .post-container {
        margin-top: 2rem;
    }

    .post-title {
        font-size: 1.8rem;
    }
}

/* ── PHILOSOPHY & VALUES (NOSOTROS) ──────────────── */
.philosophy-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--navy-mid);
    border-top: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
}

.philo-item {
    background: var(--navy-mid);
    padding: 6rem 4rem;
}

.philo-item:first-child {
    border-right: 1px solid var(--gold-line);
}

.philo-item h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold-bright);
    margin-bottom: 1.8rem;
    letter-spacing: 0.1em;
}

.philo-item p {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--dim);
    font-weight: 300;
}

.values-section {
    padding: 8rem 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.values-section .section-title {
    color: var(--gold-bright);
}

.values-grid {
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    border: 1px solid var(--gold-line);
    border-radius: 16px;
    margin-top: -1rem;
    position: relative;
    overflow: visible;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.value-card:first-child {
    margin-top: 0;
}

/* Card gradients per index */
.value-card[data-index="1"] {
    background: linear-gradient(135deg, #091322 0%, #0F223D 100%);
}
.value-card[data-index="2"] {
    background: linear-gradient(135deg, #0b111a 0%, #172436 100%);
}
.value-card[data-index="3"] {
    background: linear-gradient(135deg, #120f0a 0%, #291F13 100%);
}
.value-card[data-index="4"] {
    background: linear-gradient(135deg, #081424 0%, #261d10 100%);
}
.value-card[data-index="5"] {
    background: linear-gradient(135deg, #0a0912 0%, #20132b 100%);
}
.value-card[data-index="6"] {
    background: linear-gradient(135deg, #060e1a 0%, #2e2013 100%);
}

/* Active State */
.value-card.active {
    border-color: var(--gold-bright);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(235, 218, 121, 0.15);
}


/* Header */
.value-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 2.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.value-card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.value-card-num {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-bright);
    margin-right: 1.5rem;
    opacity: 0.8;
}

.value-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--white);
    margin: 0;
    flex-grow: 1;
    text-align: left;
    letter-spacing: 0.08em;
}

.value-card-arrow {
    width: 24px;
    height: 24px;
    color: var(--dim);
    transition: transform 0.4s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card-arrow svg {
    width: 100%;
    height: 100%;
}

.value-card.active .value-card-arrow {
    transform: rotate(180deg);
    color: var(--gold-bright);
}

/* Body and Content */
.value-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.value-card.active .value-card-body {
    max-height: 350px;
    opacity: 1;
    pointer-events: auto;
}

.value-card-body-content {
    padding: 0 3rem 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
}

.value-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(235, 218, 121, 0.3));
    transition: transform 0.4s ease;
}

.value-card.active .value-icon-svg {
    transform: scale(1.1);
}

.value-card p {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dim);
    font-weight: 300;
    margin: 0;
    text-align: left;
}

@media (max-width: 1024px) {
    .values-section {
        padding: 6rem 2.5rem;
    }

    .philosophy-strip {
        grid-template-columns: 1fr;
    }

    .philo-item:first-child {
        border-right: none;
        border-bottom: 1px solid var(--gold-line);
    }
}

@media (max-width: 768px) {
    .values-section {
        padding: 5rem 1.5rem;
    }

    .value-card-header {
        padding: 1.5rem 1.8rem;
    }

    .value-card-num {
        font-size: 1.3rem;
        margin-right: 1rem;
    }

    .value-card h3 {
        font-size: 1.05rem;
    }

    .value-card-body-content {
        padding: 0 1.8rem 2rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
        text-align: center;
    }

    .value-card p {
        text-align: center;
        font-size: 0.95rem;
    }

    .value-icon {
        width: 60px;
        height: 60px;
    }

    .philo-item {
        padding: 4rem 2rem;
    }
}

/* ── THANK YOU SECTION ──────────────────────────── */
.thank-you-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.thank-you-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.thank-you-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--dim);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.thank-you-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── LANDING PAGE COMPONENTS ────────────────────── */
.landing-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(6, 15, 30, 0.7), rgba(6, 15, 30, 0.9)),
        url('knowledge_base/Imagenes del Web Site/Abogados asesorando.webp') center/cover;
    padding: 0 2rem;
}

.landing-hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.landing-hero-content .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--gold);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.lead-magnet-section {
    background: var(--navy-card);
    border: 1px solid var(--gold-line);
    max-width: 900px;
    margin: -100px auto 6rem;
    padding: 4rem;
    position: relative;
    z-index: 10;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lead-magnet-section h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin-bottom: 2rem;
}

.pdf-preview {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--navy-light);
    border: 1px solid var(--gold-line);
    padding: 2.5rem;
    margin: 2.5rem 0;
    text-align: left;
}

.pdf-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 15px var(--gold));
}

.pdf-info h3 {
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
    color: var(--white);
}

.symptoms-section {
    padding: 6rem 2rem;
    text-align: center;
}

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.symptom-item {
    background: var(--navy-mid);
    border: 1px solid var(--gold-line);
    padding: 3rem 2rem;
    transition: all 0.3s ease;
}

.symptom-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.symptom-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* ── MODAL ───────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    background: var(--navy-card);
    border: 1px solid var(--gold);
    width: 100%;
    max-width: 500px;
    padding: 3.5rem;
    position: relative;
    box-shadow: 0 0 50px rgba(229, 197, 106, 0.1);
}

.modal .close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--gold);
    cursor: pointer;
    transition: 0.3s;
}

.modal-subtitle {
    font-family: 'Lato', sans-serif;
    color: var(--dim);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .symptoms-grid {
        grid-template-columns: 1fr;
    }

    .lead-magnet-section {
        margin-top: 0;
        padding: 2.5rem 1.5rem;
    }

    .pdf-preview {
        flex-direction: column;
        text-align: center;
    }
}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1.00);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.35;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.9;
        transform: scaleY(1.15);
    }
}

/* ── GLASS STATS BAR ────────────────────────────── */
.glass-stats-section {
    position: relative;
    width: 100%;
    z-index: 100;
    padding: 0 1.5rem;
}

.glass-stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(6, 15, 30, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(206, 148, 46, 0.22);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 1.4rem 2.5rem;
    width: 100%;
    max-width: 1100px;
    margin: -4rem auto 1.5rem;
    /* Float overlapping the hero section beautifully */
    gap: 2.5rem;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}

.glass-stats-container:hover {
    transform: translateY(-2px);
    border-color: rgba(235, 218, 121, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 20px rgba(206, 148, 46, 0.1);
}

.glass-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

/* Vertical separator line between items */
.glass-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold-line), transparent);
}

.glass-stat-num {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    display: inline-block;
}

.glass-stat-item:hover .glass-stat-num {
    transform: scale(1.04);
}

.glass-stat-label {
    font-family: 'Cinzel', serif;
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: 0.4rem;
    transition: color 0.3s;
}

.glass-stat-item:hover .glass-stat-label {
    color: var(--white);
}

/* Responsiveness */
@media (max-width: 820px) {
    .glass-stats-container {
        flex-direction: column;
        padding: 1.6rem 1.5rem;
        gap: 1.4rem;
        margin: -2.5rem auto 1rem;
    }

    .glass-stat-item {
        width: 100%;
    }

    .glass-stat-item:not(:last-child)::after {
        right: 0;
        left: 0;
        bottom: -0.7rem;
        top: auto;
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--gold-line), transparent);
    }
}

/* =====================================================
   PREMIUM INTERACTIVE EFFECTS & MICRO-INTERACTIONS
   Elevating the site's touch-points to Dark Luxury Law
   ===================================================== */

/* ── BUTTON SHIMMER & GLOW EFFECTS ── */
.btn-primary,
.btn-ghost,
.call-button,
.call-to-action {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hover lift and golden bloom */
.btn-primary:hover,
.call-button:hover,
.call-to-action:hover {
    transform: translateY(-3px);
    background: var(--gold-pale) !important;
    box-shadow: 0 10px 25px rgba(6, 15, 30, 0.5), 0 0 20px rgba(235, 218, 121, 0.25);
    color: var(--navy) !important;
}

.btn-ghost:hover {
    transform: translateY(-3px);
    background: rgba(206, 148, 46, 0.08) !important;
    border-color: var(--gold-bright) !important;
    color: var(--white) !important;
    box-shadow: 0 10px 25px rgba(6, 15, 30, 0.4), 0 0 20px rgba(206, 148, 46, 0.15);
}

/* Premium Shimmer Glide Pseudo-element */
.btn-primary::before,
.btn-ghost::before,
.call-button::before,
.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.22) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

.btn-primary:hover::before,
.btn-ghost:hover::before,
.call-button:hover::before,
.call-to-action:hover::before {
    left: 150%;
    transition: left 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base styles for unstyled index hero buttons */
.btn-primary,
.btn-ghost {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    border-radius: 1px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: #fcd69d60;
    color: var(--cream);
    border: 1px solid rgba(252, 214, 157, 0.6);
}

.btn-ghost {
    background: transparent;
    color: var(--gold-bright);
    border: 1px solid var(--gold-line);
}

/* ── NAV LINK UNDERLINES ── */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100% !important;
    height: 1px;
    background: var(--gold-bright);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ── SERVICE CARDS ADVANCED MICRO-INTERACTIONS ── */
.service-card {
    transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--navy-card) !important;
    border-color: rgba(206, 148, 46, 0.45) !important;
    box-shadow: 0 25px 50px rgba(6, 15, 30, 0.65), 0 0 25px rgba(206, 148, 46, 0.08);
}

.service-card .card-icon {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s ease !important;
}

.service-card:hover .card-icon {
    transform: translateY(-5px) scale(1.08);
    color: var(--gold-bright) !important;
}

.service-card .card-link {
    transition: color 0.3s ease, gap 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── ACCORDION DETAILS INTERACTIVE ENHANCEMENTS ── */
.prestige-accordion {
    transition: background-color 0.4s, border-color 0.4s;
}

.prestige-accordion[open] {
    background-color: rgba(255, 255, 255, 0.01) !important;
    border-bottom-color: var(--gold) !important;
}

.prestige-accordion summary::after {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── ORNAMENT DIAMOND PULSE (BREATHING ALIVE STATE) ── */
.ornament-diamond {
    animation: diamondPulse 4s infinite ease-in-out;
}

@keyframes diamondPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: rotate(45deg) scale(0.9);
        filter: drop-shadow(0 0 0 rgba(206, 148, 46, 0));
    }

    50% {
        opacity: 0.95;
        transform: rotate(45deg) scale(1.15);
        filter: drop-shadow(0 0 8px var(--gold-bright));
    }
}

/* ── FORM FIELD GLOW ON FOCUS ── */
.form-field input,
.form-field textarea {
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--gold-bright) !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 0 15px rgba(235, 218, 121, 0.12);
}

/* ── PREMIUM CONTINUOUS GOLDEN SHIMMER FOR BUTTONS ── */
.btn-primary,
.call-button {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.call-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.28),
            transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    animation: goldenShimmer 5.5s infinite ease-in-out;
}

@keyframes goldenShimmer {
    0% {
        left: -150%;
    }

    24% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* ── SCROLL REVEAL STAGGER (NOSOTROS) ── */
.philo-item {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card {
    opacity: 0;
    transform: translateY(32px);
}

.philo-item.reveal-visible,
.value-card.reveal-visible {
    opacity: 1;
    transform: none;
}



/* ── FORM VALIDATION WARNINGS ── */
.form-error-msg {
    font-size: 0.76rem;
    color: #e25c5c;
    font-family: 'Lato', sans-serif;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: fieldShake 0.4s ease-in-out;
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #e25c5c !important;
    box-shadow: 0 0 10px rgba(226, 92, 92, 0.15) !important;
}

@keyframes fieldShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ── WELCOME BANNER SECTION ─────────────────────── */
.welcome-banner-section {
    padding: 5rem 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.welcome-banner-container {
    background: linear-gradient(135deg, rgba(12, 27, 50, 0.4) 0%, rgba(6, 15, 30, 0.75) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gold-line);
    padding: 4.5rem 5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    border-radius: 4px;
}

.welcome-banner-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(206, 148, 46, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.welcome-banner-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 1.8rem;
    display: inline-block;
}

.welcome-banner-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
}

.welcome-banner-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.8;
    color: var(--dim);
    max-width: 860px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.welcome-banner-text strong {
    color: var(--gold-bright);
    font-weight: 400;
}

.welcome-banner-divider {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    align-items: center;
}

.welcome-banner-dot {
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.5;
    animation: diamondPulse 4s infinite ease-in-out;
}

.welcome-banner-dot:nth-child(2) {
    animation-delay: 1s;
    opacity: 0.8;
    transform: rotate(45deg) scale(1.2);
}

.welcome-banner-dot:nth-child(3) {
    animation-delay: 2s;
}

/* ── HOME CONTACT SECTION ───────────────────────── */
.home-contact-section {
    padding: 6rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.home-contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
    align-items: center;
}

.home-contact-intro-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--gold-pale);
    margin: 2rem 0;
}

.home-contact-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.home-contact-feature {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-bullet {
    color: var(--gold);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.home-contact-feature h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.home-contact-feature p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dim);
    font-weight: 300;
}


/* ── HOME BLOG PREVIEW SECTION ─────────────────── */
.home-blog-section {
    padding: 6rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    margin: 3.5rem 0;
}

.placeholder-card {
    border-style: dashed !important;
    border-color: rgba(206, 148, 46, 0.15) !important;
    background: rgba(12, 27, 50, 0.2) !important;
    justify-content: center;
    min-height: 380px;
}

.placeholder-card .blog-card-content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.placeholder-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.placeholder-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--white);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.placeholder-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--dim2);
    margin-bottom: 2rem;
}

.placeholder-indicator {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-bright);
    border-bottom: 1px solid var(--gold-line);
    padding-bottom: 4px;
}

.home-blog-cta-container {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .home-contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .welcome-banner-section {
        padding: 4rem 1.5rem 1rem;
    }

    .welcome-banner-container {
        padding: 3rem 2rem;
    }

    .home-contact-section,
    .home-blog-section {
        padding: 4rem 1.5rem;
    }

    .home-contact-form-wrapper {
        padding: 2.5rem 1.5rem;
    }
}