/* Grupo Collantes - Estilos principales */

/* Fuentes personalizadas */
@font-face {
    font-family: 'Sansa Pro';
    src: url('../assets/media/SansaPro-Normal.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sansa Pro';
    src: url('../assets/media/SansaPro-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Configuración de colores personalizados */
:root {
    --color-primary: #990000;
    --color-secondary: #F89900;
    --color-tertiary: #DCDBDB;
    --color-white: #FFFFFF;
    --font-sansa: 'Sansa Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== ESTILOS BASE ===== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-sans {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Alpine.js cloak - ocultar elementos hasta que Alpine esté listo */
[x-cloak] {
    display: none;
}

/* ===== HEADER STYLES ===== */
header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
}

/* Top Bar */
.top-bar {
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 0;
    font-family: var(--font-sansa);
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar svg {
    width: 1rem;
    height: 1rem;
}

/* Main Header */
.main-header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    padding: 0 0.5rem;
}

/* Padding reducido en pantallas medianas pequeñas */
@media (min-width: 768px) and (max-width: 900px) {
    .header-content {
        padding: 0 0.3rem;
    }
}

@media (min-width: 1281px) {
    .header-content {
        padding: 0 1rem;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

/* Logo más pequeño en pantallas medianas pequeñas */
@media (min-width: 768px) and (max-width: 900px) {
    .logo-image {
        height: 32px;
        max-width: 120px;
    }
}

@media (min-width: 1281px) {
    .logo-image {
        height: 45px;
        max-width: 160px;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    flex: 1;
    justify-content: center;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}    

/* Ajustes para pantallas medianas pequeñas */
@media (min-width: 768px) and (max-width: 850px) {
    .desktop-nav {
        gap: 0.15rem;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
}

/* Ajustes para pantallas medianas */
@media (min-width: 851px) and (max-width: 900px) {
    .desktop-nav {
        gap: 0.25rem;
        margin-left: 0.3rem;
        margin-right: 0.3rem;
    }
}

/* Ajustes para pantallas medianas-grandes */
@media (min-width: 901px) and (max-width: 1200px) {
    .desktop-nav {
        gap: 0.5rem;
        margin-left: 0.6rem;
        margin-right: 0.6rem;
    }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1201px) {
    .desktop-nav {
        gap: 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

.nav-link {
    color: #374151;
    font-family: var(--font-sansa);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tamaño de fuente responsive para nav links */
@media (min-width: 768px) and (max-width: 850px) {
    .nav-link {
        font-size: 0.5rem;
        padding: 0.5rem 0.1rem;
        gap: 0.15rem;
    }
}

@media (min-width: 851px) and (max-width: 900px) {
    .nav-link {
        font-size: 0.55rem;
        padding: 0.5rem 0.15rem;
        gap: 0.2rem;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .nav-link {
        font-size: 0.65rem;
        padding: 0.5rem 0.25rem;
    }
}

@media (min-width: 1281px) and (max-width: 1440px) {
    .nav-link {
        font-size: 0.75rem;
    }
}

@media (min-width: 1441px) {
    .nav-link {
        font-size: 0.8rem;
    }
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-icon {
    width: 1rem;
    height: 1rem;
}

/* Iconos más pequeños en pantallas medianas */
@media (min-width: 768px) and (max-width: 900px) {
    .nav-icon {
        width: 0.75rem;
        height: 0.75rem;
    }
}

/* Header Right */
.header-right {
    display: none;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .header-right {
        display: flex;
    }
}

/* Gap reducido en pantallas medianas pequeñas */
@media (min-width: 768px) and (max-width: 900px) {
    .header-right {
        gap: 0.5rem;
    }
}

/* Ocultar botón de contactar solo en el rango más compacto */
@media (min-width: 768px) and (max-width: 900px) {
    .header-right .btn-outline {
        display: none;
    }
}

/* Ocultar botón de búsqueda solo en pantallas muy pequeñas */
@media (min-width: 768px) and (max-width: 820px) {
    .header-right .search-btn {
        display: none;
    }
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    font-family: var(--font-sansa);
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    background-color: #f9fafb;
    border-color: var(--color-primary);
}

.btn-outline svg {
    width: 0.875rem;
    height: 0.875rem;
}

.search-btn {
    color: #374151;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--color-primary);
}

.search-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Icono de búsqueda más pequeño en pantallas medianas */
@media (min-width: 851px) and (max-width: 1200px) {
    .search-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ===== MEGA MENU ===== */
.mega-menu-wrapper {
    position: fixed;
    top: 7.5rem;
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
}

/* Ocultar cualquier mega menú que aparezca en el footer o fuera del header */
.mega-menu-overlay,
#mega-menu-overlay,
.mega-menu-wrapper:not(.active) {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.mega-menu-wrapper.active {
    display: block;
}

.mega-menu-background {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.mega-menu-background::before,
.mega-menu-background::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100vw;
    background-color: #4a5469;
    z-index: -1;
}

.mega-menu-background::before {
    right: 100%;
}

.mega-menu-background::after {
    left: 100%;
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
}

/* Ajustes para pantallas medianas */
@media (max-width: 1024px) {
    .mega-menu-content {
        max-width: 900px;
        padding: 2.5rem 1.5rem;
        gap: 3rem;
    }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .mega-menu-content {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 2rem;
    }
}

.mega-menu-left {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-family: var(--font-sansa);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .mega-menu-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 768px) {
    .mega-menu-title {
        font-size: 1.5rem;
    }
}

.mega-menu-description {
    font-family: var(--font-sansa);
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
}

.mega-menu-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    text-decoration: none;
    color: #1f2937;
    font-family: var(--font-sansa);
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.2s ease;
}

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

.mega-menu-link:hover {
    color: var(--color-primary);
}

.mega-menu-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.mega-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #1f2937;
}

.mega-menu-close:hover {
    color: #000;
}

.mega-menu-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 7.5rem;
}

.hero-bg {
    background-image: url('../assets/images/servicio-limpieza-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-sansa);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.action-btn-primary:hover {
    background-color: #7a0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.3);
}

.hero-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===== CONTAINER ===== */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1200px) {
    .container-custom {
        padding: 0 2rem;
    }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: white;
    padding: 4rem 0;
    position: relative;
    overflow: visible;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 100%);
    z-index: 0;
}

.services-title {
    font-family: var(--font-sansa);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:nth-child(odd) {
    margin-top: 4rem;
}

.service-card:nth-child(even) {
    margin-top: 0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-card-title {
    font-family: var(--font-sansa);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    font-family: var(--font-sansa);
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
    text-decoration: none;
    font-family: var(--font-sansa);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--color-primary);
}

.service-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.service-link:hover .service-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
    }
    
    .services-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card:nth-child(odd),
    .service-card:nth-child(even) {
        margin-top: 0;
    }
}

/* ===== SPEAK UP SECTION ===== */
.speakup-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary) 100%);
    padding: 4rem 0;
}

.speakup-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.speakup-left {
    display: flex;
    flex-direction: column;
}

.speakup-title {
    font-family: var(--font-sansa);
    font-size: 4rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 1rem;
}

.speakup-subtitle {
    font-family: var(--font-sansa);
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    line-height: 1.3;
}

.speakup-right {
    color: white;
}

.speakup-text {
    font-family: var(--font-sansa);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: white;
}

.speakup-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem 0;
}

.speakup-list li {
    margin-bottom: 0.5rem;
    color: white;
}

.speakup-contact {
    margin-top: 1.5rem;
}

.speakup-phone {
    font-family: var(--font-sansa);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.speakup-link-text {
    font-family: var(--font-sansa);
    font-size: 1rem;
    color: white;
}

.speakup-link {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.speakup-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .speakup-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .speakup-title {
        font-size: 2.5rem;
    }
    
    .speakup-subtitle {
        font-size: 1.25rem;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #2d3e50;
    color: white;
}

.footer-top {
    padding: 3rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-social-icon {
    width: 20px;
    height: 20px;
}

.footer-title {
    font-family: var(--font-sansa);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    font-family: var(--font-sansa);
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

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

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-family: var(--font-sansa);
    font-size: 0.875rem;
    color: white;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal-link {
    font-family: var(--font-sansa);
    font-size: 0.875rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-legal-link:hover {
    opacity: 0.7;
}

/* Footer Mobile Accordion */
.footer-column-mobile {
    display: none;
}

.footer-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--font-sansa);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.footer-accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.footer-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.footer-accordion-content.active {
    max-height: 500px;
}

.footer-accordion-btn .footer-accordion-icon.active {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        display: none;
    }
    
    .footer-column-mobile {
        display: block;
    }
    
    .footer-logo {
        margin: 0 auto 1.5rem auto;
        display: block;
    }
    
    .footer-social {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ===== MOBILE MENU ===== */
/* Contenedor del sistema de menú móvil - solo visible en móvil */
@media (min-width: 768px) {
    #mobile-menu-system {
        display: none;
    }
}

.mobile-menu-btn {
    padding: 0.5rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.search-btn-mobile {
    padding: 0.5rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    color: #374151;
    transition: color 0.3s ease;
}

.search-btn-mobile:hover {
    color: var(--color-primary);
}

.mobile-menu {
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.3s ease;
    font-family: var(--font-sansa);
    font-weight: 400;
    font-size: 1.125rem;
    text-decoration: none;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    cursor: pointer;
}

.mobile-menu-item:hover {
    color: var(--color-primary);
}

.mobile-menu-arrow {
    width: 1.5rem;
    height: 1.5rem;
    color: #1f2937;
    transition: transform 0.2s ease;
}

.mobile-submenu {
    background-color: #f9fafb;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.mobile-submenu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    font-family: var(--font-sansa);
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-item:hover {
    color: var(--color-primary);
    background-color: #f3f4f6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== VIDEOS SECTION STYLES ===== */
.videos-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.videos-title {
    font-family: var(--font-sansa);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.videos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 1000px;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-image {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
}

.video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(1.02) contrast(1.05);
}

.video-card:hover .video-img {
    transform: scale(1.05);
}

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

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    transition: transform 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.1);
}

.video-content {
    padding: 1.5rem;
}

.video-card-title {
    font-family: var(--font-sansa);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.video-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===== VIDEO MODAL STYLES ===== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

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

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: black;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: background-color 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

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

/* Responsive adjustments for video modal */
@media (max-width: 768px) {
    .videos-grid {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .video-card {
        max-width: 100%;
    }
    
    .video-image {
        height: 250px;
    }
    
    .videos-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .video-modal {
        padding: 10px;
    }
    
    .video-modal-content {
        max-height: 80vh;
    }
    
    .video-container {
        padding-bottom: 60%; /* Slightly taller on mobile */
    }
}

@media (max-width: 480px) {
    .video-image {
        height: 200px;
    }

    .videos-section {
        padding: 60px 0;
    }
}

/* ===== MOBILE MENU ===== */
/* Mobile Menu Styles */
.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.3s ease;
    font-family: var(--font-sansa);
    font-weight: 400;
    font-size: 1.125rem;
    text-decoration: none;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.mobile-menu-item:hover {
    color: var(--color-primary);
}

.mobile-menu-main-item {
    font-weight: 500;
    font-size: 1.2rem;
}

.mobile-menu-contact {
    border-top: 2px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.mobile-submenu {
    background-color: #f9fafb;
    margin: 0.5rem 0;
    padding: 0 1rem;
    border-radius: 8px;
}

.mobile-submenu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    font-family: var(--font-sansa);
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-item:hover {
    color: var(--color-primary);
    background-color: #f3f4f6;
}

.mobile-menu-section {
    margin-bottom: 0.5rem;
}

/* ===== MOBILE MENU BUTTONS ===== */
/* Botones flotantes del menú móvil */
#mobile-menu-buttons {
    position: fixed;
    top: 20px;
    right: 16px;
    z-index: 2147483647;
    display: none;
}

@media (max-width: 767px) {
    #mobile-menu-buttons {
        display: block;
    }
}

.mobile-menu-buttons-container {
    display: flex;
    gap: 12px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
    padding: 8px;
    border-radius: 6px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    color: #374151;
    transition: transform 0.2s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: #374151;
    fill: none;
    stroke: #374151;
    stroke-width: 2;
    display: block;
}

/* ===== MOBILE MENU BUTTONS ===== */
/* Los botones móviles son controlados por JavaScript basado en el tamaño de pantalla */
