@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-hsl: 135, 70%, 35%; /* Vibrante Esmeralda (Actualizado) */
    --accent-hsl: 350, 85%, 50%;    /* Rojo Imperial Intenso */
    --gold-hsl: 45, 100%, 50%;    /* Sunlight Gold */
    --deep-green-hsl: 135, 65%, 15%; /* Verde Institucional Profundo */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 30px 60px rgba(0,0,0,0.4);
}

body {
    font-family: 'Outfit', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: hsla(var(--deep-green-hsl), 1); /* Unified Background Flow */
}

* {
    max-width: 100%;
}

.text-accent { color: hsla(var(--accent-hsl), 1) !important; }
.text-gold { color: hsla(var(--gold-hsl), 1) !important; }
.text-primary { color: hsla(var(--primary-hsl), 1) !important; }

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.glass-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1), 0 0 20px hsla(var(--gold-hsl), 0.2);
    border-color: hsla(var(--gold-hsl), 0.3);
}

/* Navigation Overhaul */
/* Floating Notification Pill */
/* Premium Floating Alert (Informative window) */
.notif-alert-container {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 2100;
    width: min(420px, calc(100vw - 24px));
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(40px, 0, 0) scale(0.98);
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.notif-alert-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
}

.notif-alert-box {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--notif-accent, #dc3545) 14%, white) 0%, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fff8f4 100%);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0,0,0,0.2);
    border: 1px solid rgba(14,23,38,0.06);
    overflow: hidden;
}

.notif-alert-box.has-preview {
    position: relative;
}

.notif-alert-header {
    background: linear-gradient(135deg, var(--notif-accent, hsla(var(--accent-hsl), 1)) 0%, color-mix(in srgb, var(--notif-accent, #dc3545) 72%, #111827) 100%);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.notif-alert-media {
    position: relative;
    padding: 14px 14px 0;
}

.notif-media-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}

.notif-alert-media img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

.notif-media-zoom {
    position: absolute;
    right: 28px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.notif-alert-body {
    padding: 18px 18px 20px;
}

.notif-title-trigger {
    display: block;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.notif-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--notif-accent, #dc3545);
    background: color-mix(in srgb, var(--notif-accent, #dc3545) 10%, white);
}

.notif-alert-title {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
}

.notif-title-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--notif-accent, #dc3545);
}

.notif-alert-body p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #4b5563;
}

.notif-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.notif-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--notif-accent, #dc3545) 0%, color-mix(in srgb, var(--notif-accent, #dc3545) 78%, #111827) 100%);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--notif-accent, #dc3545) 26%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notif-alert-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px color-mix(in srgb, var(--notif-accent, #dc3545) 34%, transparent);
}

.notif-alert-btn-secondary {
    color: #111827;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.notif-alert-btn-secondary:hover {
    color: #111827;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.notif-preview-modal .modal-dialog {
    max-width: min(1100px, calc(100% - 2rem));
}

.notif-preview-content {
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--notif-accent, #dc3545) 10%, white) 0%, transparent 30%),
        linear-gradient(180deg, #fffdf8 0%, #fff 100%);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.28);
}

.notif-preview-header {
    padding: 1.25rem 1.5rem 0.5rem;
    background: linear-gradient(135deg, var(--notif-accent, #dc3545) 0%, color-mix(in srgb, var(--notif-accent, #dc3545) 70%, #111827) 100%);
    color: #fff;
}

.notif-preview-body {
    padding: 1.5rem;
}

.notif-preview-image-wrap {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.notif-preview-image {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    display: block;
    background: #f8fafc;
}

.notif-preview-copy {
    padding: 0.25rem 0;
}

.notif-preview-title {
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    line-height: 1.05;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.notif-preview-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    white-space: pre-line;
}

.close-alert {
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.close-alert:hover {
    transform: rotate(90deg);
    color: #ffd700;
}

/* Solid White Fixed Header */
.navbar {
    background: #ffffff !important;
    padding: 0.8rem 1.5rem;
    transition: all 0.4s ease;
    z-index: 1050;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-bottom: 4px solid hsla(var(--primary-hsl), 1);
    border-radius: 0 !important;
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    margin: 0 !important;
}

.navbar.scrolled {
    padding: 0.5rem 1.5rem;
    background: #ffffff !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.navbar-brand {
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    margin-right: 30px;
}

.navbar-brand img {
    height: 70px;
    transition: all 0.4s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 60px;
}


.navbar .nav-link {
    color: #333 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: hsla(var(--primary-hsl), 1) !important;
}

.navbar.scrolled .nav-link {
    color: #333 !important;
}

.navbar.scrolled .nav-link:hover {
    color: hsla(var(--primary-hsl), 1) !important;
}

/* Advanced Hero Slider - Ken Burns & Glass */
.slider-hero {
    height: 95vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active { opacity: 1; z-index: 1; }

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    transition: transform 10s linear;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    padding-top: 230px; /* Increased clearance for top bars */
    max-width: 900px;
    color: #fff;
}

.header-badge {
    display: inline-block;
    padding: 8px 18px;
    background: hsla(var(--accent-hsl), 0.85); /* Slightly translucent */
    backdrop-filter: blur(5px);
    color: #fff;
    border-radius: 50px; /* Pill shape for consistency */
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.slide.active .header-badge { opacity: 1; transform: translateY(0); }

.slide-title {
    font-size: 3.8rem;
    font-weight: 950;
    line-height: 1.1;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    letter-spacing: -3px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.slide.active .slide-title { opacity: 1; transform: translateY(0); }

.slide-p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 45px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    max-width: 650px;
}

.slide.active .slide-p { opacity: 1; transform: translateY(0); }

.slide h6 {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    color: hsl(var(--gold-hsl));
    margin-bottom: 20px;
}

.slide h3 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

/* Premium Buttons */
.btn-danger {
    background: linear-gradient(135deg, hsl(var(--accent-hsl)), #b71c1c);
    border: none;
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px !important;
    padding: 12px 30px !important;
}

.btn-danger:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.5);
    background: linear-gradient(135deg, #f44336, hsl(var(--accent-hsl)));
    color: #fff !important;
}

.btn-style {
    background: hsl(var(--accent-hsl));
    color: #fff;
    font-weight: 700;
    padding: 18px 45px;
    border-radius: 50px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    box-shadow: 0 12px 24px rgba(211, 47, 47, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    text-decoration: none;
}

.btn-style:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.4);
    background: #e53935;
    color: #fff;
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.title-style {
    font-weight: 800;
    font-size: 3.5rem;
    color: hsl(var(--primary-hsl));
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.title-sub {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Niveles Decor */
.nivel-card {
    position: relative;
    padding: 40px;
}

.nivel-card .num {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    line-height: 1;
}

/* Video Card Premium */
.video-card {
    border-radius: 24px;
    padding: 15px;
    background: #fff;
    box-shadow: var(--shadow-premium);
}

.video-thumb {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

/* Modern Architectural Footer */
.footer-main {
    background: hsla(var(--deep-green-hsl), 1);
    color: #fff;
    padding: 120px 0 40px;
    position: relative;
    border-top: 8px solid hsl(var(--gold-hsl));
    z-index: 1;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: hsla(var(--deep-green-hsl), 1);
    transform: skewY(-2deg);
    z-index: -1;
}

.footer-col h5 {
    font-weight: 800;
    margin-bottom: 35px;
    color: hsl(var(--gold-hsl));
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: hsl(var(--accent-hsl));
}

.section-space-light {
    background: #ffffff;
}

.section-space-grey {
    background: #fdfdfd;
}

.section-space-tint {
    background: linear-gradient(135deg, rgba(26, 92, 26, 0.02), rgba(26, 92, 26, 0.05));
}

.footer-link {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-link:hover {
    color: hsl(var(--gold-hsl)) !important;
    transform: translateX(10px);
}

.social-circle {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-circle:hover {
    background: hsl(var(--accent-hsl));
    color: #fff;
    transform: translateY(-8px) rotate(360deg);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.copy-text {
    opacity: 0.6;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Animations using AOS-like keyframes or just helper classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Premium Floating Modal (Popups) */
.modal-premium {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 3000;
    background: #fff;
    backdrop-filter: blur(30px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 50px 150px rgba(0,0,0,0.6);
    width: 90%;
    max-width: 600px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-premium.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-premium-header {
    background: linear-gradient(135deg, hsla(var(--primary-hsl), 1), hsla(var(--deep-green-hsl), 1));
    color: #fff;
    padding: 30px 45px;
    position: relative;
    text-align: center;
}

.modal-premium-header h4 {
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}

.modal-premium-body {
    padding: 45px;
    text-align: center;
}

.modal-premium-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 35px;
    border-radius: 25px;
    background: #fdfdfd;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.close-premium-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 2rem;
    transition: all 0.4s;
    line-height: 1;
}

.close-premium-modal:hover {
    color: #fff;
    transform: rotate(180deg) scale(1.2);
}

.modal-premium-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s;
}

.modal-premium-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modern Institutional Identity (V3.1 - Refined) */
.section-identity {
    background: #007A33;
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 150, 75, 1) 0%, rgba(0, 100, 40, 1) 90.2%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 160px 0; /* Padding allowing seamless mask at bottom */
}

.section-identity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    pointer-events: none;
}

.badge-institutional {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    display: inline-block;
}

.badge-institutional-large {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #0b2e13;
    border: 2px solid rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 10px 30px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.text-modern-title {
    font-weight: 900;
    letter-spacing: -1px;
    color: #fff;
    font-size: 3.2rem;
    line-height: 1.2;
}

.text-gold-accent {
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.crest-hero-container {
    position: relative;
    padding: 40px;
}

.crest-hero-container img {
    height: 180px;
    filter: drop-shadow(0 0 40px rgba(0, 255, 100, 0.15));
    transition: all 0.5s;
    z-index: 2;
    position: relative;
}

.border-glow {
    border: 2px solid transparent; /* Prepare for potential hover effect */
}

.ornament {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    opacity: 0.5;
}

.orn-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.orn-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.orn-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.orn-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.motto-v3 {
    font-weight: 200;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
}

.motto-v3 b {
    color: #fff;
    font-weight: 800;
}

/* Seamless Wave Transition */
.seamless-divider {
    position: absolute;
    bottom: -1px; /* Prevent sub-pixel gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.seamless-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* Mission & Vision Modern Cards (V2 Flotante) */
.section-mission-vision {
    background: #f8f9fa;
}

.shadow-floating {
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05), 0 20px 40px rgba(0,0,0,0.05) !important;
}

.mv-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.mv-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: hsla(var(--primary-hsl), 1);
    transition: all 0.4s ease-out;
}

.mv-card:nth-child(even)::after {
    background: hsla(var(--accent-hsl), 1);
}

.mv-card:hover::after { height: 100%; }

.mv-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
}

.mv-icon-bg {
    width: 70px;
    height: 70px;
    background: rgba(0, 150, 100, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: hsla(var(--primary-hsl), 1);
}

.mv-card:nth-child(even) .mv-icon-bg {
    background: rgba(255, 50, 50, 0.05);
    color: hsla(var(--accent-hsl), 1);
}

/* Side Scroll Pointer */
.side-scroll-pointer {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.side-scroll-pointer .dot {
    width: 12px;
    height: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.side-scroll-pointer .dot.active {
    background: hsla(var(--primary-hsl), 1);
    transform: scale(1.4);
    box-shadow: 0 0 10px hsla(var(--primary-hsl), 0.5);
    border-color: #fff;
}

.side-scroll-pointer .dot:hover {
    transform: scale(1.2);
    background: hsla(var(--accent-hsl), 1);
}

/* --- Premium Video Gallery (Pristine White) --- */
.video-card-premium {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.video-thumb {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-thumb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
}

.platform-youtube { background: #ffe5e5; color: #ff0000; }
.platform-facebook { background: #e7f0ff; color: #1877f2; }
.platform-tiktok { background: #f1f1f1; color: #000; }

.video-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 0;
}

/* --- Premium Solid News --- */
.news-card-premium {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.25);
}

.news-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa; /* Light grey for transparent PNGs */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.news-img-wrapper img {
    width: 100%;
    height: 240px;
    object-fit: contain; /* Prevent cropping of logos */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 10px; /* Give logos space to breathe */
}

.news-card-premium:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

.news-date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
}

.news-date-badge .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-top: 2px;
}

.news-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.4;
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.read-more-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.read-more-link i {
    transition: transform 0.3s;
}

.read-more-link:hover {
    color: #fff;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

/* --- Premium Footer --- */
.footer-premium {
    background: #02120a;
    background-image: radial-gradient(circle at 90% 10%, rgba(10, 50, 25, 0.8) 0%, rgba(2, 18, 10, 1) 90%);
    padding: 80px 0 0 0;
    color: #fff;
    border-top: 4px solid #ffd700;
}

.footer-logo {
    width: 60px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.text-gold {
    color: #ffd700;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.social-btn:hover {
    background: #ffd700;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.footer-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ffd700;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a i {
    font-size: 0.7rem;
    margin-right: 10px;
    color: #ffd700;
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact li {
    display: flex;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contact .icon-box {
    color: #ffd700;
    font-size: 1.2rem;
    margin-right: 15px;
    min-width: 25px;
}

.fb-widget-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
}

.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .copy-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-ornament {
    position: absolute;
    border: 2px solid rgba(255, 215, 0, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.orn-1 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
}

.orn-2 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -200px;
}

@media (max-width: 991px) {
    .side-scroll-pointer { display: none; }
    .mission-text { font-size: 1.1rem; }
}

/* ========== Responsive: móviles y tablets ========== */

/* Contenido bajo barra fija (todas las páginas públicas salvo inicio con slider a pantalla completa) */
body.page-interior {
    padding-top: 88px;
}

.slider-hero {
    margin-top: 0;
}

/* Tipografía fluida y texto que no desborda */
html {
    -webkit-text-size-adjust: 100%;
}

p, .lead, blockquote {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Listas de contenido: no aplicar a la barra de navegación (rompía una letra por línea) */
main li,
section li,
article li,
.card li,
.footer-premium li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.navbar-nav > .nav-item > .nav-link {
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

.navbar-nav .dropdown-item {
    overflow-wrap: anywhere;
    white-space: normal;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* iframes embebidos (videos): ancho completo del contenedor */
iframe {
    max-width: 100%;
}

/* En escritorio Bootstrap oculta el toggler; no forzar display:flex aquí (anulaba esa regla). */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-toggler.nav-menu-btn {
        display: none !important;
    }
}

/* Menú móvil: icono hamburguesa (tres barras → X al abrir) */
@media (max-width: 991.98px) {
    .navbar .nav-menu-btn {
        width: 48px;
        height: 48px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: hsla(var(--primary-hsl), 0.08) !important;
        transition: background 0.25s ease;
    }

    .navbar .nav-menu-btn:hover {
        background: hsla(var(--primary-hsl), 0.15) !important;
    }

    .navbar .nav-menu-btn:focus {
        box-shadow: 0 0 0 3px hsla(var(--primary-hsl), 0.35);
    }
}

.navbar .nav-menu-btn .navbar-toggler-icon {
    display: none;
}

.nav-menu-bars {
    width: 22px;
    height: 16px;
    position: relative;
    display: block;
}

.nav-menu-bar {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #1a1a1a;
    transition: transform 0.3s ease, opacity 0.25s ease, top 0.3s ease;
}

.nav-menu-bar:nth-child(1) { top: 0; }
.nav-menu-bar:nth-child(2) { top: 7px; }
.nav-menu-bar:nth-child(3) { top: 14px; }

.navbar .nav-menu-btn:not(.collapsed) .nav-menu-bar:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.navbar .nav-menu-btn:not(.collapsed) .nav-menu-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar .nav-menu-btn:not(.collapsed) .nav-menu-bar:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0 !important;
    }

    .navbar-brand img {
        height: 52px !important;
        max-height: 52px;
    }

    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem 0 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .navbar-nav .nav-link {
        padding: 0.65rem 0 !important;
        font-size: 0.95rem;
    }

    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 0.5rem;
    }

    .navbar-nav .btn.rounded-pill {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Secciones: menos padding vertical en pantallas pequeñas */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 56px 0;
    }

    .footer-premium {
        padding-top: 48px;
    }

    .title-style {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .slide-content {
        padding-left: 5% !important;
        padding-right: 5% !important;
        padding-top: 120px !important;
        max-width: 100%;
    }

    .slide-title {
        font-size: clamp(1.75rem, 7vw, 2.4rem) !important;
        letter-spacing: -1px;
    }

    .slide h3 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }

    .slide-p {
        font-size: clamp(1rem, 3.5vw, 1.2rem) !important;
        margin-bottom: 1.5rem;
    }

    .slider-hero {
        height: min(92vh, 720px);
    }

    .text-modern-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .notif-alert-container {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }
    .notif-alert-title {
        font-size: 1.2rem;
    }
}

/* Display de Bootstrap: escalado en móvil */
@media (max-width: 575.98px) {
    .notif-alert-container {
        top: 82px;
    }
    .notif-alert-media img {
        max-height: 220px;
    }
    .notif-media-zoom {
        right: 22px;
        bottom: 12px;
        font-size: 0.72rem;
    }
    .notif-preview-body {
        padding: 1rem;
    }
    .notif-preview-title {
        font-size: 1.5rem;
    }
    .display-1 { font-size: clamp(2rem, 9vw, 2.75rem) !important; }
    .display-2 { font-size: clamp(1.85rem, 8vw, 2.5rem) !important; }
    .display-3 { font-size: clamp(1.65rem, 7vw, 2.15rem) !important; }
    .display-4 { font-size: clamp(1.5rem, 6.5vw, 1.9rem) !important; }
    .display-5 { font-size: clamp(1.35rem, 6vw, 1.65rem) !important; }
    .display-6 { font-size: clamp(1.2rem, 5vw, 1.45rem) !important; }

    .fs-1 { font-size: calc(1.25rem + 1.2vw) !important; }
    .fs-2 { font-size: calc(1.15rem + 1vw) !important; }
    .fs-3 { font-size: calc(1.1rem + 0.8vw) !important; }
    .fs-4 { font-size: 1.05rem !important; }
    .fs-5 { font-size: 1rem !important; }
}

/* Galería de videos: contenedor anidado (video-thumb + video-container) */
.video-thumb .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0 !important;
}

.video-thumb .video-container iframe,
.video-thumb .video-container .tiktok-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Utilidad: ancho máximo legible en párrafos largos */
.max-w-readable {
    max-width: 65ch;
}

@media (max-width: 575.98px) {
    /* Bloques con altura fija en inicio / galería */
    .gallery-item-studio {
        min-height: 260px !important;
    }

    .pillar-img-box {
        height: 220px !important;
    }

    .welcome-luxury-grid .director-img-wrapper img {
        min-height: 280px !important;
    }

    .btn-xl {
        font-size: 0.95rem;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* ========== Widget FAQ / consultas (sin IA de pago) ========== */
.esmeralda-faq-root {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1090;
    font-family: 'Outfit', system-ui, sans-serif;
}

body.esmeralda-faq-open {
    overflow: hidden;
}

.esmeralda-faq-launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem 0.65rem 0.85rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, hsl(135, 70%, 32%) 0%, hsl(135, 65%, 22%) 100%);
    box-shadow:
        0 4px 20px rgba(0, 77, 35, 0.45),
        0 0 0 2px rgba(255, 193, 7, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esmeralda-faq-launcher:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 28px rgba(0, 77, 35, 0.5),
        0 0 0 2px rgba(255, 193, 7, 0.55);
}

.esmeralda-faq-launcher:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .esmeralda-faq-launcher {
        animation: esmeralda-faq-pulse 3s ease-in-out infinite;
    }
}

@keyframes esmeralda-faq-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 77, 35, 0.45), 0 0 0 2px rgba(255, 193, 7, 0.35); }
    50% { box-shadow: 0 6px 26px rgba(0, 107, 45, 0.55), 0 0 0 3px rgba(255, 193, 7, 0.5); }
}

.esmeralda-faq-launcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.esmeralda-faq-panel {
    position: fixed;
    inset: 0;
    z-index: 1091;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    background: rgba(2, 18, 10, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.esmeralda-faq-panel:not([hidden]) {
    display: flex;
}

.esmeralda-faq-panel[hidden] {
    display: none;
}

.esmeralda-faq-panel-inner {
    width: 100%;
    max-width: 420px;
    max-height: min(88vh, 640px);
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    border-radius: 1.35rem;
    box-shadow:
        0 -8px 40px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(0, 107, 45, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.esmeralda-faq-panel.is-open .esmeralda-faq-panel-inner {
    transform: translateY(0) scale(1);
}

.esmeralda-faq-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    background: linear-gradient(135deg, hsl(135, 70%, 30%) 0%, hsl(135, 60%, 18%) 100%);
    color: #fff;
    border-bottom: 3px solid #ffc107;
}

.esmeralda-faq-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.esmeralda-faq-sub {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    opacity: 0.88;
    font-weight: 600;
}

.esmeralda-faq-close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.esmeralda-faq-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.esmeralda-faq-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 120px;
    max-height: 42vh;
    scroll-behavior: smooth;
}

.esmeralda-faq-msg {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    align-items: flex-end;
}

.esmeralda-faq-msg-user {
    flex-direction: row-reverse;
}

.esmeralda-faq-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #006b2d, #004d20);
    color: #ffc107;
    font-size: 0.65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.esmeralda-faq-bubble {
    max-width: calc(100% - 2.5rem);
    padding: 0.65rem 0.85rem;
    border-radius: 1rem 1rem 1rem 0.35rem;
    background: #fff;
    border: 1px solid rgba(0, 107, 45, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    line-height: 1.45;
    color: #334155;
}

.esmeralda-faq-msg-user .esmeralda-faq-bubble-user {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: rgba(0, 107, 45, 0.2);
    border-radius: 1rem 1rem 0.35rem 1rem;
}

.esmeralda-faq-bubble p {
    margin: 0 0 0.5rem;
}

.esmeralda-faq-bubble p:last-child {
    margin-bottom: 0;
}

.esmeralda-faq-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: hsl(135, 70%, 28%);
    text-decoration: none;
}

.esmeralda-faq-link:hover {
    text-decoration: underline;
}

.esmeralda-faq-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.5rem 0 0.35rem;
}

.esmeralda-faq-news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(0, 107, 45, 0.06);
    border: 1px solid rgba(0, 107, 45, 0.12);
    text-decoration: none;
    color: #0f3d24;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.3;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.esmeralda-faq-news-item:hover {
    background: rgba(0, 107, 45, 0.12);
    border-color: rgba(0, 107, 45, 0.28);
    color: #004d20;
    transform: translateX(2px);
}

.esmeralda-faq-news-item i {
    flex-shrink: 0;
    font-size: 0.65rem;
    opacity: 0.55;
}

.esmeralda-faq-news-title {
    text-align: left;
}

.esmeralda-faq-secondary-intro {
    font-size: 0.82rem !important;
    font-weight: 700;
    color: #006b2d !important;
    margin-bottom: 0.35rem !important;
}

.esmeralda-faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1rem 0.65rem;
}

.esmeralda-faq-chip {
    border: 1px solid rgba(0, 107, 45, 0.2);
    background: rgba(0, 107, 45, 0.06);
    color: #0f3d24;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.65rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.esmeralda-faq-chip:hover {
    background: rgba(0, 107, 45, 0.12);
    border-color: rgba(0, 107, 45, 0.35);
}

.esmeralda-faq-form {
    display: flex;
    gap: 0.4rem;
    padding: 0 1rem 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
}

.esmeralda-faq-input {
    flex: 1;
    border: 1px solid rgba(0, 107, 45, 0.2);
    border-radius: 100px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    outline: none;
}

.esmeralda-faq-input:focus {
    border-color: #006b2d;
    box-shadow: 0 0 0 3px rgba(0, 107, 45, 0.15);
}

.esmeralda-faq-send {
    width: 2.65rem;
    height: 2.65rem;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #006b2d, #004d20);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s;
}

.esmeralda-faq-send:hover {
    transform: scale(1.05);
}

.esmeralda-faq-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0 1rem 0.75rem;
}

.esmeralda-faq-wa,
.esmeralda-faq-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.esmeralda-faq-wa {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.esmeralda-faq-wa:hover {
    color: #fff;
    transform: translateY(-1px);
}

.esmeralda-faq-wa-muted {
    background: #64748b;
    box-shadow: none;
    font-size: 0.8rem;
}

.esmeralda-faq-mail {
    background: #fff;
    color: #0f172a;
    border: 2px solid rgba(0, 107, 45, 0.25);
}

.esmeralda-faq-mail:hover {
    color: #006b2d;
    border-color: #006b2d;
}

.esmeralda-faq-footnote {
    margin: 0;
    padding: 0.5rem 1rem 1rem;
    font-size: 0.68rem;
    color: #64748b;
    text-align: center;
    line-height: 1.35;
}

@media (max-width: 575.98px) {
    .esmeralda-faq-root {
        bottom: 1rem;
        right: 1rem;
    }

    .esmeralda-faq-launcher-text {
        display: none;
    }

    .esmeralda-faq-launcher {
        padding: 0.75rem;
        border-radius: 50%;
        width: 3.35rem;
        height: 3.35rem;
        justify-content: center;
    }

    .esmeralda-faq-panel {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .esmeralda-faq-panel-inner {
        max-width: none;
        max-height: 92vh;
        border-radius: 1.25rem 1.25rem 0 0;
        margin-top: auto;
    }

    .esmeralda-faq-body {
        max-height: 38vh;
    }
}

@media (min-width: 992px) {
    .esmeralda-faq-panel {
        padding: 1.5rem;
        align-items: flex-end;
        justify-content: flex-end;
    }
}

/* Contacto: mapa embebido */
.contact-location-card {
    border: 1px solid rgba(0, 107, 45, 0.08);
}

.contact-location-address {
    max-width: 720px;
    line-height: 1.6;
}

.contact-location-map-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
    height: 45vh;
    max-height: 420px;
    background: #e8f5e9;
}

.contact-location-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.footer-maps-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffd700 !important;
    margin-top: 0.35rem;
}

.footer-maps-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* ========== Responsive hardening: shared fixes for public pages ========== */
html {
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
}

.navbar > .container-fluid {
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: min(440px, 44vw);
}

.navbar-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.navbar-collapse {
    min-width: 0;
}

.page-header {
    margin-top: 0 !important;
}

.slider-hero {
    min-height: 620px;
}

.slide-content {
    width: min(900px, calc(100% - 2rem));
}

.slide-title {
    font-size: clamp(2.5rem, 4.8vw, 4.25rem);
}

.slide-p {
    font-size: clamp(1.05rem, 1.65vw, 1.45rem);
}

body.page-home .section-identity-perfected .display-4,
body.page-home .section-identity-perfected .display-6,
body.page-home .section-identity-perfected .motto-text-refined,
body.page-home .welcome-text-premium,
body.page-home .signature-info .fs-4,
body.page-home .section-propuesta-luxury .fs-4,
body.page-home .section-padding .display-3,
body.page-home .section-padding .display-4 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.page-home .section-identity-perfected .display-4 {
    font-size: clamp(2rem, 6vw, 3.6rem);
}

body.page-home .section-identity-perfected .display-6 {
    font-size: clamp(1.35rem, 3vw, 2.1rem);
}

body.page-home .identity-logo-box-refined img {
    max-height: clamp(150px, 24vw, 220px);
}

body.page-home .welcome-luxury-grid .director-img-wrapper img {
    min-height: clamp(340px, 48vw, 600px);
}

body.page-home .pillar-img-box {
    height: clamp(220px, 30vw, 320px) !important;
}

body.page-home .gallery-item-studio {
    min-height: clamp(300px, 44vw, 450px) !important;
}

body.page-home .news-img-luxury {
    height: clamp(220px, 25vw, 260px) !important;
}

@media (max-width: 1199.98px) {
    .navbar-brand {
        max-width: min(360px, 40vw);
    }

    .slide-content {
        padding-left: 6%;
        padding-top: 185px;
        width: min(760px, calc(100% - 2rem));
    }
}

@media (max-width: 991.98px) {
    body.page-interior {
        padding-top: 82px;
    }

    .navbar > .container-fluid {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .navbar-brand {
        flex: 1 1 auto;
        max-width: calc(100% - 64px);
        margin-right: 0;
    }

    .navbar-brand img {
        width: auto;
        max-width: 100%;
        height: auto !important;
        max-height: 56px;
    }

    .navbar-collapse {
        flex-basis: 100%;
    }

    .navbar-nav-scroll {
        max-height: none;
    }

    .slider-hero {
        height: auto;
        min-height: 560px;
    }

    .slide-content {
        padding-top: 145px;
        padding-right: 1rem;
        padding-left: 1rem;
        width: calc(100% - 2rem);
    }

    .slide-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.42) 58%, rgba(0,0,0,0.2) 100%);
    }

    body.page-home .section-identity-perfected {
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }

    body.page-home .welcome-luxury-grid,
    body.page-home .cta-card-luxury,
    body.page-home .pillar-card-luxury,
    body.page-home .gallery-item-studio {
        border-radius: 1.75rem !important;
    }

    body.page-home .welcome-text-premium {
        font-size: 1.12rem !important;
        line-height: 1.75 !important;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding-top: 1.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .page-header .display-5,
    .page-header .display-4,
    .page-header .display-3 {
        font-size: clamp(1.7rem, 7vw, 2.5rem) !important;
        line-height: 1.1;
    }

    body.page-home .section-identity-perfected .display-4 {
        font-size: clamp(1.7rem, 9vw, 2.8rem);
        line-height: 1.02;
    }

    body.page-home .motto-text-refined {
        font-size: clamp(1.15rem, 5.6vw, 1.75rem) !important;
        line-height: 1.2;
    }

    body.page-home .welcome-luxury-grid .director-img-wrapper img {
        min-height: 320px !important;
    }

    body.page-home .pillar-img-box {
        height: 230px !important;
    }

    body.page-home .gallery-item-studio {
        min-height: 280px !important;
        border-width: 8px !important;
    }

    body.page-home .news-img-luxury {
        height: 220px !important;
    }
}

@media (max-width: 575.98px) {
    body.page-interior {
        padding-top: 70px;
    }

    .navbar {
        border-bottom-width: 3px;
    }

    .navbar > .container-fluid {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    .navbar-brand {
        max-width: calc(100% - 58px);
    }

    .navbar-brand img {
        max-height: 50px;
    }

    .slide-content {
        padding-top: 132px !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .slide-title {
        font-size: clamp(1.9rem, 9vw, 2.6rem) !important;
        line-height: 1.06;
    }

    .header-badge {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        padding: 0.65rem 1rem;
    }

    .slide-p {
        font-size: 1rem !important;
        line-height: 1.55;
    }

    body.page-home .section-identity-perfected .container,
    body.page-home .section-welcome .container,
    body.page-home .section-propuesta-luxury .container,
    body.page-home .section-padding .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ========== Page-specific interior hero repairs ========== */
.page-interior .page-header {
    overflow: hidden;
}

.page-interior .page-header .container {
    position: relative;
    z-index: 1;
}

.page-documentos .doc-hero,
.page-nosotros .nosotros-hero,
.page-propuesta .inner-banner-premium {
    margin-top: 0 !important;
}

@media (max-width: 991.98px) {
    .page-contacto .page-header,
    .page-admision .page-header,
    .page-noticias .page-header {
        padding: 52px 0 88px 0 !important;
    }

    .page-contacto .page-header .container,
    .page-admision .page-header .container,
    .page-noticias .page-header .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .page-documentos .doc-hero {
        min-height: 320px !important;
        height: auto !important;
        padding: 3.5rem 1rem 4.5rem !important;
    }

    .page-documentos .mt-n5-premium {
        margin-top: -36px !important;
    }

    .page-documentos .doc-hero .hero-title-god,
    .page-nosotros .hero-title-god,
    .page-propuesta .inner-banner-premium .display-2,
    .page-contacto .page-header .display-3,
    .page-admision .page-header .display-3 {
        font-size: clamp(2rem, 7vw, 3rem) !important;
        line-height: 1.05;
        letter-spacing: -1px !important;
    }

    .page-documentos .doc-hero .hero-breadcrumb-god,
    .page-nosotros .hero-breadcrumb-god {
        font-size: 0.82rem !important;
        letter-spacing: 1px !important;
    }

    .page-nosotros .nosotros-hero {
        min-height: 300px !important;
        padding: 3.25rem 1rem 4rem !important;
    }

    .page-nosotros .section-god-history .container,
    .page-documentos .container,
    .page-contacto .container,
    .page-admision .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-propuesta .inner-banner-premium {
        min-height: 280px !important;
    }

    .page-propuesta .inner-banner-premium .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .page-propuesta .inner-banner-premium .row {
        padding-top: 0 !important;
        margin-top: 0 !important;
        align-items: center;
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .page-contacto .page-header,
    .page-admision .page-header,
    .page-noticias .page-header {
        padding: 36px 0 72px 0 !important;
    }

    .page-contacto .page-header .lead,
    .page-admision .page-header .lead {
        font-size: 1.02rem !important;
        line-height: 1.6 !important;
    }

    .page-documentos .doc-hero {
        min-height: 250px !important;
        padding: 2.75rem 1rem 4rem !important;
    }

    .page-documentos .doc-hero .hero-title-god,
    .page-nosotros .hero-title-god,
    .page-propuesta .inner-banner-premium .display-2,
    .page-contacto .page-header .display-3,
    .page-admision .page-header .display-3 {
        font-size: clamp(1.7rem, 8.2vw, 2.35rem) !important;
    }

    .page-documentos .doc-hero .position-absolute.bottom-0.start-0.w-100,
    .page-nosotros .nosotros-hero .position-absolute.bottom-0.start-0.w-100 {
        height: 56px !important;
    }

    .page-documentos .mt-n5-premium {
        margin-top: -22px !important;
    }

    .page-documentos .card-body.p-4.p-lg-5,
    .page-contacto .bg-white.p-4.p-md-5,
    .page-admision .bg-white.p-4.p-md-5 {
        padding: 1.15rem !important;
    }

    .page-documentos .input-group.input-group-lg,
    .page-documentos .form-select.form-select-lg,
    .page-documentos .btn.btn-lg,
    .page-contacto .form-control,
    .page-contacto .btn.rounded-pill,
    .page-admision .form-control.form-control-lg,
    .page-admision .form-select.form-select-lg {
        font-size: 0.98rem !important;
    }

    .page-nosotros .nosotros-hero {
        min-height: 230px !important;
        padding: 2.5rem 1rem 3.5rem !important;
    }

    .page-propuesta .inner-banner-premium {
        min-height: 230px !important;
    }

    .page-propuesta .inner-banner-premium .row {
        min-height: 180px;
    }

    .notif-alert-container {
        top: 74px;
        left: 10px;
        right: 10px;
    }

    .notif-alert-box {
        max-height: calc(100vh - 92px);
        overflow: auto;
        border-radius: 20px;
    }

    .notif-alert-header {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .notif-alert-body,
    .notif-alert-media {
        padding-left: 12px;
        padding-right: 12px;
    }

    .notif-alert-media img {
        max-height: 180px;
        object-fit: contain;
        background: #fff;
    }

    .notif-alert-btn {
        width: 100%;
    }
}

/* ========== Strong mobile overrides for broken interior pages ========== */
.page-nosotros,
.page-propuesta,
.page-contacto {
    overflow-x: hidden;
}

.page-nosotros .container,
.page-propuesta .container,
.page-contacto .container {
    width: 100%;
}

@media (max-width: 991.98px) {
    .page-nosotros .section-padding,
    .page-propuesta .section-padding,
    .page-contacto .section-padding {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .page-nosotros .section-padding .container,
    .page-propuesta .section-padding .container,
    .page-contacto .section-padding .container,
    .page-nosotros .page-header .container,
    .page-propuesta .inner-banner-premium .container,
    .page-contacto .page-header .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .page-nosotros .display-1,
    .page-nosotros .display-2,
    .page-nosotros .display-3,
    .page-nosotros .display-4,
    .page-propuesta .display-2,
    .page-propuesta .display-3,
    .page-propuesta .display-4,
    .page-contacto .display-3 {
        letter-spacing: -1px !important;
    }

    .page-nosotros .profile-card .row,
    .page-propuesta .pillar-interactive-card .row,
    .page-contacto .row.g-5 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }

    .page-contacto .d-flex.align-items-center.mb-4,
    .page-contacto .d-flex.align-items-center.mb-4 .ms-3 {
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .page-nosotros .nosotros-hero,
    .page-propuesta .inner-banner-premium,
    .page-contacto .page-header {
        width: 100%;
    }

    .page-nosotros .nosotros-hero {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .page-nosotros .hero-content-god,
    .page-propuesta .inner-banner-premium .col-lg-8,
    .page-contacto .page-header .container {
        width: 100%;
        max-width: 100%;
    }

    .page-nosotros .hero-title-god,
    .page-propuesta .inner-banner-premium .display-2,
    .page-contacto .page-header .display-3 {
        font-size: clamp(1.9rem, 8vw, 2.6rem) !important;
        line-height: 1.08 !important;
    }

    .page-nosotros .hero-breadcrumb-god,
    .page-propuesta .ls-3,
    .page-contacto .badge {
        font-size: 0.78rem !important;
        letter-spacing: 0.08em !important;
    }

    .page-nosotros .section-god-history {
        background-size: cover !important;
        background-position: center top !important;
    }

    .page-nosotros .history-header-panel,
    .page-contacto .bg-white.p-4.p-md-5,
    .page-propuesta .glass-card,
    .page-propuesta .pillar-interactive-card,
    .page-propuesta .bg-primary.rounded-5,
    .page-propuesta .p-5.p-lg-5.text-center.shadow-premium.rounded-5 {
        border-radius: 1.5rem !important;
    }

    .page-nosotros .history-header-panel .fs-5,
    .page-nosotros .history-text,
    .page-propuesta .fs-4,
    .page-propuesta .fs-5,
    .page-contacto .lead,
    .page-contacto p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .page-propuesta .inner-banner-premium p,
    .page-propuesta .section-padding p,
    .page-contacto .page-header p {
        max-width: 100% !important;
    }

    .page-propuesta .glass-card .position-absolute,
    .page-propuesta .position-absolute.top-0.end-0.p-5.mt-5.me-5.opacity-10 {
        position: static !important;
        inset: auto !important;
        margin: 1rem 0 0 !important;
        padding: 0 !important;
    }

    .page-propuesta .position-absolute.top-0.end-0.p-5.mt-5.me-5.opacity-10 {
        display: none;
    }

    .page-contacto .row.g-5 {
        --bs-gutter-y: 1.25rem;
    }

    .page-contacto .d-flex.align-items-center.mb-4 {
        align-items: flex-start !important;
    }

    .page-contacto .btn.rounded-pill,
    .page-contacto .btn.btn-sm.rounded-pill,
    .page-propuesta .btn-xl,
    .page-propuesta .btn.btn-warning,
    .page-propuesta .btn.btn-outline-light {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .page-nosotros .section-padding,
    .page-propuesta .section-padding,
    .page-contacto .section-padding {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .page-nosotros .nosotros-hero,
    .page-propuesta .inner-banner-premium,
    .page-contacto .page-header {
        min-height: auto !important;
    }

    .page-nosotros .hero-title-god,
    .page-propuesta .inner-banner-premium .display-2,
    .page-contacto .page-header .display-3 {
        font-size: clamp(1.75rem, 8.6vw, 2.2rem) !important;
    }

    .page-nosotros .history-header-panel,
    .page-nosotros .god-parchment,
    .page-nosotros .value-card-god,
    .page-nosotros .profile-card,
    .page-nosotros .team-card-premium,
    .page-propuesta .glass-card,
    .page-propuesta .pillar-interactive-card,
    .page-propuesta .bg-primary.rounded-5,
    .page-propuesta .p-5.p-lg-5.text-center.shadow-premium.rounded-5,
    .page-contacto .bg-white.p-4.p-md-5,
    .page-contacto .bg-white.border-0.shadow-sm.rounded-4 {
        border-radius: 1.2rem !important;
    }

    .page-nosotros .history-header-panel,
    .page-nosotros .god-parchment,
    .page-nosotros .value-card-god,
    .page-propuesta .glass-card,
    .page-propuesta .pillar-interactive-card .p-4,
    .page-propuesta .pillar-interactive-card .p-lg-5,
    .page-propuesta .bg-primary.rounded-5,
    .page-propuesta .p-5.p-lg-5.text-center.shadow-premium.rounded-5,
    .page-contacto .bg-white.p-4.p-md-5,
    .page-contacto .bg-white.border-0.shadow-sm.rounded-4 {
        padding: 1rem !important;
    }

    .page-nosotros .god-timeline-item {
        padding-left: 42px !important;
    }

    .page-nosotros .god-timeline-item::after {
        width: 30px !important;
        height: 30px !important;
    }

    .page-propuesta .pillar-img-zoom img,
    .page-propuesta .glass-card img {
        min-height: 0 !important;
        max-height: 240px;
        object-fit: cover;
    }

    .page-propuesta ul.list-unstyled.d-flex.flex-wrap.gap-2 {
        gap: 0.45rem !important;
    }

    .page-propuesta .pillar-point {
        white-space: normal;
        text-align: center;
    }

    .page-contacto .page-header {
        padding-top: 2rem !important;
        padding-bottom: 4.25rem !important;
    }

    .page-contacto .page-header svg {
        height: 42px !important;
    }

    .page-contacto .col-lg-4,
    .page-contacto .col-lg-8 {
        width: 100%;
    }

    .page-contacto .d-flex.align-items-center.mb-4 {
        gap: 0.85rem;
    }

    .page-contacto .flex-shrink-0.bg-light.rounded-circle {
        width: 42px !important;
        height: 42px !important;
    }
}

/* ========== Final mobile header stabilization (Home) ========== */
@media (max-width: 991.98px) {
    body.page-home #site-header {
        top: 0;
        left: 0;
        right: 0;
        z-index: 2050;
    }

    body.page-home #site-header .navbar,
    body.page-home #site-header .navbar.scrolled {
        padding: 0.5rem 0 !important;
        min-height: 74px;
    }

    body.page-home #site-header .navbar > .container-fluid {
        padding-left: 0.95rem !important;
        padding-right: 0.95rem !important;
        align-items: center;
        gap: 0.7rem;
    }

    body.page-home #site-header .navbar-brand {
        margin-right: 0 !important;
        max-width: calc(100% - 64px) !important;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
    }

    body.page-home #site-header .navbar-brand img,
    body.page-home #site-header .navbar.scrolled .navbar-brand img {
        height: 52px !important;
        max-height: 52px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
        object-position: left center;
    }

    body.page-home #site-header .nav-menu-btn {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }
}

@media (max-width: 575.98px) {
    body.page-home #site-header .navbar,
    body.page-home #site-header .navbar.scrolled {
        min-height: 70px;
    }

    body.page-home #site-header .navbar-brand {
        max-width: calc(100% - 58px) !important;
    }

    body.page-home #site-header .navbar-brand img,
    body.page-home #site-header .navbar.scrolled .navbar-brand img {
        height: 48px !important;
        max-height: 48px !important;
    }
}
