/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #132415;
    /* Deep Forest Green */
    --color-primary-light: #1e3520;
    /* Lighter Forest Green for Cards */
    --color-primary-dark: #0b150c;
    /* Very Dark Green for backgrounds */
    --color-gold: #CAB472;
    /* Main Accent Gold */
    --color-gold-hover: #b8a162;
    /* Gold Hover State */
    --color-gold-light: rgba(202, 180, 114, 0.1);
    /* Translucent Gold */
    --color-white: #FFFFFF;
    --color-text-white: #F5F5F5;
    --color-text-muted: rgba(255, 255, 255, 0.7);

    /* Typography */
    --font-headings: 'Tenor Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects & Layout */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --box-shadow-gold: 0 8px 32px rgba(202, 180, 114, 0.15);
    --box-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
    --max-width-container: 1200px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    color: var(--color-white);
    font-weight: normal;
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: var(--transition-smooth);
}

/* Utility Layouts */
.container {
    width: 90%;
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 80px 0;
}

.grid {
    display: grid;
    gap: 40px;
}

.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--color-gold);
}

/* Common Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-primary);
    border: 1px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(202, 180, 114, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(202, 180, 114, 0.3);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
    border-bottom: none;
    transition: var(--transition-smooth);
}

.header-container {
    width: 90%;
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding-left: 420px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-container {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 2;
}

.logo-img {
    height: clamp(55px, 6vw, 75px);
    width: auto;
    transition: var(--transition-smooth);
    margin-top: 0;
}

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

.nav-link {
    font-family: var(--font-headings);
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: #FFFFFF;
    padding: 12px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-weight: 600;
}

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

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold);
    font-family: var(--font-headings);
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0;
    border: none;
    background: none;
}

.phone-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

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

.nav-menu li {
    position: relative;
}

.nav-link {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    padding: 10px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.65rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: rgba(19, 36, 21, 0.96);
    border: 1px solid rgba(202, 180, 114, 0.25);
    border-radius: 10px;
    width: auto;
    min-width: 260px;
    box-sizing: border-box;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu .dropdown-link {
    display: block;
    padding: 10px 16px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu .dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-menu .dropdown-link:hover {
    color: var(--color-gold);
    background-color: rgba(202, 180, 114, 0.12);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.practice-grid {
    grid-template-columns: repeat(3, 1fr);
}

.practice-card {
    display: block;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(202, 180, 114, 0.12);
    border-radius: 18px;
    padding: 30px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
    color: var(--color-white);
}

.practice-card:hover {
    transform: translateY(-6px);
    background-color: rgba(202, 180, 114, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

.practice-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background-color: rgba(202, 180, 114, 0.14);
    color: var(--color-gold);
    font-size: 1.5rem;
}

.practice-card h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.practice-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.practice-details {
    margin-top: 50px;
    display: grid;
    gap: 28px;
}

.practice-detail {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(202, 180, 114, 0.12);
    border-radius: 20px;
    padding: 30px;
}

.practice-detail h3 {
    margin-bottom: 18px;
    font-size: 1.4rem;
}

.practice-detail p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.practice-detail::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin-top: 24px;
    border-radius: 999px;
    background-color: var(--color-gold);
}

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

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 1.2rem;
    border: 1px solid rgba(202, 180, 114, 0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background-color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.phone-link span {
    display: none;
}

.phone-link:hover {
    background-color: var(--color-gold-light);
    border-color: var(--color-gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background-color: transparent !important;
    background-image: url('assets/fondo/LosAngeles_abogado_0.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll !important;
    background-blend-mode: normal !important;
    display: flex;
    align-items: center;
    padding-top: 90px;
    overflow: hidden;
}

.hero-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hero-content-container {
    position: relative;
    z-index: 2;
}

.hero-location,
.hero-title,
.hero-cta-wrapper {
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hero-content-container {
    width: 90%;
    max-width: var(--max-width-container);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
}

.hero-location {
    font-family: var(--font-headings);
    color: var(--color-gold);
    font-size: 0.9rem;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
    max-width: 800px;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    animation: fadeInUp 1.4s ease;
}

.btn-cta {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-gold);
    font-weight: 600;
    padding: 16px 36px;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-cta:hover {
    background-color: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(202, 180, 114, 0.3);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 1px solid rgba(202, 180, 114, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-icons a:hover {
    background-color: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-3px) rotate(8deg);
    border-color: var(--color-gold);
    box-shadow: 0 6px 15px rgba(202, 180, 114, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* ==========================================================================
   PROFILE SECTION
   ========================================================================== */
.profile-section {
    background-color: var(--color-primary);
    position: relative;
    border-top: 1px solid rgba(202, 180, 114, 0.1);
    border-bottom: 1px solid rgba(202, 180, 114, 0.1);
}

.profile-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img-frame {
    position: relative;
    padding: 15px;
    border: 1px solid rgba(202, 180, 114, 0.3);
    border-radius: var(--border-radius-md);
    background-color: rgba(19, 36, 21, 0.5);
    max-width: 380px;
}

.profile-img-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid var(--color-gold);
    border-radius: calc(var(--border-radius-md) + 4px);
    pointer-events: none;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.profile-img-frame:hover::before {
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    opacity: 1;
}

.profile-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    filter: brightness(0.95);
}

.profile-info-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.badge-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-gold);
    display: inline-block;
}

.badge-text {
    font-family: var(--font-headings);
    color: var(--color-gold);
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.profile-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ==========================================================================
   COMMITMENT & PILLARS SECTION
   ========================================================================== */
.excellence-section {
    background-color: var(--color-primary-dark);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.pillars-grid {
    margin-top: 20px;
}

.pillar-card {
    background-color: var(--color-primary);
    border: 1px solid rgba(202, 180, 114, 0.15);
    border-radius: var(--border-radius-md);
    padding: 35px;
    display: flex;
    gap: 25px;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.pillar-icon {
    font-size: 2.2rem;
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 5px;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
}

.pillar-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-white);
}

.pillar-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   FINIQUITO SIMULATOR SECTION (PREMIUM FRAMED DESIGN)
   ========================================================================== */
.simulator-section {
    background-color: var(--color-primary);
    position: relative;
    border-top: 1px solid rgba(202, 180, 114, 0.1);
    border-bottom: 1px solid rgba(202, 180, 114, 0.1);
}

/* Glassmorphism Outer Premium Frame */
.simulator-frame {
    background: linear-gradient(135deg, rgba(19, 36, 21, 0.8) 0%, rgba(11, 21, 12, 0.9) 100%);
    border: 2px solid var(--color-gold);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    box-shadow: var(--box-shadow-gold), var(--box-shadow-dark);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.simulator-frame::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed rgba(202, 180, 114, 0.3);
    border-radius: calc(var(--border-radius-lg) - 4px);
    pointer-events: none;
}

.simulator-tag {
    font-family: var(--font-headings);
    color: var(--color-gold);
    font-size: 0.85rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.simulator-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.simulator-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

.simulator-form {
    position: relative;
    z-index: 2;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--color-gold);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-prefix {
    position: absolute;
    left: 15px;
    color: var(--color-gold);
    font-family: var(--font-headings);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background-color: rgba(11, 21, 12, 0.6);
    border: 1px solid rgba(202, 180, 114, 0.4);
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(202, 180, 114, 0.2);
    background-color: rgba(11, 21, 12, 0.9);
}

/* Custom styling for select option dropdown */
.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.input-wrapper::after {
    /* Custom arrow for select */
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    color: var(--color-gold);
    pointer-events: none;
}

/* If input is not a select, remove the select arrow */
.input-wrapper:not(:has(select))::after {
    display: none;
}

.form-help {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Checkbox Style */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 10px;
    user-select: none;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-gold);
    border-radius: var(--border-radius-sm);
    background-color: rgba(11, 21, 12, 0.6);
    display: inline-block;
    position: relative;
    transition: var(--transition-smooth);
}

.checkbox-label input:checked+.checkbox-custom {
    background-color: var(--color-gold);
}

.checkbox-label input:checked+.checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--color-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--color-text-white);
}

.button-container {
    margin-top: 20px;
}

/* Results Container */
.results-container {
    margin-top: 50px;
    border-top: 1px solid rgba(202, 180, 114, 0.3);
    padding-top: 40px;
    display: none;
    /* Controlled via JS */
    animation: fadeIn 0.6s ease forwards;
}

.results-title {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 30px;
}

.results-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background-color: rgba(19, 36, 21, 0.6);
    border: 1px solid rgba(202, 180, 114, 0.2);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: var(--font-headings);
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-white);
}

.result-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.results-total-card {
    background-color: rgba(202, 180, 114, 0.08);
    border: 1px solid var(--color-gold);
    border-radius: var(--border-radius-md);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.total-label {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    color: var(--color-gold);
    letter-spacing: 1.5px;
}

.total-value {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(202, 180, 114, 0.2);
}

.disclaimer-box {
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--color-gold);
    padding: 15px 20px;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.disclaimer-box i {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-top: 3px;
}

.disclaimer-box p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.btn-whatsapp-results {
    background-color: #25D366;
    color: var(--color-white);
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    padding: 16px 32px;
}

.btn-whatsapp-results:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-results i {
    font-size: 1.2rem;
    margin-right: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* ==========================================================================
   GOOGLE REVIEWS CAROUSEL SECTION
   ========================================================================== */
.reviews-section {
    background-color: var(--color-primary-dark);
}

.grid-reviews {
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 50px;
}

.reviews-summary-card {
    background-color: var(--color-primary);
    border: 1px solid rgba(202, 180, 114, 0.15);
    border-radius: var(--border-radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.google-logo-wrapper {
    height: 35px;
    margin-bottom: 20px;
}

.google-logo {
    height: 100%;
    width: auto;
}

.rating-stars-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.rating-number {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-white);
}

.stars-gold {
    color: var(--color-gold);
    font-size: 1.3rem;
    display: flex;
    gap: 4px;
}

.reviews-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-headings);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.summary-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Carousel Track & Slides */
.reviews-carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    background-color: var(--color-primary);
    border: 1px solid rgba(202, 180, 114, 0.15);
    border-radius: var(--border-radius-md);
    padding: 45px;
    box-sizing: border-box;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-right: 15px;
}

.reviewer-meta {
    flex-grow: 1;
}

.reviewer-name {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 4px;
}

.reviewer-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars-gold-small {
    color: var(--color-gold);
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

.review-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.google-review-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.15);
}

.review-text {
    font-style: italic;
    color: var(--color-text-white);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(202, 180, 114, 0.3);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

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

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(202, 180, 114, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--color-gold);
    width: 24px;
    border-radius: 4px;
}

/* ==========================================================================
   MAP & CONTACT SECTION
   ========================================================================== */
.contact-map-section {
    background-color: var(--color-primary);
    border-top: 1px solid rgba(202, 180, 114, 0.15);
}

.grid-map-contact {
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: stretch;
}

.contact-details-card {
    background-color: var(--color-primary-dark);
    border: 1px solid rgba(202, 180, 114, 0.15);
    border-radius: var(--border-radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-intro {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-primary);
    border: 1px solid rgba(202, 180, 114, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text strong {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-gold);
    text-transform: uppercase;
}

.contact-text span,
.contact-text a {
    font-size: 0.95rem;
    color: var(--color-text-white);
}

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

.btn-whatsapp-contact {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid #25D366;
    width: 100%;
}

.btn-whatsapp-contact:hover {
    background-color: #25D366;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-contact i {
    font-size: 1.1rem;
    margin-right: 8px;
}

.map-container-wrapper {
    border: 1px solid rgba(202, 180, 114, 0.2);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    box-shadow: var(--box-shadow-dark);
}

.map-element {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* Custom dark styling for Leaflet controls & popups */
.leaflet-container {
    background-color: var(--color-primary-dark) !important;
}

.leaflet-bar a {
    background-color: var(--color-primary) !important;
    color: var(--color-gold) !important;
    border-bottom: 1px solid rgba(202, 180, 114, 0.2) !important;
}

.leaflet-bar a:hover {
    background-color: var(--color-gold) !important;
    color: var(--color-primary) !important;
}

.leaflet-popup-content-wrapper {
    background-color: var(--color-primary) !important;
    color: var(--color-text-white) !important;
    border: 1px solid var(--color-gold) !important;
    border-radius: var(--border-radius-sm) !important;
}

.leaflet-popup-tip {
    background-color: var(--color-primary) !important;
    border: 1px solid var(--color-gold) !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--color-primary-dark);
    padding: 60px 0;
    border-top: 1px solid rgba(202, 180, 114, 0.15);
}

.footer-logo {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.logo-img-footer {
    height: 100px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    transform: translateX(-12px);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.footer-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   FAMILY PRACTICE PAGE STYLES
   ========================================================================== */
.practice-page {
    padding-top: 90px;
}

.practice-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 90px;
    background: linear-gradient(135deg, rgba(11, 21, 12, 0.98) 0%, rgba(19, 36, 21, 0.92) 100%), url('assets/fondo/LosAngeles_abogado_0.png') center/cover no-repeat;
    overflow: hidden;
}

.practice-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(202, 180, 114, 0.18), transparent 38%);
    pointer-events: none;
}

.practice-hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.practice-hero-copy h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.9s ease both;
}

.practice-hero-copy p {
    font-size: 1.08rem;
    color: var(--color-text-muted);
    max-width: 620px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease both;
}

.practice-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeInUp 1.05s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(202, 180, 114, 0.24);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-white);
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.hero-badge i {
    color: var(--color-gold);
}

.practice-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    animation: fadeInUp 1.1s ease both;
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(202, 180, 114, 0.4);
}

.btn-secondary:hover {
    background: rgba(202, 180, 114, 0.12);
    color: var(--color-gold);
    transform: translateY(-3px);
}

.practice-hero-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(202, 180, 114, 0.18);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--box-shadow-gold);
    animation: floatCard 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.practice-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(202, 180, 114, 0.34);
}

.practice-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(202, 180, 114, 0.16);
    color: var(--color-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.practice-hero-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
}

.feature-list i {
    color: var(--color-gold);
}

.practice-section {
    padding: 90px 0;
    background-color: var(--color-primary-dark);
    position: relative;
}

.family-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.family-service-card {
    background: linear-gradient(145deg, rgba(19, 36, 21, 0.9), rgba(11, 21, 12, 0.95));
    border: 1px solid rgba(202, 180, 114, 0.15);
    border-radius: 18px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.family-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(202, 180, 114, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.family-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-gold);
    border-color: var(--color-gold);
}

.family-service-card:hover::before {
    transform: translateX(100%);
}

.service-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--color-gold);
    background: rgba(202, 180, 114, 0.12);
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.family-service-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.family-service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.process-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(202, 180, 114, 0.12);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.process-step .step-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background: var(--color-gold);
    font-family: var(--font-headings);
    margin-bottom: 18px;
}

.process-step h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.process-step p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.contact-cta-panel {
    background: linear-gradient(135deg, rgba(19, 36, 21, 0.95), rgba(11, 21, 12, 0.95));
    border: 1px solid rgba(202, 180, 114, 0.18);
    border-radius: 24px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: var(--box-shadow-gold);
}

.contact-cta-panel h2 {
    margin-bottom: 12px;
    font-size: 1.9rem;
}

.contact-cta-panel p {
    color: var(--color-text-muted);
    max-width: 620px;
}

@keyframes floatCard {

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

    50% {
        transform: translateY(-6px);
    }
}

/* ==========================================================================
   BLOG / SOCIAL STYLE PAGE
   ========================================================================== */
.blog-page-body {
    background-color: var(--color-primary-dark);
}

.blog-shell {
    padding-top: 120px;
}

.blog-hero {
    padding: 40px 0 80px;
    background: linear-gradient(135deg, rgba(11, 21, 12, 0.97), rgba(19, 36, 21, 0.95)), url('assets/fondo/LosAngeles_abogado_0.png') center/cover no-repeat;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.blog-profile-card,
.story-spotlight,
.post-card {
    animation: fadeInUp 0.9s ease both;
}

.blog-profile-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.048);
    border: 1px solid rgba(202, 180, 114, 0.16);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow-gold);
}

.profile-photo-wrapper {
    flex-shrink: 0;
}

.profile-photo {
    width: 230px;
    height: 230px;
    object-fit: cover;
    border-radius: 22px;
    border: 2px solid rgba(202, 180, 114, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.02);
}

.profile-info h1 {
    font-size: 2.1rem;
    margin: 6px 0 8px;
}

.profile-lead {
    color: var(--color-gold);
    font-family: var(--font-headings);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(202, 180, 114, 0.12);
    border: 1px solid rgba(202, 180, 114, 0.25);
    color: var(--color-text-white);
    font-size: 0.86rem;
}

.profile-story p {
    color: var(--color-text-muted);
    margin-bottom: 10px;
    line-height: 1.8;
}

.story-spotlight {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(202, 180, 114, 0.16);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: var(--box-shadow-dark);
}

.story-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.story-content {
    padding: 24px;
}

.story-content h2 {
    font-size: 1.35rem;
    margin: 10px 0 12px;
}

.story-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.social-feed-section {
    padding: 0 0 90px;
}

.story-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.story-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(202, 180, 114, 0.16);
    color: var(--color-text-white);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.story-pill:hover {
    transform: translateY(-3px);
    border-color: var(--color-gold);
}

.story-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(202, 180, 114, 0.16);
    color: var(--color-gold);
}

.featured-gallery {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    margin-bottom: 24px;
}

.featured-gallery-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(202, 180, 114, 0.16);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--box-shadow-dark);
    position: relative;
    box-shadow: 0 0 0 1px rgba(202, 180, 114, 0.12), 0 14px 36px rgba(0, 0, 0, 0.35);
}

.gallery-stage {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.gallery-main-image,
.gallery-thumb {
    width: 100%;
    display: block;
    object-fit: cover;
}

.gallery-stage {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.gallery-main-image {
    height: 320px;
    width: 100%;
    transition: transform 0.7s ease, opacity 0.7s ease;
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0;
    transform: translateX(40px) scale(1.02);
}

.gallery-main-image--overlay {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
}

.gallery-stage:hover .gallery-main-image {
    transform: scale(1.03);
}

.gallery-controls {
    position: absolute;
    inset: auto 14px 14px auto;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.gallery-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(11, 21, 12, 0.75);
    color: var(--color-gold);
    border: 1px solid rgba(202, 180, 114, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background: var(--color-gold);
    color: var(--color-primary);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 0;
}

.gallery-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(202, 180, 114, 0.3);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.gallery-dot.active {
    background: var(--color-gold);
    transform: scale(1.2);
}

.gallery-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(202, 180, 114, 0.25);
    border-radius: 22px;
}

.secondary-card {
    display: flex;
    flex-direction: column;
}

.gallery-thumb {
    height: 210px;
}

.gallery-caption {
    padding: 22px;
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-top: 10px;
    line-height: 1.5;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    border-radius: 20px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(19, 36, 21, 0.9), rgba(11, 21, 12, 0.95));
    border: 1px solid rgba(202, 180, 114, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
    box-shadow: var(--box-shadow-gold);
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(202, 180, 114, 0.16);
    color: var(--color-gold);
    font-family: var(--font-headings);
    font-size: 1rem;
}

.post-card h3 {
    font-size: 1.02rem;
    margin-bottom: 2px;
}

.post-card span {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.post-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(202, 180, 114, 0.15);
}

.post-card p,
.post-quote {
    color: var(--color-text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

.post-quote {
    padding-left: 14px;
    border-left: 3px solid var(--color-gold);
    font-style: italic;
    color: var(--color-text-white);
}

.post-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    color: var(--color-gold);
    font-size: 0.85rem;
}

.post-actions span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Tablet View */
@media (max-width: 992px) {
    .practice-hero-content {
        grid-template-columns: 1fr;
    }

    .practice-hero-card {
        max-width: 560px;
    }

    .family-services-grid,
    .process-steps,
    .feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-hero-grid {
        grid-template-columns: 1fr;
    }

    .blog-profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .container {
        padding: 60px 0;
    }

    .grid-2-cols,
    .grid-reviews,
    .grid-map-contact,
    .practice-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-info-container {
        padding-left: 0;
        text-align: center;
    }

    .section-badge {
        justify-content: center;
    }

    .profile-img-frame {
        max-width: 320px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .map-container-wrapper {
        min-height: 350px;
    }

    .map-element {
        min-height: 350px;
    }
}

/* Mobile Navigation Toggle styling */
@media (max-width: 768px) {
    .header-container {
        height: 75px;
        position: relative;
        padding-left: 16px;
        padding-right: 78px;
    }

    .header-right {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 1001;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        margin-left: auto;
    }

    .menu-toggle.active {
        position: fixed;
        top: 20px;
        right: 16px;
        z-index: 1002;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 900;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(86vw, 320px);
        max-width: 100%;
        height: 100dvh;
        max-height: 100vh;
        background: linear-gradient(180deg, rgba(19, 36, 21, 0.98), rgba(9, 17, 11, 0.99));
        backdrop-filter: blur(12px);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.3);
        padding-top: 84px;
        overscroll-behavior: contain;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: start;
        justify-content: start;
        height: auto;
        padding: 0 14px 24px;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        padding: 12px 10px;
        border: 1px solid rgba(202, 180, 114, 0.15);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        white-space: normal;
        line-height: 1.3;
    }

    .nav-menu .nav-link.active,
    .nav-menu .nav-link:hover {
        color: var(--color-gold);
        border-color: rgba(202, 180, 114, 0.35);
        background: rgba(202, 180, 114, 0.08);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        box-shadow: none;
        width: 100%;
        padding: 8px 0 0;
        margin-top: 8px;
        border-radius: 10px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dropdown .dropdown-link {
        padding: 10px 8px;
        font-size: 0.84rem;
        width: 100%;
        min-height: 44px;
        border: 1px solid rgba(202, 180, 114, 0.12);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-container {
        left: 16px;
    }



    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* Menu Hamburger active transition */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }


}

/* Small-phone override for 400px/480px layouts */
@media (max-width: 480px) {

    html,
    body {
        overflow-x: hidden;
    }

    .header-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 70px;
        padding: 12px 14px;
        gap: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-container {
        position: static;
        transform: none;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
    }

    .logo-img {
        max-width: 100%;
        object-fit: contain;
    }

    .header-right {
        position: static;
        transform: none;
        margin-left: auto;
        gap: 8px;
    }



    .menu-toggle {
        width: 22px;
        height: 18px;
    }

    .nav-menu {
        width: min(84vw, 280px);
        padding-top: 78px;
    }

    .nav-menu ul {
        grid-template-columns: 1fr;
        padding: 0 12px 18px;
        gap: 8px;
    }

    .nav-link {
        justify-content: center;
        min-height: 48px;
        font-size: 0.9rem;
        padding: 10px 8px;
        line-height: 1.3;
    }

    .dropdown-menu {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dropdown .dropdown-link {
        min-height: 42px;
        font-size: 0.82rem;
    }

    .hero {
        min-height: 100vh;
        padding-top: 84px;
    }

    .hero-content-container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px 40px;
    }

    .hero-location {
        font-size: 0.72rem;
        letter-spacing: 3px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 7.6vw, 2.1rem);
        line-height: 1.15;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-cta-wrapper {
        align-items: stretch;
        gap: 18px;
        width: 100%;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .social-icons {
        gap: 12px;
        flex-wrap: wrap;
    }



    .social-icons a {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Portrait View */
@media (max-width: 576px) {
    .blog-shell {
        padding-top: 100px;
    }

    .blog-hero {
        padding: 20px 0 50px;
    }

    .blog-profile-card {
        padding: 22px;
    }

    .profile-photo {
        width: 100%;
        max-width: 220px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .feed-grid,
    .family-services-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

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

    .hero-location {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .simulator-frame {
        padding: 35px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .results-cards {
        grid-template-columns: 1fr;
    }

    .results-total-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .total-value {
        font-size: 1.8rem;
    }

    .carousel-slide {
        padding: 25px;
    }

    .review-text {
        font-size: 0.95rem;
    }

    .reviews-summary-card {
        padding: 25px;
    }

    .contact-details-card {
        padding: 25px;
    }

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

    .header-container {
        padding-left: 16px;
        padding-right: 16px;
    }



    .nav-menu ul {
        padding: 18px 16px;
        gap: 10px;
    }

    .nav-link {
        padding: 10px 0;
        font-size: 1rem;
        text-align: left;
    }

    .dropdown-menu {
        margin-top: 4px;
        padding: 10px 0;
    }

    .dropdown .dropdown-link {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Ajustes de logos solicitados */
@media (max-width: 768px) {
    .logo-img {
        height: clamp(75px, 12vw, 90px) !important;
    }

    .logo-img-footer {
        height: 70px !important;
        width: auto !important;
    }

    /* Corrección del espaciado superior al agrandar el logo */
    .practice-page {
        padding-top: 220px !important;
    }

    .blog-shell {
        padding-top: 220px !important;
    }
}