/* Preload Google Fonts with fallback */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('govco-footer.css');
@import url('logos-slider.css');

/* Fallback font stack */
@font-face {
    font-family: 'Poppins-Fallback';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-display: swap;
}

:root {
    font-size: 100%; /* Base font size for rem calculations */
    --primary-color: rgb(167, 56, 66);
    --secondary-color: rgb(217, 221, 241);
    --dark-color: rgb(0, 19, 29);
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --accent-light: rgba(167, 56, 66, 0.1);
    --shadow: rgba(0, 19, 29, 0.1);
    --font-family: 'Poppins', 'Poppins-Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

img {
    border: none !important;
    outline: none !important;
}

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

.top-bar {
    width: 100%;
    background: #3366CC;
    padding: 0;
    min-height: 32px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1101;
}

.barra-superior-govco {
    background-color: #3366CC;
    width: 100%;
}

.govco-margin-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 15px;
}

/* Header Styles - Moderno e Innovador */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--dark-color);
    padding: 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 19, 29, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(167, 56, 66, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 19, 29, 0.15);
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    position: relative;
}

/* Logo Moderno */
.logo-container {
    position: relative;
    margin-right: 3rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -2px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d63384 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-underline {
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), #d63384);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    margin-top: -5px;
}

.logo:hover .logo-underline {
    width: 100%;
}

.logo:hover .logo-text {
    transform: translateY(-2px);
}

/* Menú Principal Moderno */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-item {
    position: relative;
    margin: 0;
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    /* Poppins Light */
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 0;
    width: 100%;
    border-radius: 12px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.nav-text {
    position: relative;
    z-index: 2;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #d63384);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(167, 56, 66, 0.05);
    transform: translateY(-2px);
}

.nav-link:hover .nav-indicator {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(167, 56, 66, 0.1);
}

.nav-link.active .nav-indicator {
    width: 80%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.dropdown:hover > .nav-link .dropdown-icon,
.dropdown.active > .nav-link .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-submenu.active > .dropdown-icon {
    transform: rotate(0deg) !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 19, 29, 0.15);
    border: 1px solid rgba(167, 56, 66, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

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

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    /* Poppins Light */
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dropdown-item:hover {
    background: rgba(167, 56, 66, 0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-divider {
    height: 1px;
    background: rgba(167, 56, 66, 0.1);
    margin: 0.5rem 1rem;
}

/* Botones de Acción */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d63384 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    /* Poppins Light */
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(167, 56, 66, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 56, 66, 0.4);
}

/* Menú de Usuario */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(167, 56, 66, 0.05);
    border: 1px solid rgba(167, 56, 66, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    /* Poppins Light */
    color: var(--dark-color);
}

.user-btn:hover {
    background: rgba(167, 56, 66, 0.1);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d63384 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 19, 29, 0.15);
    border: 1px solid rgba(167, 56, 66, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

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

.user-dropdown .dropdown-item.logout {
    color: #dc3545;
}

.user-dropdown .dropdown-item.logout:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Botón de Búsqueda */
.search-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(167, 56, 66, 0.2);
    background: rgba(167, 56, 66, 0.05);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(167, 56, 66, 0.1);
    transform: translateY(-1px);
}

/* Overlay de Búsqueda */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 19, 29, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1500px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1.5rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    /* Poppins Light */
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 19, 29, 0.2);
}

.search-close {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Hamburger Menu Moderno */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Nested Dropdown Styles */
.dropdown-submenu {
    position: relative;
    cursor: pointer;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu.active > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
    margin-left: 0;
}

.hamburger:hover {
    background: rgba(167, 56, 66, 0.05);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
.main-content {
    margin-top: 0;
    min-height: calc(100vh - 138px);
}

/* Hero Section with Slider */
.hero {
    position: relative;
    height: 85vh;
    overflow: hidden;
    background: #ffffff;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 600px;
    padding: 0 5%;
    margin-left: 5%;
    animation: slideInUp 1s ease-out;
}

.slide-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: slideInUp 1s ease-out;
}

.slide-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.2s both;
}

.slide-content .btn {
    animation: slideInUp 1s ease-out 0.4s both;
}

.slide-content .btn-hero {
    background: #ffffff;
    color: #333333;
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: slideInUp 1s ease-out 0.4s both;
}

.slide-content .btn-hero:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    color: #000000;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(167, 56, 66, 0.8);
    border-color: rgba(167, 56, 66, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn span {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 4;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    border-color: white;
    transform: scale(1.2);
}

/* Slider Logo */
.slider-logo {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 20;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    border: none;
    outline: none;
}

.slider-logo:hover {
    opacity: 1;
}

.slider-logo-img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

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

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

/* Wave Effect Styles */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
    overflow: hidden;
}

.wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: block;
}

.wave-path {
    opacity: 0.8;
    filter: drop-shadow(0 2px 8px rgba(0, 19, 29, 0.2));
}

.wave1 {
    animation: waveFloat1 8s ease-in-out infinite;
}

.wave2 {
    animation: waveFloat2 6s ease-in-out infinite;
}

.wave3 {
    animation: waveFloat3 10s ease-in-out infinite;
}

@keyframes waveFloat1 {

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

    25% {
        transform: translateX(-10px) translateY(-5px);
    }

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

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

@keyframes waveFloat2 {

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

    33% {
        transform: translateX(8px) translateY(-4px);
    }

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

@keyframes waveFloat3 {

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

    20% {
        transform: translateX(-8px) translateY(-2px);
    }

    40% {
        transform: translateX(6px) translateY(-5px);
    }

    60% {
        transform: translateX(-4px) translateY(-3px);
    }

    80% {
        transform: translateX(7px) translateY(-4px);
    }
}

/* Responsive Wave Effect */
@media (max-width: 768px) {
    .hero {
        height: 75vh;
    }

    .slide-content {
        max-width: 90%;
        margin-left: 5%;
        padding: 0 3%;
    }

    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .wave-container {
        height: 80px;
    }

    .wave-svg {
        height: 80px;
    }

    /* Slider Logo - Tablet */
    .slider-logo {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .slider-logo-img {
        height: 50px;
        max-width: 120px;
    }

    /* Welcome Section - Tablet */
    .welcome-content-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

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

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

    .welcome-subtitle {
        font-size: 1rem;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .welcome-image-container {
        max-width: 400px;
    }

    .decoration-circle-1 {
        width: 60px;
        height: 60px;
        top: -15px;
        right: -15px;
    }

    .decoration-circle-2 {
        width: 90px;
        height: 90px;
        bottom: -20px;
        left: -20px;
    }
}

/* Button Styles - Villa Fontana Inspired */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Welcome Section - Villa Fontana Style */
.welcome-section {
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}

.welcome-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.welcome-text-content {
    flex: 1;
    padding-right: 40px;
    max-width: 600px;
}

.visit-counter {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
}

.welcome-header {
    margin-bottom: 2rem;
}

.welcome-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, rgb(167, 56, 66) 0%, rgb(217, 221, 241) 100%);
    margin-bottom: 1rem;
    border-radius: 2px;
}

.welcome-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(167, 56, 66);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgb(1, 4, 18);
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.welcome-btn {
    display: inline-block;
    background: linear-gradient(135deg, rgb(167, 56, 66) 0%, rgb(217, 221, 241) 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(167, 56, 66, 0.3);
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 56, 66, 0.4);
    color: white;
    text-decoration: none;
}

.welcome-image-content {
    flex: 1;
    position: relative;
}

.welcome-image-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.welcome-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.welcome-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.welcome-image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(167, 56, 66, 0.1) 0%, rgba(217, 221, 241, 0.1) 100%);
}

.decoration-circle-1 {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, rgba(167, 56, 66, 0.2) 0%, rgba(217, 221, 241, 0.2) 100%);
}

.decoration-circle-2 {
    width: 120px;
    height: 120px;
    bottom: -30px;
    left: -30px;
    background: linear-gradient(135deg, rgba(217, 221, 241, 0.15) 0%, rgba(167, 56, 66, 0.15) 100%);
}

.decoration-accent {
    position: absolute;
    background: linear-gradient(45deg, rgb(167, 56, 66) 0%, rgb(217, 221, 241) 100%);
    border-radius: 10px;
}

.decoration-accent-1 {
    width: 40px;
    height: 6px;
    top: 30px;
    left: -15px;
    transform: rotate(-45deg);
}

.decoration-accent-2 {
    width: 30px;
    height: 4px;
    bottom: 40px;
    right: -10px;
    transform: rotate(45deg);
}

/* Installations Section - Villa Fontana Style */
.installations-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-large {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #333333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle-large {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: #666666;
    margin: 0;
    text-transform: capitalize;
}

.installations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.installation-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.installation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.installation-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

.installation-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
}

/* University Allies Section - Villa Fontana Style */
.university-allies-section {
    padding: 80px 0;
    background: #ffffff;
}

.allies-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.allies-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.allies-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.7;
}

.allies-logos {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ally-logo {
    width: auto;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
    padding: 10px;
}

.ally-logo:hover {
    transform: scale(1.1);
}

.ally-logo img {
    max-width: 200px;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.ally-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.logo-placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #999999;
    text-align: center;
}

/* News Section - Villa Fontana Style */
.news-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.news-section .container {
    max-width: 100%;
    padding: 0 2rem;
}

.news-grid-villa {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.news-item-villa {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

/* 3D hover effect is now handled by JavaScript (3d-cards.js) */


.news-content-villa {
    padding: 30px;
}

.news-content-villa h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content-villa p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Events Section - Villa Fontana Style */
.events-section {
    padding: 80px 0;
    background: #ffffff;
}

.events-description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.events-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-item {
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #999999;
}

/* Real image element for gallery */
.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agenda-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.agenda-section .container {
    max-width: 100%;
    padding-left: 2 rem;
    padding-right: 2 rem;
}

.agenda-header {
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.agenda-header-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.agenda-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
}

.agenda-subtitle {
    font-size: 0.95rem;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.agenda-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.agenda-download {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
}

.agenda-birthdays {
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.agenda-birthdays-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.agenda-birthdays-subtitle {
    font-size: 0.85rem;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.agenda-birthdays-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agenda-birthdays-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f7f7f7;
    border-radius: 8px;
}

.agenda-birthdays-day {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #a73842;
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenda-birthdays-name {
    font-weight: 600;
    color: #222222;
}

.agenda-birthdays-empty {
    font-size: 0.9rem;
    color: #666666;
    background: #f3f3f3;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.agenda-week-btn {
    background: var(--dark-color);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.agenda-week-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.agenda-week-label {
    font-weight: 600;
    color: var(--dark-color);
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 6px 14px;
    border-radius: 999px;
}

.agenda-week {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.agenda-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.agenda-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #e6e6e6;
    background: #ffffff;
}

.agenda-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.agenda-day-number {
    width: 48px;
    height: 48px;
    background: #a73842;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.agenda-day-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.agenda-month {
    font-size: 1rem;
    color: #666666;
}

.agenda-weekday {
    font-size: 1rem;
    font-weight: 700;
    color: #666666;
    text-transform: uppercase;
}

.agenda-content {
    flex: 1;
    padding: 16px 18px;
    background: #efefef;
}

.agenda-topline {
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 10px;
    color: #111111;
}

.agenda-items {
    background: #f3f3f3;
    border-radius: 8px;
    padding: 8px 0;
}

.agenda-item {
    padding: 10px 0;
    border-top: 1px solid #d9d9d9;
    margin: 0 16px;
}

.agenda-item:first-child {
    border-top: none;
}

.agenda-time {
    font-weight: 700;
    color: #111111;
    margin-bottom: 4px;
}

.agenda-text {
    color: #333333;
    line-height: 1.35;
}

.agenda-place,
.agenda-attend {
    display: block;
    font-weight: 700;
    color: #111111;
}

.agenda-attend {
    font-weight: 500;
}

@media (max-width: 1024px) {
    .agenda-header {
        flex-direction: column;
        text-align: center;
    }

    .agenda-controls {
        justify-content: center;
    }

    .agenda-download {
        justify-content: center;
    }

    .agenda-birthdays {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .news-grid-villa {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .news-grid-villa {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agenda-week {
        grid-template-columns: 1fr;
    }

    .agenda-week-btn {
        width: 100%;
    }

    .agenda-week-label {
        width: 100%;
        text-align: center;
    }
}

/* Section Styles - Villa Fontana Inspired */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Cards - Villa Fontana Style */
.card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(167, 56, 66, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--dark-color));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(167, 56, 66, 0.2);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card p {
    color: var(--medium-gray);
    line-height: 1.7;
    font-size: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.login-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: 700;
}

/* Calendar Styles */
.calendar-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

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

.calendar-nav {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.calendar-nav:hover {
    background: var(--dark-color);
}

/* News and Publications */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.news-excerpt {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Footer - Villa Fontana Style */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer .container {
    max-width: none;
    padding: 0 2rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    line-height: 1.8;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

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

.visit-counter-footer .visit-counter {
    display: inline-block;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
}

/* Responsive Design - Villa Fontana Style */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding-top: 100px;
        overflow-y: auto;
    }

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

    .nav-item {
        margin: 0.5rem 0;
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.3s ease;
    }

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

    .nav-menu.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu.active .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-link {
        font-family: 'Poppins', sans-serif;
        font-size: 1.2rem;
        padding: 1.5rem 2rem;
        display: block;
        border-radius: 12px;
        margin: 0 1rem;
        font-weight: 300;
        /* Poppins Light */
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(167, 56, 66, 0.1), transparent);
        transition: left 0.5s;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(248, 249, 250, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
        margin: 0.5rem 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .dropdown.active > .dropdown-menu,
    .dropdown-submenu.active > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        animation: slideDown 0.3s ease;
    }

    .dropdown-menu .dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        margin-left: 1.5rem;
        margin-right: 0.5rem;
        background: rgba(0, 0, 0, 0.1);
        width: calc(100% - 2rem);
        display: none; /* Ocultar por defecto en móvil */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-right: none;
    }

    .dropdown-item {
        padding: 1rem 1.5rem;
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        font-weight: 300;
        /* Poppins Light */
    }

    .nav-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding: 0 2rem 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 2rem;
    }

    .search-btn {
        order: -1;
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .btn-login,
    .user-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .user-menu {
        position: static;
        background: rgba(248, 249, 250, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Prevenir scroll del body cuando el menú está abierto */
    body.menu-open {
        overflow: hidden;
    }

    /* Animaciones adicionales para móvil */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    /* Hero Slider Mobile */
    .slide-content {
        padding: 0 20px;
        margin-left: 0;
        text-align: center;
    }

    .slide-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .slide-content .btn-hero {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
    }

    .slider-btn span {
        font-size: 1.3rem;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Sections Mobile */
    .welcome-section,
    .installations-section,
    .university-allies-section,
    .news-section,
    .events-section {
        padding: 60px 0;
    }

    /* Welcome Section - Mobile */
    .welcome-content-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

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

    .welcome-accent {
        width: 50px;
        height: 3px;
        margin: 0 auto 1rem auto;
    }

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

    .welcome-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .welcome-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .welcome-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .welcome-image-container {
        max-width: 320px;
    }

    .welcome-image-frame {
        border-radius: 15px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .welcome-image {
        border-radius: 15px;
    }

    .decoration-circle-1 {
        width: 50px;
        height: 50px;
        top: -10px;
        right: -10px;
    }

    .decoration-circle-2 {
        width: 70px;
        height: 70px;
        bottom: -15px;
        left: -15px;
    }

    .decoration-accent-1 {
        width: 30px;
        height: 4px;
        top: 20px;
        left: -10px;
    }

    .decoration-accent-2 {
        width: 25px;
        height: 3px;
        bottom: 30px;
        right: -8px;
    }

    .welcome-title,
    .allies-title {
        font-size: 2rem;
    }

    .section-title-large {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .section-subtitle-large {
        font-size: 1.5rem;
    }

    .welcome-text,
    .allies-subtitle,
    .events-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .installations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .installation-item {
        padding: 30px 20px;
    }

    .allies-logos {
        gap: 20px;
        padding: 0 15px;
    }

    .ally-logo {
        width: auto;
        height: 70px;
    }

    .news-grid-villa {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .news-content-villa {
        padding: 25px;
    }

    .events-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem;
    }

    .logo-text {
        font-size: 2rem;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1.2rem 1.5rem;
    }

    .search-overlay {
        padding: 1rem;
    }

    .search-container {
        max-width: 100%;
    }

    .search-input {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }

    .hero {
        height: 70vh;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.95rem;
    }

    .welcome-title,
    .allies-title {
        font-size: 1.7rem;
    }

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

    .section-subtitle-large {
        font-size: 1.3rem;
    }

    .news-grid-villa {
        grid-template-columns: 1fr;
    }

    .allies-logos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .ally-logo {
        width: auto;
        height: 70px;
    }

    /* Slider Logo - Mobile */
    .slider-logo {
        bottom: 1rem;
        right: 1rem;
    }

    .slider-logo-img {
        height: 40px;
        max-width: 100px;
    }

    /* Welcome Section - Small Mobile */
    .welcome-section {
        padding: 50px 0;
    }

    .welcome-content-wrapper {
        gap: 25px;
        padding: 0 10px;
    }

    .welcome-title {
        font-size: 1.6rem;
    }

    .welcome-subtitle {
        font-size: 0.85rem;
    }

    .welcome-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .welcome-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .welcome-image-container {
        max-width: 280px;
    }

    .decoration-circle-1 {
        width: 40px;
        height: 40px;
        top: -8px;
        right: -8px;
    }

    .decoration-circle-2 {
        width: 60px;
        height: 60px;
        bottom: -12px;
        left: -12px;
    }
}

/* Mejoras para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-link {
        font-family: 'Poppins', sans-serif;
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        font-weight: 300;
        /* Poppins Light */
    }

    .dropdown-menu {
        min-width: 200px;
    }

    .search-btn,
    .btn-login,
    .user-btn {
        font-family: 'Poppins', sans-serif;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        font-weight: 300;
        /* Poppins Light */
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.95rem;
    }

    .welcome-title,
    .allies-title {
        font-size: 1.7rem;
    }

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

    .section-subtitle-large {
        font-size: 1.3rem;
    }

    .allies-logos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .ally-logo {
        width: auto;
        height: 60px;
    }

    /* Slider Logo - Very Small Screens */
    .slider-logo {
        bottom: 0.8rem;
        right: 0.8rem;
    }

    .slider-logo-img {
        height: 35px;
        max-width: 80px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Contador de visitas en footer */
.visit-counter-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    padding: 0;
    display: inline-block;
}

.visit-counter {
    font-weight: 500;
    letter-spacing: 0.5px;
}
/* Accessibility Controls */
.accessibility-controls {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reducido de 10px */
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    align-items: center;
    width: 100%;
}

.access-btn {
    width: 36px; /* Reducido de 40px para encajar mejor */
    height: 36px;
    border-radius: 50%;
    background-color: transparent; /* Fondo transparente como en la imagen */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    box-shadow: none; /* Sin sombra individual */
    margin-bottom: 0;
}

.access-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.access-btn i {
    font-size: 1.2rem; /* Ajustado al nuevo tamaño */
}

.font-control-icon {
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    line-height: 1;
}

.font-control-icon sup {
    font-size: 0.6em;
    position: absolute;
    top: -2px;
    right: -8px;
}

/* High Contrast Mode */
html.high-contrast,
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

/* Secciones Principales */
.high-contrast .header,
.high-contrast .footer,
.high-contrast .card,
.high-contrast .news-item-villa,
.high-contrast .floating-sidebar,
.high-contrast .welcome-section,
.high-contrast .apple-carousel,
.high-contrast .university-allies-section,
.high-contrast .news-section,
.high-contrast .hero,
.high-contrast .top-bar,
.high-contrast .navbar,
.high-contrast .apple-carousel-card,
.high-contrast .apple-carousel-card-detail,
.high-contrast .news-content-villa,
.high-contrast .ally-logo,
.high-contrast .agenda-section,
.high-contrast .agenda-card,
.high-contrast .agenda-content,
.high-contrast .agenda-date,
.high-contrast .agenda-items {
    background-color: #000 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
}

/* Bordes para separar elementos en fondo negro */
.high-contrast .news-item-villa,
.high-contrast .apple-carousel-card,
.high-contrast .card,
.high-contrast .welcome-image-frame,
.high-contrast .navbar,
.high-contrast .footer {
    border: 1px solid #fff !important;
}

/* Textos */
.high-contrast a,
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast h6,
.high-contrast p,
.high-contrast span,
.high-contrast i,
.high-contrast li,
.high-contrast .welcome-text,
.high-contrast .apple-carousel-title,
.high-contrast .apple-carousel-subtitle,
.high-contrast .section-title-large,
.high-contrast .section-subtitle-large,
.high-contrast .news-date,
.high-contrast .apple-carousel-card-category,
.high-contrast .apple-carousel-card-title,
.high-contrast .agenda-topline,
.high-contrast .agenda-time,
.high-contrast .agenda-place,
.high-contrast .agenda-attend {
    color: #fff !important;
}

/* Enlaces y Botones */
.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

.high-contrast .btn,
.high-contrast .access-btn,
.high-contrast .welcome-btn,
.high-contrast .btn-hero {
    background-color: #000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
    font-weight: bold !important;
}

.high-contrast .access-btn i {
    color: #ffff00 !important;
}

/* Ajustes Específicos */
.high-contrast .wave-container svg,
.high-contrast .wave-container {
    display: none !important; /* Ocultar ondas decorativas */
}

.high-contrast .welcome-accent,
.high-contrast .decoration-circle,
.high-contrast .decoration-accent {
    background-color: #fff !important;
    opacity: 0.2;
}

/* Menús Desplegables (Submenús) en Alto Contraste */
.high-contrast .dropdown-menu,
.high-contrast .user-dropdown {
    background-color: #000 !important;
    border: 1px solid #fff !important;
    box-shadow: none !important;
}

.high-contrast .dropdown-item {
    color: #fff !important;
}

.high-contrast .dropdown-item:hover {
    background-color: #000 !important;
    color: #ffff00 !important;
    text-decoration: underline !important;
}

.high-contrast .user-dropdown .dropdown-item.logout {
    color: #ff3333 !important;
}

.high-contrast .user-dropdown .dropdown-item.logout:hover {
    background-color: #000 !important;
    text-decoration: underline !important;
}

/* Menú Móvil en Alto Contraste */
.high-contrast .nav-menu {
    background-color: #000 !important;
}

.high-contrast .nav-menu.active {
    background-color: #000 !important;
    border-right: 1px solid #fff;
}

/* Buscador en Alto Contraste */
.high-contrast .search-overlay {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.high-contrast .search-input {
    color: #fff !important;
    border-bottom: 2px solid #fff !important;
}

.high-contrast .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.high-contrast .search-close {
    color: #fff !important;
}

.floating-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #004884; /* Azul oscuro institucional */
    padding: 12px 0; /* Padding vertical, sin horizontal */
    border-radius: 23px 0 0 23px; /* Bordes redondeados semicirculares */
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    width: 46px; /* Ancho ajustado a los botones (36px + márgenes) */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-sidebar.closed {
    transform: translateY(-50%) translateX(100%);
}

.sidebar-toggle {
    position: absolute;
    left: -18px; /* Ajustado */
    top: 50%;
    transform: translateY(-50%);
    width: 18px; /* Más pequeño */
    height: 36px;
    background-color: #004884; /* Azul oscuro institucional */
    color: white;
    border: none;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    outline: none;
    z-index: 10000;
}

.sidebar-toggle::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 2px;
}

.floating-sidebar.closed .sidebar-toggle::before {
    transform: rotate(225deg);
    margin-right: -2px;
}

/* Accessibility Buttons inside Sidebar */
.access-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    font-weight: 700; /* Letra más gruesa */
    font-size: 1.1rem;
}

.access-btn:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.access-btn i {
    font-size: 1.4rem; /* Iconos más grandes */
}

/* Eliminar bordes y fondos de lista anterior si quedaron */
.floating-sidebar-list {
    display: none;
}

/* Mobile Responsiveness for Sidebar */
@media (max-width: 768px) {
    .floating-sidebar {
        display: none;
    }
}
