/* Design System - Buena Vibra Venezuela Club */
:root {
    /* Colors */
    --primary-color: #4A148C;
    /* Deep Purple */
    --primary-light: #7c43bd;
    --primary-dark: #12005e;
    --secondary-color: #FFC107;
    /* Gold */
    --secondary-dark: #c79100;
    --accent-color: #D32F2F;
    /* Red for Match/Love */
    --text-main: #212121;
    --text-light: #757575;
    --bg-light: #F9F9F9;
    --bg-dark: #121212;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Shadows */
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
.container,
.admin-container,
.app-container {
    flex: 1;
    width: 100%;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-gold {
    color: var(--secondary-color);
}

.text-purple {
    color: var(--primary-color);
}

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

.text-main {
    color: var(--text-main) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

.section-padding {
    padding: 40px 0;
}

.bg-dark {
    background-color: var(--bg-dark) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* --- RESPONSIVE GRID UTILITIES (Bootstrap-like) --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6,
.col-md-4,
.col-md-3,
.col-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* FIX: Force Date Input Widths and Heights on Mobile */
input[type="date"].form-control,
input[type="datetime-local"].form-control,
input[type="time"].form-control {
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    min-height: 46px;
    /* Matches calc(1rem * 1.5 + 20px padding + 2px border) */
    display: flex;
    align-items: center;
}

/* --- AVATAR SYSTEM v2.0 --- */
.avatar-wrapper {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.avatar-clickable {
    cursor: pointer;
}

.avatar-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

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

/* Sizes */
.avatar-sm { width: 32px; height: 32px; border-width: 1px; }
.avatar-md { width: 45px; height: 45px; }
.avatar-lg { width: 80px; height: 80px; border-width: 3px; }
.avatar-xl { width: 150px; height: 150px; border-width: 4px; }

.form-control:focus {
    border-color: var(--primary-light);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 20, 140, 0.25);
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

/* Desktop Grid */
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.mb-4 {
    margin-bottom: 20px;
}

.mb-5 {
    margin-bottom: 40px;
}

.btn {
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
    /* Reserve space for border alignment */
    transition: all 0.3s ease;
    width: 100%;
    /* Full width on mobile */
    margin-bottom: 10px;
    text-align: center;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: #FFC107 !important;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #FFC107 !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo img {
    height: 40px;
}

/* Hamburger Menu */
.hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: none;
    /* Hidden on mobile by default */
    width: 100%;
    flex-direction: column;
    padding-top: 20px;
    background: var(--white);
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    padding: 15px 0;
    font-size: 1.1rem;
    text-align: center;
    display: block;
    width: 100%;
}

/* Dropdown Styles Mobile */
.nav-item-dropdown .dropdown-toggle {
    padding: 15px 0;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    color: var(--text-main);
}

.nav-item-dropdown .dropdown-menu {
    background: #f8f9fa;
    display: none;
}

.nav-item-dropdown.active .dropdown-menu {
    display: block;
}

.nav-item-dropdown .dropdown-menu a {
    padding: 12px 0;
    font-size: 1rem;
    background: transparent;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    height: 60vh;
    /* Shorter on mobile */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 15px;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* About & Grid Systems */
.row {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column mobile */
    gap: 20px;
}

.events-grid {
    display: grid;
    gap: 30px;
}

.event-card {
    display: flex;
    flex-direction: column;
    /* Stacked on mobile */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.event-date {
    display: flex;
    flex-direction: row;
    /* Horizontal date bar on mobile */
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--primary-color);
    color: white;
}

.event-date span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Forms */
.form-style {
    padding: 20px !important;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Footer */
.footer-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #eee, transparent);
    margin: 40px 0;
}

footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 40px 0;
}

.footer-section h3 {
    margin-bottom: 10px;
    color: #fbbf24;
}

.footer-section p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fbbf24;
}

.footer-section a {
    display: block;
    color: white;
    opacity: 0.7;
    margin-bottom: 8px;
    text-decoration: none;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 25px;
    /* Increased for mobile touch */
    font-size: 1.5rem;
    /* Larger icons for visibility */
    justify-content: center;
    /* Center on mobile */
}

.social-icons a {
    display: inline-flex;
    padding: 10px;
    /* Better click area */
    color: white;
    transition: transform 0.2s ease;
}

.social-icons a:active {
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 5px;
}

.copyright-break {
    display: block;
    /* Force break on mobile */
    margin-top: 8px;
}

/* Premium Modal (Used in Header/Index) */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.premium-modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.premium-modal-content img {
    width: 100%;
    display: block;
}

.close-premium-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    font-family: Arial, sans-serif;
}

.premium-modal-timer {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.8rem;
    border-top-left-radius: 10px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    /* Space for Bottom Nav */
    footer {
        padding-bottom: 40px;
    }

    /* More balanced bottom space */
}

/* --- TABLET (min-width: 768px) --- */
@media (min-width: 768px) {

    /* Header & Ads */
    .ad-container-top .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .ad-container-top .ad-slot img {
        max-height: 120px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

    .ad-container-top .ad-slot {
        max-height: 120px;
        overflow: hidden;
        display: inline-flex;
        align-items: stretch;
    }

    h1 {
        font-size: 3rem;
    }

    /* Ad Banner Adjustment for Desktop */
    .ad-slot img {
        object-fit: contain !important;
        /* Ajustar imagen al espacio disponible en escritorio */
        background-color: var(--bg-light);
        /* Fondo sutil para espacios vacíos */
    }

    h2 {
        font-size: 2.2rem;
    }

    .btn {
        width: auto;
        margin-bottom: 0;
    }

    .btn-rounded {
        border-radius: 30px;
    }

    .header-actions {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    /* Menu becomes horizontal */
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex !important;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding-top: 0;
        border: none;
        margin-top: 0;
        background: transparent;
    }

    .nav-links a {
        padding: 0;
        border: none;
        font-size: 1rem;
        width: auto;
    }

    /* Dropdown Styles Desktop */
    .nav-item-dropdown {
        position: relative;
        display: flex;
        align-items: center;
    }

    .nav-item-dropdown .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        font-size: 1rem;
    }

    .nav-item-dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: white;
        min-width: 180px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 10px 0;
        display: none;
        z-index: 1000;
        border: 1px solid #f0f0f0;
    }

    .nav-item-dropdown .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid white;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-item-dropdown .dropdown-menu a {
        display: block;
        padding: 10px 20px;
        text-align: left;
        font-size: 0.95rem;
        color: var(--text-main);
        transition: background 0.3s;
        border-bottom: none;
        width: 100%;
    }

    .nav-item-dropdown .dropdown-menu a:hover {
        background: #f8f9fa;
        color: var(--primary-color);
    }

    /* Hero */
    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 4rem;
    }

    /* Layouts */
    .row {
        flex-direction: row;
        align-items: center;
    }

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

    .event-card {
        flex-direction: row;
    }

    .event-date {
        flex-direction: column;
        min-width: 120px;
        padding: 20px;
    }

    .event-date span:first-child {
        font-size: 2.5rem;
    }

    .form-row {
        flex-direction: row;
        gap: 20px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        text-align: left;
    }

    /* Column 2 & 3: Explorar & Sitio - Center */
    .footer-content>.footer-section:nth-child(2),
    .footer-content>.footer-section:nth-child(3) {
        text-align: center;
    }

    /* Column 4: Social Icons - Right */
    .footer-content>.footer-section:nth-child(4) {
        text-align: right;
    }

    .social-icons {
        justify-content: flex-end;
    }

    .copyright-break {
        display: inline;
        margin-top: 0;
    }
}

/* --- DESKTOP (min-width: 1024px) --- */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

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

/* --- ADMIN PANEL STYLES (Mobile First) --- */
.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--primary-dark);
    color: white;
    padding: 20px;
    width: 100%;
    position: relative;
    height: auto;
    z-index: 100;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Push hamburger to right */
    gap: 10px;
    margin-bottom: 20px;
}

#admin-hamburger {
    display: block;
    color: white !important;
    font-size: 1.5rem;
    cursor: pointer;
}

.admin-nav {
    display: none;
    /* Hidden on mobile by default */
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.admin-nav.active {
    display: flex;
}

.admin-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.05);
}

.admin-content {
    padding: 20px;
    margin-left: 0;
    width: 100%;
}

.admin-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: var(--shadow-card);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    min-width: 600px;
    /* Force scroll on small screens */
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-light);
    color: white;
}

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

/* Admin Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .admin-container {
        flex-direction: row;
    }

    .admin-sidebar {
        width: 220px;
        min-height: 100vh;
        height: auto;
        position: sticky;
        /* Sticky instead of Fixed */
        top: 0;
        left: 0;
        flex-direction: column;
        flex-shrink: 0;
        /* Prevent shrinking */
        z-index: 1000;
    }

    .admin-nav {
        display: flex !important;
        /* Always show on desktop */
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }

    .admin-sidebar-header {
        margin-bottom: 40px;
    }

    /* Hide hamburger on desktop */
    #admin-hamburger {
        display: none !important;
    }

    .admin-content {
        margin-left: 0;
        /* No margin needed with Flex */
        padding: 30px;
        flex: 1;
        /* Take remaining space */
        width: calc(100% - 220px);
        /* Fallback */
    }


}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
    background-color: #333;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #4A148C, #121212);
}

.gallery-placeholder span {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
}

.gallery-overlay h4 {
    color: var(--secondary-color);
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* New Members Carousel */
.carousel-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    justify-content: flex-start;
    /* changed from center to allow scroll */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.member-card {
    min-width: 220px;
    max-width: 220px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-card-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--secondary-color);
    padding: 3px;
    /* Space between border and image */
    background: white;
}

.member-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .carousel-container {
        justify-content: center;
        /* Center if they fit, otherwise start */
    }
}

/* FIX: Force Mobile Button Alignment */
@media (max-width: 768px) {

    .hero .btn,
    .hero a.btn {
        width: 100% !important;
        max-width: 350px !important;
        /* Limite razonable */
        min-width: 250px !important;
        box-sizing: border-box !important;
        margin: 10px auto !important;
        /* Centrado */
        display: flex !important;
        justify-content: center !important;
        border-radius: 5px !important;
    }

    .hero {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .hero h1 {
        font-size: 2rem !important;
        /* Ajuste para que no rompa layout */
    }
}

/* ========================================
   LÍNEAS ADMIN - SPECIFIC STYLES
   ======================================== */

/* Color preview badge for Líneas table */
.lineas-color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
    vertical-align: middle;
    margin-right: 5px;
}

/* Form section container for Líneas admin */
.lineas-form-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Líneas table - Mobile responsive styles */
@media (max-width: 768px) {

    /* Hide columns on mobile */
    .lineas-table .hide-mobile {
        display: none !important;
    }

    /* Líneas table mobile layout */
    .lineas-table table {
        font-size: 14px;
        table-layout: fixed;
        width: 100%;
        min-width: 0 !important;
        /* Override global min-width: 600px */
    }

    .lineas-table th,
    .lineas-table td {
        padding: 10px 5px !important;
        word-wrap: break-word;
    }

    /* Column widths using semantic classes (70% Nombre, 30% Acciones) */
    .lineas-table .col-nombre {
        width: 70% !important;
        text-align: left;
    }

    .lineas-table .col-acciones {
        width: 30% !important;
        text-align: center !important;
    }

    /* Ensure containers don't overflow */
    .lineas-form-section,
    .lineas-table .admin-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Action button spacing for touch targets */
    .lineas-table .btn-icon {
        margin: 0 4px !important;
        padding: 8px 10px !important;
        display: inline-block;
    }
}

/* ========================================
   COOKIE BANNER - STYLES
   ======================================== */

.cookie-overlay {
    display: none;
    /* Hidden by default, JS will show */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Full screen block */
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    justify-content: center;
    align-items: flex-end;
    /* Mobile: Bottom sheet, Desktop: Center or Bottom */
}

.cookie-content {
    background: white;
    padding: 30px;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .cookie-overlay {
        justify-content: center;
        align-items: center;
        /* Center on desktop */
    }

    .cookie-content {
        width: 100%;
        max-width: 500px;
        border-radius: 20px;
    }
}

/* ========================================
   HOME PAGE (INDEX) - SPECIFIC STYLES
   ======================================== */

.hero-premium {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1511632765486-a01980e01a18?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center top/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.3) 100%);
    z-index: 1;
}

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

.hero-content {
    max-width: 700px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    padding: 60px 50px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.hero-premium h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.badge-new {
    background: #fbbf24;
    color: #333;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    letter-spacing: 1px;
}

.btn-lg {
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    margin-left: 20px;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    height: 50px;
}

.vision-grid,
.mision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.vision-image,
.mision-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vision-text h3,
.mision-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.vision-locations,
.mision-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.loc-tag {
    background: white;
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #666;
}

.floating-logo {
    width: 250px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
    animation: float 6s infinite ease-in-out;
}

/* Branding Overlays for Section Images */
.br-wrapper {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.br-logo {
    position: absolute;
    width: 80px;
    z-index: 5;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.br-top-left {
    top: 20px;
    left: 20px;
}

.br-top-right {
    top: 20px;
    right: 20px;
}

.br-bottom-right {
    bottom: 20px;
    right: 20px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.pillar-card:hover {
    box-shadow: 0 8px 20px rgba(74, 20, 140, 0.15);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pillar-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.pillar-card p {
    color: var(--text-light);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 5px solid #f3f4f6;
}

.step-arrow {
    color: #ddd;
    font-size: 2rem;
}

/* Dress Code Styles */
.dress-code-notice {
    background: #fff;
    padding: 50px 30px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    max-width: 900px;
    margin: 60px auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.dress-code-header {
    margin-bottom: 40px;
}

.dc-main-icon {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.dress-code-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

.dress-code-header h3 span {
    display: block;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #888;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.dc-divider {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 20px auto 0;
    border-radius: 10px;
}

.dress-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px 15px;
    justify-items: center;
}

.dc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.dc-item:hover {
    transform: translateY(-5px);
}

.dc-icon-wrapper {
    position: relative;
    width: 75px;
    height: 75px;
    background: #f8faff;
    border: 1px solid #edf2ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #444;
    transition: all 0.3s ease;
}

.dc-item:hover .dc-icon-wrapper {
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary-color);
}

.dc-ban-overlay {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    background: #fff;
    color: #d32f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2);
    border: 2px solid #d32f2f;
    z-index: 2;
}

.dc-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    text-align: center;
    max-width: 100px;
    line-height: 1.2;
}

.dc-footer-text {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #eee;
}

.dc-footer-text p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.dc-footer-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Premium Button Styles */
.btn-gold {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    color: #333 !important;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-gold:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #FFD54F 0%, #FFA000 100%);
    color: #000 !important;
}

.btn-gold:active {
    transform: translateY(-2px);
}

@keyframes float {

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

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

/* Index Mobile Adjustments */
@media (max-width: 768px) {
    .hero-premium {
        height: auto;
        padding: 100px 0;
    }

    .hero-premium h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline-white {
        margin-left: 0;
    }

    .vision-grid,
    .mision-grid {
        grid-template-columns: 1fr;
    }

    .vision-image,
    .mision-image {
        order: -1;
        text-align: center;
    }

    .process-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* ========================================
   AGENDA PAGE - SPECIFIC STYLES
   ======================================== */

.agenda-alert {
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.agenda-alert a {
    text-decoration: underline;
}

.agenda-badge {
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-bottom: 12px;
    display: inline-block;
    align-self: flex-start;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agenda-badge i {
    margin-right: 4px;
}

.event-details {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-details h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-time {
    font-weight: bold;
    margin-bottom: 10px;
}

.event-description {
    margin-bottom: 15px;
    color: #666;
}

.member-actions,
.visitor-actions {
    margin-top: 15px;
}

/* Agenda Event Cards and Modal */
.event-card {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-past {
    filter: grayscale(0.6) opacity(0.85);
    background: #fdfdfd;
}

.event-past:hover {
    filter: none;
    opacity: 1;
}

.event-past .event-date {
    background: #999 !important;
}

.past-badge {
    background: #d32f2f;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 5px;
}

.event-image-container {
    width: 350px;
    background: #f0f0f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-image-container:hover img {
    transform: scale(1.1);
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-overlay i {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.event-image-container:hover .zoom-overlay {
    opacity: 1;
}

/* ========================================
   GALLERY PAGE (GALERIA) - SPECIFIC STYLES
   ======================================== */

.gallery-section {
    min-height: 80vh;
}

.gallery-subtitle {
    max-width: 600px;
    margin: 0 auto 50px;
}

.gallery-empty-ad {
    margin-bottom: 30px;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.gallery-item,
.grid .ad-slot {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    height: auto !important;
    display: block !important;
    background: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover,
.grid .ad-slot:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img,
.grid .ad-slot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    z-index: 5;
}

.gallery-overlay-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.gallery-overlay-badge {
    font-size: 0.65rem;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    justify-self: start;
}

.gallery-overlay-badge-empty {
    display: block;
}

.gallery-overlay h4 {
    grid-column: 1 / -1;
    margin: 0;
    line-height: 1.2;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-overlay-date {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ========================================
   GALLERY DETAIL (DETAILS) - SPECIFIC STYLES
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

/* Mobile Carousel for Gallery Detail */
@media (max-width: 767px) {
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 5px 5px 20px;
        gap: 15px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-grid::-webkit-scrollbar {
        height: 4px;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 10px;
    }

    .gallery-item-wrapper {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

.gallery-item-detail {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    background: #f0f0f0;
}

.gallery-item-detail:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item-detail img,
.gallery-item-detail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-play-overlay i {
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

/* Modal Enhancements */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-overlay.active {
    display: flex;
}

.modal-content,
.modal-video {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.prev-btn,
.next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    text-decoration: none;
    z-index: 10001;
}

.next-btn {
    right: 10px;
}

.prev-btn {
    left: 10px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 10px;
        order: 0;
    }

    .event-image-container {
        width: 100%;
        height: 200px;
        order: 1;
    }

    .event-details {
        padding: 20px;
        order: 2;
    }
}

@media (max-width: 768px) {

    .modal-content,
    .modal-video {
        width: 100%;
    }

    .prev-btn,
    .next-btn {
        padding: 10px;
        font-size: 18px;
    }
}

/* Common Grid Utilities */
.grid .ad-slot .ad-label-vertical {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 10;
}

.grid .ad-slot a {
    display: block !important;
    width: 100%;
    height: 100%;
}

.grid .ad-slot {
    justify-self: center;
}

/* ========================================
   COMING SOON PAGE - SPECIFIC STYLES
   ======================================== */

.coming-soon-body {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    position: relative;
}

.coming-soon-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.coming-soon-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: cs-float 20s infinite;
}

@keyframes cs-float {

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

    25% {
        transform: translateY(-100px) translateX(50px);
    }

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

    75% {
        transform: translateY(-100px) translateX(100px);
    }
}

.coming-soon-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.coming-soon-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cs-pulse 3s ease-in-out infinite;
}

.coming-soon-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes cs-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.coming-soon-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    color: white;
}

.coming-soon-tagline {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.coming-soon-countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.cs-countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 25px;
    min-width: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.cs-countdown-item:hover {
    transform: translateY(-5px);
}

.cs-countdown-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
    margin-bottom: 10px;
}

.cs-countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0.9;
}

.coming-soon-launch {
    font-size: 1.1rem;
    margin-top: 40px;
    opacity: 0.85;
    font-weight: 300;
}

.coming-soon-social {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.coming-soon-social a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.coming-soon-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .coming-soon-title {
        font-size: 2.5rem;
    }

    .coming-soon-tagline {
        font-size: 1.1rem;
    }

    .coming-soon-countdown {
        gap: 15px;
    }

    .cs-countdown-item {
        min-width: 100px;
        padding: 20px 15px;
    }

    .cs-countdown-number {
        font-size: 2.5rem;
    }

    .cs-countdown-label {
        font-size: 0.75rem;
    }
}

/* ========================================
   EMAIL LOGS PAGE - SPECIFIC STYLES
   ======================================== */

.admin-logs-body {
    background: #f5f5f5;
    padding: 20px;
}

.logs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.logs-title {
    color: #667eea;
    margin-bottom: 30px;
}

.log-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.log-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.log-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.log-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.log-success {
    color: #4ade80;
}

.log-error {
    color: #f87171;
}

.log-info {
    color: #60a5fa;
}

.log-back-btn {
    display: inline-block;
    background: #667eea;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
}

.log-back-btn:hover {
    background: #5568d3;
}

.no-logs {
    color: #999;
    font-style: italic;
}

.log-files-picker {
    margin-bottom: 15px;
}

.log-files-picker select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
}

.saved-emails-list {
    list-style: none;
    padding: 0;
}

.saved-email-item {
    margin-bottom: 10px;
}

.saved-email-link {
    color: #667eea;
    text-decoration: none;
}

.saved-email-date {
    color: #999;
    font-size: 0.9em;
    margin-left: 10px;
}

/* ========================================
   ACTION LINES PAGE - SPECIFIC STYLES
   ======================================== */

.lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.line-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.line-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.line-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.line-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.line-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.line-btn-text {
    display: inline-block;
    margin-top: auto;
    padding-top: 15px;
    font-weight: 600;
    text-decoration: none;
}

/* Admin Events Management */
.admin-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
}

.admin-event-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
}

.admin-event-card-banner {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.admin-event-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.admin-event-card-body h3 {
    margin: 0 0 5px 0;
    color: var(--color-purple);
}

.admin-event-card-body p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.admin-event-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.premium-modal {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .premium-modal {
    transform: scale(1);
}

.modal-header-custom {
    padding: 30px 30px 10px;
    text-align: center;
}

.modal-header-custom h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.modal-body-custom {
    padding: 10px 30px 40px;
    color: #555;
    line-height: 1.8;
}

.modal-body-custom h3 {
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 1.2rem;
}

.modal-body-custom ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-body-custom li {
    margin-bottom: 8px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

/* ========================================
   APPLICATION FORM (POSTULACION) - STYLES
   ======================================== */

.app-container {
    max-width: 800px;
}

.app-header {
    text-align: center;
    margin-bottom: 50px;
}

.app-header h1 {
    margin-bottom: 10px;
}

.app-process-badge {
    background: #fff8e1;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #ffe082;
    display: inline-block;
    margin-top: 10px;
}

.app-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.app-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.app-form-control {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Specific fix for date inputs in iOS to prevent width overflow */
input[type="date"].app-form-control {
    min-height: 48px;
    display: block;
}

.app-form-control:focus {
    border-color: #667eea;
    outline: none;
}

/* Select2 Normalization */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
    padding-left: 0 !important;
    color: #333 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 25px !important;
    font-size: 1.2rem !important;
    line-height: 24px !important;
    color: #999 !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #667eea !important;
}

.app-survey-bg {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.app-survey-title {
    color: #4c51bf;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-form-row {
    display: flex;
    gap: 20px;
}

.flex-1 {
    flex: 1;
}

@media (max-width: 768px) {
    .app-form-row {
        flex-direction: column;
        gap: 0;
    }

    .app-form {
        padding: 20px;
    }

    .flex-1,
    .form-group {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Photo Upload (Drop Zone) */
.drop-zone {
    width: 100%;
    min-height: 180px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fdfdfd;
    border: 2px dashed #667eea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 20px;
}

.drop-zone:hover,
.drop-zone--over {
    background: #f0f4ff;
    border-color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.drop-zone__input {
    display: none;
}

.drop-zone__prompt {
    color: #555;
    font-weight: 500;
}

.drop-zone__icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 10px;
}

.drop-zone__thumb {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    position: relative;
    margin-top: 10px;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #eee;
}

.drop-zone__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
    display: block;
}

.drop-zone__thumb-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.drop-zone__thumb-remove:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

.app-btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;

    .app-btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
}

/* ========================================
   ADMIN DASHBOARD - SPECIFIC STYLES
   ======================================== */

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    padding: 25px;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
}

.admin-stat-flex {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.admin-stat-label {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stat-value {
    margin: 10px 0 0 0;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2d3748;
}

.admin-stat-icon-wrapper {
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
}

.admin-stat-icon-wrapper i {
    font-size: 1.5rem;
}

.admin-stat-icon-purple {
    background: rgba(102, 126, 234, 0.1);
}

.admin-stat-icon-purple i {
    color: var(--primary-color);
}

.admin-stat-icon-gold {
    background: rgba(236, 201, 75, 0.1);
}

.admin-stat-icon-gold i {
    color: #d69e2e;
}

.admin-stat-icon-green {
    background: rgba(72, 187, 120, 0.1);
}

.admin-stat-icon-green i {
    color: #38a169;
}

.admin-stat-footer {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-shortcuts-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ========================================
   ADMIN APPLICANTS (POSTULACIONES) - STYLES
   ======================================== */

.admin-badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.admin-bg-new {
    background: #e3f2fd;
    color: #0d47a1;
}

.admin-bg-interview_ok {
    background: #e8f5e9;
    color: #1b5e20;
}

.admin-bg-obj_member {
    background: #fff3e0;
    color: #e65100;
}

.admin-bg-obj_admin {
    background: #f3e5f5;
    color: #7b1fa2;
}

.admin-bg-rejected {
    background: #ffebee;
    color: #c62828;
}

.admin-bg-approved {
    background: #e0f2f1;
    color: #00695c;
}

.admin-bg-interview_fail {
    background: #eceff1;
    color: #455a64;
}

.admin-filter-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.admin-avatar-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Helpers */
.no-underline {
    text-decoration: none !important;
}

.fs-small {
    font-size: 0.85em !important;
}

.mt-40 {
    margin-top: 40px !important;
}

/* ========================================
   ADMIN COMMUNICATIONS - STYLES
   ======================================== */

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-card-mx-800 {
    max-width: 800px;
}

.admin-editor-container {
    height: 300px;
    background: white;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.admin-alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.admin-alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.1);
}

.admin-alert-info {
    background: #fff3e0;
    border-left: 3px solid #ff9800;
}

.admin-form-check-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-form-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.admin-file-upload-styled {
    width: 100%;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.admin-header-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Progress Bar Component */
.admin-progress-container {
    width: 100px;
    display: inline-block;
    vertical-align: middle;
}

.admin-progress-bar {
    background: #eee;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.admin-progress-fill {
    background: #28a745;
    height: 100%;
    transition: width 0.3s;
}

.admin-stat-text-small {
    font-size: 0.8rem;
    margin-bottom: 2px;
    color: #718096;
}

/* Metrics Specific */
.admin-metrics-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-metrics-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

.admin-metrics-value {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.admin-metrics-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    color: #718096;
    letter-spacing: 0.5px;
}

.admin-metrics-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.admin-metrics-detail-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.admin-metrics-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
}

.admin-metrics-table th {
    text-align: left;
    color: #718096;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 10px;
    font-weight: 500;
}

.admin-metrics-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f7fafc;
}

.admin-chart-horizontal-scroll {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.admin-bar-chart-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    padding-bottom: 25px;
    min-width: 800px;
}

.admin-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.admin-bar-fill {
    width: 100%;
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
}

.admin-bar-label {
    font-size: 0.7rem;
    margin-top: 8px;
    color: #718096;
}

.admin-metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Gallery and Drop Zone */
.admin-gallery-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.admin-drop-zone {
    width: 100%;
    border: 2px dashed #cbd5e0;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.admin-drop-zone:hover {
    border-color: var(--primary-color);
    background: #edf2f7;
}

.admin-drop-zone i {
    font-size: 3rem;
    color: #a0aec0;
    margin-bottom: 12px;
}

.admin-drop-zone p {
    margin: 0;
    color: #4a5568;
}

.admin-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background: #1a202c;
    transition: transform 0.2s ease;
}

.admin-gallery-item:hover {
    transform: translateY(-2px);
}

.admin-gallery-media {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.admin-gallery-video {
    opacity: 0.8;
}

.admin-video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 5;
}

.admin-uploader-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    z-index: 10;
    max-width: 85%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(4px);
}

.admin-gallery-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(4px);
}

.admin-gallery-public-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #38a169;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 10;
}

/* Admin Preview Modal */
.admin-preview-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.admin-preview-content {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.admin-preview-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.admin-preview-close:hover {
    color: #cbd5e0;
}

/* Quill Editor basic alignment support for public pages */
.ql-align-center {
    text-align: center !important;
}

.ql-align-right {
    text-align: right !important;
}

.ql-align-justify {
    text-align: justify !important;
}

.mr-2 {
    margin-right: 10px !important;
}

/* Premium Member Details Modal */
.member-modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-modal.active {
    opacity: 1;
}

.member-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 2vh auto;
    width: 95%;
    max-width: 900px;
    max-height: 96vh;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.member-modal.active .member-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: rotate(90deg);
}

/* Layout */
.modal-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 600px;
}

/* Sidebar (Image & Quick Stats) */
.modal-sidebar {
    background: #1a1a1a;
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-avatar-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    padding: 5px;
    margin-bottom: 20px;
    position: relative;
}

.modal-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #333;
}

.modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--accent);
    line-height: 1.2;
}

.modal-profession {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Quick Info Grid in Sidebar */
.quick-info {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.quick-stat label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 5px;
}

.quick-stat span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Main Content */
.modal-main {
    padding: 50px;
}

.detail-section {
    margin-bottom: 35px;
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-title i {
    color: var(--accent);
    font-size: 1rem;
}

.detail-content {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--accent);
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* Responsive */
@media (max-width: 800px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-sidebar {
        padding: 30px 20px;
    }

    .modal-avatar-container {
        width: 150px;
        height: 150px;
    }

    .modal-main {
        padding: 30px 20px;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Photo Zoom Modal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    /* Higher than memberModal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-modal.active {
    opacity: 1;
}

.photo-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.close-photo-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    transition: color 0.2s;
}

.close-photo-modal:hover {
    color: var(--accent);
}

/* Add cursor pointer to the sidebar image */
#m_image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

#m_image:hover {
    transform: scale(1.02);
}

/* Admin Table Avatar Fix */
.table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Premium Table Styles */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-top: -15px;
}

.premium-table thead th {
    background: transparent !important;
    color: #6c757d !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none !important;
    padding: 0 20px 10px 20px !important;
}

.premium-table tbody tr {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    border-radius: 12px;
}

.premium-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.premium-table td {
    padding: 20px;
    vertical-align: middle;
    border: none;
    border-top: 1px solid #f8f9fa;
    border-bottom: 1px solid #f8f9fa;
}

.premium-table td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-left: 1px solid #f8f9fa;
}

.premium-table td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-right: 1px solid #f8f9fa;
}

.member-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.member-avatar-lg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.member-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

.member-info p {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    color: #95a5a6;
}

.badge-pill {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-suspended {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-revoked {
    background: #ffebee;
    color: #c62828;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.2s;
    color: #6c757d;
    background: #f8f9fa;
}

.action-btn:hover {
    background: var(--color-purple);
    color: white;
    transform: scale(1.05);
}

/* Helpers for Inline Style Removal */
.table-responsive-visible {
    overflow-x: visible !important;
}

.member-avatar-container {
    position: relative;
}

.pending-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ffc107;
    border: 2px solid #fff;
    border-radius: 50%;
}

.pending-text-wrapper {
    color: #ffc107;
    font-weight: 600;
    font-size: 0.75rem;
}

.pending-icon {
    font-size: 0.7rem;
}

.location-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-text {
    font-weight: 500;
    color: #555;
}

.location-icon {
    color: #ccc;
    width: 15px;
}

.phone-text {
    font-size: 0.85rem;
    color: #888;
}

.permission-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.permission-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.permission-icon-box.allowed {
    background: #e8f5e9;
    color: #2e7d32;
}

.permission-icon-box.restricted {
    background: #f5f5f5;
    color: #999;
}

.permission-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.permission-label.allowed {
    color: #2e7d32;
}

.permission-label.restricted {
    color: #999;
}

.actions-wrapper {
    display: flex;
    gap: 8px;
}

/* DataTables Responsive Control Fixes */

/* 1. Desktop: Hide arrows completely (High Specificity) */
@media (min-width: 1024px) {

    html body table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
    html body table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
        display: none !important;
        content: none !important;
    }

    /* Reset padding on desktop to look normal */
    html body table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
    html body table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
        padding-left: 20px !important;
    }
}

/* 2. Mobile: Styling the arrow (High Specificity) */
@media (max-width: 1023px) {
    html body table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control {
        position: relative;
        padding-left: 30px !important;
    }

    html body table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before {
        top: 50% !important;
        left: 10px !important;
        height: 16px !important;
        width: 16px !important;
        margin-top: -8px !important;
        display: block !important;
        position: absolute !important;
        border: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f0da" !important;
        /* fa-caret-right */
        font-size: 1.2rem !important;
        color: #ddd !important;
    }

    /* Expanded State (Parent) - Highlighted and Rotated */
    html body table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before {
        content: "\f0d7" !important;
        /* fa-caret-down */
        color: var(--color-purple) !important;
        /* Purple */
    }
}

/* Metrics Tabs */
.admin-metrics-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
}

.admin-metrics-tab {
    padding: 10px 25px;
    border-radius: 5px 5px 0 0;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-metrics-tab:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.admin-metrics-tab.active {
    color: var(--primary-color);
    background: white;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -12px;
}

@media (max-width: 600px) {
    .admin-metrics-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .admin-metrics-tab {
        border-radius: 5px;
        margin-bottom: 5px;
    }

    .admin-metrics-tab.active {
        margin-bottom: 5px;
        border-bottom: none;
        border-left: 4px solid var(--primary-color);
    }
}

/* --- TESTIMONIALS MARQUEE --- */
.testimonials-section {
    overflow: hidden;
    padding: 80px 0;
    position: relative;
    background: linear-gradient(to right, rgba(74, 20, 140, 0.02), rgba(255, 193, 7, 0.02));
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
}

.marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.testimonial-card-home {
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card-home:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(74, 20, 140, 0.1);
}

.tch-top {
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.03) 0%, rgba(255, 193, 7, 0.03) 100%);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.tch-user {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tch-user img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.tch-info h5 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 700;
}

.tch-info p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tch-bottom {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    line-height: 1.6;
}

.tch-text {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    position: relative;
    padding: 0 10px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 0;
    }

    .testimonial-card-home {
        width: 280px;
        height: 380px;
    }

    .tch-top {
        height: 160px;
    }

    .tch-user img {
        width: 70px;
        height: 70px;
    }

    .tch-text {
        font-size: 0.88rem;
    }
}

/* --- Aliados Comerciales Marquee --- */
.aliados-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #ffffff, #fdfafd);
    border-radius: 30px;
    margin: 40px 0;
}

.aliado-card-home {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.aliado-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-purple);
}

.aliado-card-home img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.aliado-card-home:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Base Marquee Animation (Forward) */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Reverse Marquee Animation */
@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }

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

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-wrapper.marquee-reverse .marquee-content {
    animation: marquee-reverse 40s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .aliado-card-home {
        width: 150px;
        height: 100px;
        margin: 0 10px;
    }
}

/* --- ENCUESTAS MARQUEE ELITE --- */
.encuesta-section {
    padding: 40px 0;
    background: #fdfdfd;
    border-top: 1px solid #f1f1f1;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
}

.marquee-content.animate-marquee {
    animation: marquee-scroll 40s linear infinite;
}

.marquee-content.no-animate {
    width: 100%;
    justify-content: center;
    animation: none !important;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.encuesta-card-marquee {
    width: 500px;
    padding: 0 15px;
    flex-shrink: 0;
}

/* Responsivo para Tablets */
@media (max-width: 992px) {
    .encuesta-card-marquee {
        width: 450px;
    }
}

/* Responsivo para Móviles */
@media (max-width: 768px) {
    .marquee-container {
        padding: 20px 0;
        overflow-x: hidden;
    }

    .encuesta-card-marquee {
        width: 100%;
        max-width: 500px;
        padding: 0 15px;
        margin: 0 auto;
    }

    .encuesta-card-inner {
        padding: 20px;
    }

    .marquee-content.no-animate {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .marquee-content.no-animate .encuesta-card-marquee {
        width: 100%;
        margin-bottom: 25px;
    }

    .watermark-small {
        font-size: 2.2rem;
    }
}

.encuesta-card-inner {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.encuesta-card-marquee:hover .encuesta-card-inner {
    box-shadow: 0 15px 50px rgba(107, 70, 193, 0.08);
    transform: translateY(-5px);
}

.watermark-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    z-index: 5;
    text-transform: uppercase;
    white-space: nowrap;
}

.encuesta-header h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.encuesta-header p {
    font-size: 1.05rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.encuesta-radio {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.encuesta-radio:hover {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(107, 70, 193, 0.05);
}

.encuesta-radio:has(input:checked) {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(107, 70, 193, 0.1);
}

.encuesta-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.encuesta-radio input:checked+.radio-mark,
.encuesta-radio input:checked+.checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.encuesta-radio .radio-mark,
.encuesta-radio .checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    margin-right: 12px;
    position: relative;
    background: #fff;
    flex-shrink: 0;
}

.encuesta-radio .radio-mark {
    border-radius: 50%;
}

.encuesta-radio .checkbox-mark {
    border-radius: 4px;
}

.encuesta-radio input:checked+.checkbox-mark::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-text {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.result-bar-item {
    margin-bottom: 15px;
}

.result-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.opt-name {
    font-weight: 700;
    color: #4a5568;
}

.bar-percent {
    color: var(--primary-color);
    font-weight: 800;
}

.bar-bg {
    height: 8px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 1s ease;
}

.btn-votar-ajax {
    width: 100%;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}