:root {
    /* Color Palette - Light Mode - Expertiva Inspired with PH Accents */
    --primary: #ffffff;
    --primary-light: #f8fafc;
    --section-bg: #f3f4f6;
    --secondary: #d4af37; /* Metallic Gold */
    --secondary-hover: #b8860b; /* Dark Goldenrod */
    --secondary-light: #fef9c3; /* Light Yellow */
    --accent-navy: #0f172a; /* Corporate Navy */
    --accent-blue: #1e293b;
    --accent-gold: #fbbf24;
    --text-main: #0f172a;
    --text-muted: #4b5563;
    --white: #ffffff;
    --bg-border: #e5e7eb;
    
    /* Gradients */
    --grad-corporate: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --grad-gold: linear-gradient(90deg, #d4af37, #fbbf24);
    
    /* Spacing & Layout */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --z-preloader: 9999;
}

/* Preloader / Intro */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-preloader);
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: fadeInScale 1s ease-out forwards;
}

.preloader-logo {
    width: 280px; /* Tamaño base para desktop */
    max-width: 70vw; /* Asegura que no sea más ancho que la pantalla en mobile */
    height: auto;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.08));
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--grad-gold);
    animation: loadingBar 2s infinite ease-in-out;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes loadingBar {
    0% { left: -30%; }
    100% { left: 100%; }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--text-main);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar (Expertiva Style) */
.navbar {
    height: 75px;
    background: var(--primary);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--bg-border);
    transition: var(--transition);
}

.navbar.scrolled {
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    max-width: 100%;
    padding: 0 1rem;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

/* Text-Logo Styling */
.navbar-logo-text-brand, .preloader-logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.preloader-logo-text {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.corpo {
    color: #10b981; /* Vibrant Green */
}

.sue {
    color: #2563eb; /* Corporate Blue */
}

.navbar-logo-text-brand .corpo,
.navbar-logo-text-brand .sue {
    font-size: 1.6rem;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-width: 240px; /* Reduced for narrowness */
}

.logo-main {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-navy);
    line-height: 1.1;
    display: block;
    text-align: justify;
    text-align-last: justify;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 600;
    display: block;
    text-align: justify;
    text-align-last: justify;
    text-transform: none;
    line-height: 1;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a i,
.nav-menu a svg {
    display: none; /* Hidden on desktop */
}

.nav-sub {
    display: none; /* Hidden on desktop */
}

.btn-nav-admin {
    background: var(--secondary); /* Violeta Institucional */
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
}

.btn-nav-admin i {
    display: inline-block !important;
}

.btn-nav-admin:hover {
    background: #4f46e5; /* Un violeta sutilmente más denso */
    color: var(--white) !important;
}

.mobile-toggle {
    display: none;
}

/* Hero Slider Style */
.hero-slider {
    height: 75vh;
    min-height: 550px;
    position: relative;
    padding-top: 75px;
    text-align: center;
    overflow: hidden;
    background: #0f172a;
}

.slider-container {
    height: 100%;
    width: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-inner {
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-content-center {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(40px); /* Pure horizontal entry from right */
    transition: all 0.8s ease-out 0.2s;
}

.slide.active .hero-content-center {
    opacity: 1;
    transform: translateX(0);
}

    .slide.active .hero-inner {
        opacity: 1;
        transform: translateX(0);
    }

.hero-inner {
    width: 100%;
}

.hero-content-center {
    max-width: 900px;
    margin: 0 auto;
}

.hero-pre-title {
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-title span {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    white-space: nowrap;
    font-weight: 800;
    filter: drop-shadow(0px 1px 2px rgba(255, 255, 255, 0.5));
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-main {
    background: var(--secondary-light);
    color: var(--secondary-hover);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.btn-main:hover {
    background: var(--secondary-hover);
    color: var(--white) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 2rem; }
.next-btn { right: 2rem; }

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.white-text {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-primary-clean {
    background: var(--accent-navy);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 1.2rem 3rem;
    border-radius: 4px; /* less rounded for minimal aesthetic */
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.btn-primary-clean:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-alt {
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-alt:hover {
    background: var(--text-main);
    color: var(--white);
}

/* Stats Section */
.stats-section {
    background: var(--primary-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--bg-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    margin-bottom: 0.2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* About Section */
section {
    padding: 75px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle horizontal divider */
}

/* Specific resets for sections that don't need dividers */
.hero-slider, .footer-main {
    border-bottom: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--bg-border);
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

/* Overlay removed to show original colors */
/* .about-image::after { ... } */

.about-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
    aspect-ratio: 4 / 3; /* Recorte muy sutil en horizontal (landscape) */
    object-fit: cover;
    object-position: center;
}

.tag-accent {
    color: var(--secondary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: justify;
}

.btn-inline {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mission & Vision (Expertiva Cards Light Mode) */
.mv-section {
    background: var(--section-bg);
}

/* Section Headers */
.section-header-center, .section-header-left {
    margin-top: 0;
    margin-bottom: 3.5rem;
}

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

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--grad-gold);
    margin: 0.3rem auto;
}

.mv-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.mv-card-item {
    background: var(--primary);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 320px; /* Altura uniforme para todos los cards */
}

.mv-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.mv-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem 0.5rem;
    margin: 0;
    transition: var(--transition);
}

.icon-violet { color: #6F2F8C; } /* Pacto Histórico Violet */

.mv-icon-wrapper svg { 
    width: 72px; 
    height: 72px; 
    stroke-width: 1.5;
}

.mv-card-item:hover .mv-icon-wrapper {
    transform: scale(1.05);
}

/* Título en la zona blanca */
.mv-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    text-align: center;
    padding: 0.5rem 2rem 1.5rem;
    margin: 0;
}

.mv-content {
    background: rgba(111, 47, 140, 0.06);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--bg-border);
    flex: 1;
}

.mv-card-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Clean up highlight cards - removed completely for this new design */

/* Services / Cátedras Grid (Expertiva Light Mode) */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-box {
    background: var(--primary);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--bg-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

/* Cátedras: Fondos blancos con íconos violeta (mismo estilo que Nosotros) */
.service-img-css {
    height: 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    overflow: hidden;
    background: var(--primary); /* Fondo blanco */
    border-bottom: 1px solid var(--bg-border);
}

.service-img-css i,
.service-img-css svg {
    color: #6F2F8C; /* Violeta institucional */
    width: 72px;
    height: 72px;
    stroke-width: 1.5;
    position: relative;
    z-index: 1;
}

.catedral-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.service-box:hover .service-img-css i,
.service-box:hover .service-img-css svg {
    transform: scale(1.1);
    transition: var(--transition);
}

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

.service-content {
    padding: 2.5rem;
    background: rgba(111, 47, 140, 0.06); /* Violeta pastel, igual que Brújula Estratégica */
    border-top: 1px solid var(--bg-border);
    flex: 1;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-content p {
    color: var(--text-muted);
}

/* Organizational Structure (Minimalist Table) */
.team-section {
    background: var(--primary-light);
}

.team-table-grid {
    width: 100%;
    margin: 2rem 0;
    background: var(--primary);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    overflow: hidden;
}

.team-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--bg-border);
    transition: var(--transition);
    gap: 1.5rem;
}

.team-row:last-child {
    border-bottom: none;
}

.team-row:hover {
    background: var(--primary-light);
}

.team-pos {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 1px;
    width: 130px; /* Reducido para dar más espacio al nombre */
    flex-shrink: 0;
}

.team-avatar {
    width: 55px; /* Reducido un poco */
    height: 55px;
    background: var(--primary-light);
    border-radius: 10px;
    border: 1px solid var(--bg-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1; /* Soft Gray */
}

.team-avatar i {
    width: 24px;
    height: 24px;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.team-name {
    font-size: 0.95rem; /* Un pelo más pequeño */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
    white-space: nowrap; /* Forzamos a no hacer salto de línea */
}

.team-contact {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.team-contact i {
    width: 12px;
    height: 12px;
    color: var(--secondary);
}

/* Contact Form Section */
.contact-section {
    background: var(--bg-body);
    padding: 75px 0;
}

.contact-container-centered {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-centered {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info-centered p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.contact-form-wrapper {
    background: var(--primary);
    padding: 1.8rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--bg-border);
    width: 100%; /* Take full width of parent (650px) */
}

.contact-form .form-group {
    margin-bottom: 1rem; /* Reduced grouping */
}

.contact-form label {
    display: block;
    margin-bottom: 0.3rem; /* Reduced label spacing */
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem; /* Compact inputs */
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    background: var(--primary-light);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Footer (Expertiva Light Mode) */
.footer-main {
    background: var(--primary-light);
    padding: 20px 0 0; /* Reduced top padding */
    border-top: 1px solid var(--bg-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr; /* Dar más espacio a la última columna para que quepan en una sola línea */
    gap: 4rem;
    margin-bottom: 80px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer-col h4 {
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a { text-decoration: none; color: var(--text-muted); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); }

.footer-social-inline { display: flex; gap: 1.2rem; flex-wrap: nowrap; margin-top: 0.5rem; align-items: center; }
.footer-social-inline a { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-weight: 600; text-decoration: none; transition: var(--transition); white-space: nowrap; }
.footer-social-inline a i { color: var(--secondary); font-size: 22px; transition: var(--transition); }
.footer-social-inline a:hover { color: var(--secondary); transform: translateY(-2px); }
.footer-social-inline a:hover i { transform: scale(1.1); }

.footer-bottom {
    padding: 10px 0 15px; /* Compact bottom bar */
    text-align: center;
    border-top: 1px solid var(--bg-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Design & Mobile Menu */
@media (max-width: 992px) {
    .container {
        padding: 0 1.2rem;
    }

    /* Navbar Mobile */
    .navbar-container {
        display: flex;
        justify-content: space-between;
    }



    .logo {
        gap: 0.5rem;
    }

    .logo-text-wrapper {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .nav-menu a {
        display: flex;
        padding: 1.2rem 1.5rem;
        background: var(--primary); /* White card */
        border: 1px solid var(--bg-border);
        border-radius: 12px;
        justify-content: flex-start;
        align-items: center;
        gap: 1.2rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        text-transform: none; /* Override uppercase for mobile */
    }

    .nav-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-main);
    }

    .nav-sub {
        display: block;
        font-size: 0.8rem;
        color: var(--text-muted);
        font-weight: 400;
        margin-top: 0.1rem;
    }

    .nav-menu a:hover {
        border-color: var(--secondary);
    }

    .nav-menu a i,
    .nav-menu a svg {
        display: block;
        color: var(--secondary);
        width: 22px;
        height: 22px;
    }

    .btn-nav-cta {
        margin: 0.5rem auto !important;
        padding: 1.2rem 1.5rem !important;
        border-radius: 12px;
        width: 100%;
        background: var(--secondary-light) !important;
        color: var(--secondary-hover) !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        font-size: 1.05rem;
        border: 1px solid var(--secondary);
    }

    /* Hero Slider Responsive */
    .hero-slider {
        height: auto;
    }

    .slider-container {
        display: flex;
    }

    .slide {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 60px 0 80px;
        position: relative;
        opacity: 1;
        height: auto;
        min-height: 450px;
        overflow: visible;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .prev-btn { left: 1rem; }
    .next-btn { right: 1rem; }

    .slider-dots {
        bottom: 1.2rem;
    }

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

    /* Grids & Layouts */
    .about-grid, .mv-cards-grid, .services-container, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

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

    .stat-number {
        font-size: 1.8rem;
    }

    /* Sections */
    section {
        padding: 5px 0;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .mv-card-item.highlight-card {
        transform: scale(1);
    }

    .team-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 0.8rem;
    }

    .team-info {
        align-items: center;
        text-align: center;
    }
}

/* Portrait Mobile Optimization */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

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

    .mv-card-item {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    /* Logo text visibility handled in upper media query */

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Agenda & Calendar Section */
.agenda-section {
    background: var(--primary);
}

.calendar-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--bg-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
}

/* Customizing FullCalendar to PH Style */
:root {
    --fc-border-color: var(--bg-border);
    --fc-daygrid-dot-event-dot-color: var(--secondary);
    --fc-button-bg-color: var(--primary-light);
    --fc-button-border-color: var(--bg-border);
    --fc-button-text-color: var(--text-main);
    --fc-button-hover-bg-color: var(--secondary-light);
    --fc-button-hover-border-color: var(--secondary);
    --fc-button-active-bg-color: var(--secondary);
    --fc-button-active-border-color: var(--secondary);
}

.fc .fc-toolbar-title {
    font-size: 1.4rem !important;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.fc-event {
    cursor: pointer;
    border: none !important;
    padding: 4px 8px !important;
    font-weight: 600;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
}

.reunion { background-color: #6366f1 !important; color: white !important; }
.capacitacion { background-color: #a855f7 !important; color: white !important; }
.territorial { background-color: #06b6d4 !important; color: white !important; }

.calendar-actions {
    display: flex;
    justify-content: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

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

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form .form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.modal-form input, 
.modal-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--bg-border);
    font-family: inherit;
    transition: var(--transition);
}

.modal-form input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px var(--secondary-light);
}

.btn-full {
    width: 100%;
}

@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 1rem;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Security Modal Customization */
.modal-small {
    max-width: 400px !important;
    text-align: center;
}

#security-pin {
    background: var(--primary-light);
    border: 2px solid var(--bg-border);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 0.8rem;
    width: 80%;
    margin: 0 auto;
    display: block;
    color: var(--secondary);
    font-weight: 800;
}

#security-pin:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--secondary-light);
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Calendar Actions & Admin Panel */
.calendar-actions-wrapper {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.admin-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-admin {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--bg-border);
    outline: none;
}

.secondary-btn {
    background: var(--primary-light);
    color: var(--text-main);
}

.secondary-btn:hover {
    background: var(--secondary-light);
    border-color: var(--secondary);
    color: var(--secondary);
}

.danger-btn {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
}

.danger-btn:hover, .danger-btn.active-admin {
    background: #e11d48;
    color: white;
    border-color: #e11d48;
}

.admin-notice {
    background: #fef9c3;
    border: 1px solid #fef08a;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #854d0e;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: fadeIn 0.3s ease;
}

.btn-cancel-link {
    background: none;
    border: none;
    color: #b45309;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Details Modal Styles */
.modal-detail {
    max-width: 550px !important;
}

.detail-item {
    margin-bottom: 1.5rem;
    text-align: left;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.detail-item p {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}

.detail-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.description-item p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}

/* DASHBOARD FULLSCREEN (Entorno de Gestión CORPOSUE) */
.dashboard-fullscreen {
    width: 98% !important;
    height: 95vh !important;
    max-width: 1600px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #f8fafc;
}

.dashboard-layout {
    display: flex;
    height: 100%;
}

.dashboard-sidebar {
    width: 280px;
    background: #f8f7ff; /* Violeta Etéreo */
    color: #475569;
    padding: 2.5rem 0.5rem 1.5rem; /* Menos horizontal, espacio vertical */
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid rgba(124, 58, 237, 0.08);
}

.sidebar-header {
    padding: 0 1.2rem 2rem;
    flex-shrink: 0;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.sidebar-menu {
    flex-grow: 1;
    overflow-y: auto; /* Scroll dinámico */
    padding: 0 0.8rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.2) transparent;
}

/* Scrollbar Minimalista */
.sidebar-menu::-webkit-scrollbar { width: 4px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.1); border-radius: 10px; }
.sidebar-menu::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.3); }


.menu-group {
    margin-bottom: 2rem;
}

.menu-group h5 {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    padding-left: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Botones de Navegación con Alineación de Precisión */
.btn-sidebar-primary, .btn-sidebar-warning, .btn-sidebar-disabled {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.78rem; /* Tamaño compacto y elegante */
    cursor: pointer;
    display: flex;
    align-items: center; /* Alineación perfecta icono-texto */
    gap: 0.8rem;
    white-space: nowrap; /* Todo en una sola línea */
    transition: all 0.2s;
    border: none;
    text-align: left;
    background: transparent;
    color: #64748b;
}

/* Botón Destacado (Nuevo Encuentro) */
.btn-sidebar-primary {
    background: white;
    color: var(--secondary);
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-sidebar-primary:hover {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.btn-sidebar-warning:hover {
    background: rgba(225, 29, 72, 0.05);
    color: #e11d48;
}

.btn-sidebar-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(124, 58, 237, 0.05);
}

.btn-logout-sidebar {
    width: 100%;
    background: transparent;
    color: #94a3b8;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s;
}

.btn-logout-sidebar:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Iconos más pequeños y elegantes */
.dashboard-sidebar i {
    width: 16px;
    height: 16px;
}

.dashboard-main-view {
    flex-grow: 1;
    background: #f1f5f9; /* Gris Sutil Uniforme */
    padding: 3rem;
    display: flex;
    flex-direction: column;
}


.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-header h4 {
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 800;
}

.live-portal {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    flex-grow: 1;
    box-shadow: 0 40px 100px rgba(0,0,0,0.03);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.view-actions .close-dashboard {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
    color: #64748b;
}

.view-actions .close-dashboard:hover {
    background: #f8fafc;
    color: #ef4444;
    transform: rotate(90deg);
}

/* CALENDAR TWEAKS IN DASHBOARD */
.live-portal .fc {
    font-family: 'Outfit', sans-serif;
}

.live-portal .fc-event {
    cursor: pointer;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    border: none !important;
    font-weight: 600 !important;
}

@media (max-width: 1100px) {
    .dashboard-layout { flex-direction: column; overflow-y: auto; }
    .dashboard-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .dashboard-fullscreen { height: 98vh !important; }
}

/* SISTEMA DE ALERTAS PREMIUM (Minimalist) */
#custom-confirm .confirm-mini {
    max-width: 400px;
    padding: 2.5rem 2rem !important;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.confirm-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.confirm-icon i { width: 30px; height: 30px; }

#confirm-title {
    font-size: 1.3rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

#confirm-msg {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
}

.btn-proceed {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel {
    flex: 1;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-proceed:hover { transform: scale(1.02); filter: brightness(1.1); }
.btn-cancel:hover { background: #e2e8f0; }

/* TOAST NOTIFICATIONS */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.toast {
    background: white;
    color: #1e293b;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-left: 5px solid var(--secondary);
    animation: slideInToast 0.4s ease forwards;
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes slideInToast {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-left-color: #10b981; }
.toast.info { border-left-color: var(--secondary); }
.toast.warning { border-left-color: #f59e0b; }

/* Gestión de Vistas del Dashboard */
.live-portal {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-portal.active {
    display: block;
    opacity: 1;
}

.btn-sidebar-primary.active {
    background: var(--secondary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* Tabla de Contactos Admin */
.contacts-table-wrapper {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--bg-border);
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--text-main);
}

.admin-table th {
    background: #f1f5f9;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--bg-border);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-border);
    vertical-align: top;
    line-height: 1.5;
}

.admin-table tr:hover {
    background: #f8fafc;
}

.td-date {
    white-space: nowrap;
    color: var(--secondary);
    font-weight: 600;
    width: 150px;
}

.td-name {
    width: 200px;
}

.td-msg {
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 400px;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.btn-secondary-small {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    transition: var(--transition);
}

.btn-secondary-small:hover {
    background: var(--secondary-light);
    border-color: var(--secondary);
    color: var(--secondary);
}

@media (max-width: 768px) {
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}





