/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2d6a8f;
    --color-secondary: #3a7ca5;
    --color-dark: #1a2332;
    --color-darker: #0d1419;
    --color-light: #e8f4f8;
    --color-gray: #94a3b8;
    --color-gray-dark: #475569;
    --color-gray-darker: #1e293b;
    
    --gradient-primary: linear-gradient(135deg, #2d6a8f, #3a7ca5);
    --gradient-hero: linear-gradient(135deg, #1a2332, #0d1419, #2d6a8f);
    --gradient-cta: linear-gradient(90deg, rgba(45, 106, 143, 0.3), rgba(58, 124, 165, 0.3));
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(58, 124, 165, 0.4);
    
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

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

/* ==================== NAVIGATION ==================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link {
    color: #1e293b;
}

#navbar.scrolled .nav-link:hover {
    color: #2d6a8f;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

@media (min-width: 640px) {
    .nav-content {
        height: 5rem;
    }
}

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

/* Logo Image Styling - Dual Version */
.logo-image {
    height: 45px;
    width: auto;
    transition: opacity var(--transition-base);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    position: relative;
    height: 45px;
}

/* Logo blanco visible por defecto (sobre video) */
.logo-white {
    opacity: 1;
    z-index: 2;
}

/* Logo oscuro oculto por defecto */
.logo-dark {
    opacity: 0;
    z-index: 1;
}

/* Cuando se hace scroll: ocultar logo blanco, mostrar logo oscuro */
#navbar.scrolled .logo-white {
    opacity: 0;
}

#navbar.scrolled .logo-dark {
    opacity: 1;
}

/* Responsive sizing */
@media (min-width: 640px) {
    .logo-image {
        height: 55px;
    }
    
    .logo {
        height: 55px;
    }
}

@media (min-width: 1024px) {
    .logo-image {
        height: 60px;
    }
    
    .logo {
        height: 60px;
    }
}

/* Hover effect */
.logo:hover .logo-image {
    transform: translateY(-50%) scale(1.05);
}

/* Subtle glow on hover when scrolled */
#navbar.scrolled .logo:hover .logo-dark {
    filter: drop-shadow(0 0 8px rgba(58, 124, 165, 0.4));
}

/* Subtle glow on hover when scrolled */
#navbar.scrolled .logo:hover .logo-image {
    filter: drop-shadow(0 0 8px rgba(58, 124, 165, 0.4));
    transform: scale(1.05);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, #3a7ca5, #5da3cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 640px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

.nav-menu {
    display: none;
    gap: 2rem;
}

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

.nav-link {
    color: var(--color-light);
    text-decoration: none;
    transition: color var(--transition-base);
    font-weight: 500;
}

.nav-link:hover {
    color: #5da3cc;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color var(--transition-base);
}

.menu-toggle:hover {
    background-color: var(--color-gray-darker);
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 1.5rem;
    height: 0.125rem;
    background-color: var(--color-light);
    transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .nav-menu.mobile-open {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        padding: 0;
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay on video for better text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, 0.5),
        rgba(13, 20, 25, 0.6),
        rgba(45, 106, 143, 0.4)
    );
    z-index: 2;
    pointer-events: none;
}

/* Fallback background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

.hero-blur-1 {
    top: 5rem;
    left: 2.5rem;
    width: 18rem;
    height: 18rem;
    background-color: #2d6a8f;
}

.hero-blur-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background-color: #3a7ca5;
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.3;
    }
}

.hero-content {
    position: relative;
    z-index: 100;
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #3a7ca5, #5da3cc, #3a7ca5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--color-gray-darker);
    color: white;
    border: 1px solid var(--color-gray-dark);
}

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

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

.btn-white:hover {
    background-color: #f1f5f9;
    transform: scale(1.05);
}

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid #5da3cc;
    border-radius: 1.25rem;
    padding: 0.25rem;
    animation: bounce 2s infinite;
    z-index: 100;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator-inner {
    width: 0.25rem;
    height: 0.75rem;
    background-color: #5da3cc;
    border-radius: 0.125rem;
    margin: 0 auto;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .section {
        padding: 6rem 0;
    }
}

.section-dark {
    background-color: #f1f5f9;
}

.section-gradient {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .section-subtitle {
        font-size: 1.25rem;
    }
}

/* ==================== SERVICES ==================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.service-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .service-card {
        padding: 2rem;
    }
}

.service-card:hover {
    border-color: #3a7ca5;
    box-shadow: 0 10px 25px -5px rgba(58, 124, 165, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-base);
}

@media (min-width: 640px) {
    .service-icon {
        width: 4rem;
        height: 4rem;
    }
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon img {
    width: 2rem;
    height: 2rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color var(--transition-base);
    color: #1e293b;
}

@media (min-width: 640px) {
    .service-title {
        font-size: 1.5rem;
    }
}

.service-card:hover .service-title {
    color: #5da3cc;
}

.service-description {
    color: var(--color-gray);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .service-description {
        font-size: 1rem;
    }
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: "\2713";
    color: #5da3cc;
    font-weight: 700;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* ==================== PROJECTS ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.project-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .project-card {
        padding: 2rem;
    }
}

.project-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px -5px rgba(58, 124, 165, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 700;
    transition: color var(--transition-base);
    color: #1e293b;
}

@media (min-width: 640px) {
    .project-name {
        font-size: 1.5rem;
    }
}

.project-card:hover .project-name {
    color: #5da3cc;
}

.project-year {
    font-size: 0.875rem;
    background-color: #e0f2fe;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: #2d6a8f;
    flex-shrink: 0;
    font-weight: 600;
}

.project-type {
    color: var(--color-gray);
}

/* ==================== CERTIFICATIONS ==================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.cert-card {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .cert-card {
        padding: 1.5rem;
    }
}

.cert-card:hover {
    border-color: #3a7ca5;
    box-shadow: 0 10px 25px -5px rgba(58, 124, 165, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.cert-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.75rem;
    transition: transform var(--transition-base);
}

@media (min-width: 640px) {
    .cert-icon {
        width: 3rem;
        height: 3rem;
    }
}

.cert-card:hover .cert-icon {
    transform: scale(1.1);
}

.cert-name {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

@media (min-width: 640px) {
    .cert-name {
        font-size: 1rem;
    }
}

.cert-desc {
    font-size: 0.75rem;
    color: var(--color-gray);
}

@media (min-width: 640px) {
    .cert-desc {
        font-size: 0.875rem;
    }
}

/* ==================== ABOUT US ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-text {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.stat-card {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #5da3cc;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon img {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.feature-desc {
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* ==================== CUSTOMERS SECTION ==================== */
.customers-section {
    background-color: #ffffff;
    overflow: hidden;
}

.customers-slider {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.customers-slider::before,
.customers-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.customers-slider::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.customers-slider::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.customers-track {
    display: flex;
    gap: 3rem;
    animation: scroll-left 30s linear infinite;
    width: max-content;
}

.customers-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.customer-logo {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all var(--transition-base);
    border: 1px solid #e2e8f0;
}

.customer-logo:hover {
    background-color: #ffffff;
    border-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.customer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: all var(--transition-base);
}

.customer-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .customer-logo {
        width: 140px;
        height: 80px;
        padding: 1rem;
    }
    
    .customers-track {
        gap: 2rem;
    }
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.contact-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    border-color: #3a7ca5;
    box-shadow: 0 10px 25px -5px rgba(58, 124, 165, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

@media (min-width: 640px) {
    .contact-value {
        font-size: 1rem;
    }
}

/* ==================== CTA BOX ==================== */
.cta-box {
    background: var(--gradient-primary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    color: #ffffff;
}

@media (min-width: 640px) {
    .cta-box {
        padding: 3rem;
    }
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 1.875rem;
    }
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .footer {
        padding: 3rem 0;
    }
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Footer logo icon - darker for light background */
.footer-logo .logo-icon {
    background: #1e293b;
    color: #ffffff;
}

/* Footer logo text - darker for light background */
.footer-logo .logo-text {
    background: linear-gradient(90deg, #1e293b, #2d6a8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: var(--color-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .footer-text {
        font-size: 1rem;
    }
}

.footer-copyright {
    color: #475569;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .footer-copyright {
        font-size: 0.875rem;
    }
}

/* ==================== GALLERY MODAL STYLES ==================== */
/* Reemplaza TODA la sección de gallery en tu styles.css con este código */

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-close {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gallery-close:hover {
    background: rgba(58, 124, 165, 0.8);
    transform: scale(1.1);
}

.gallery-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 3rem;
}

.gallery-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-counter {
    color: #94a3b8;
    font-size: 0.875rem;
}

.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    min-height: 0;
}

.gallery-image-container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #5da3cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gallery-nav {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-nav:hover:not(:disabled) {
    background-color: rgba(58, 124, 165, 0.8);
    transform: scale(1.1);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.gallery-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.gallery-thumbnail:hover {
    border-color: #5da3cc;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #5da3cc;
    box-shadow: 0 0 10px rgba(58, 124, 165, 0.5);
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .gallery-modal {
        padding: 0.5rem;
    }
    
    .gallery-modal-content {
        max-height: 95vh;
        padding: 0.5rem;
    }
    
    .gallery-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .gallery-header {
        padding-top: 3rem;
        margin-bottom: 0.75rem;
    }
    
    .gallery-title {
        font-size: 1rem;
    }
    
    .gallery-counter {
        font-size: 0.75rem;
    }
    
    .gallery-main {
        gap: 0.25rem;
    }
    
    .gallery-main-image {
        max-height: 50vh;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-thumbnails {
        gap: 0.375rem;
        margin-top: 0.75rem;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .gallery-modal-content {
        padding: 0.25rem;
    }
    
    .gallery-header {
        padding-top: 2.5rem;
    }
    
    .gallery-title {
        font-size: 0.875rem;
    }
    
    .gallery-main-image {
        max-height: 45vh;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 38px;
    }
}

/* Landscape mode on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .gallery-modal-content {
        max-height: 98vh;
    }
    
    .gallery-header {
        padding-top: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-main-image {
        max-height: 50vh;
    }
    
    .gallery-thumbnails {
        margin-top: 0.5rem;
    }
}

/* Hide scrollbar but keep functionality for thumbnails */
.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(58, 124, 165, 0.5);
    border-radius: 2px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(58, 124, 165, 0.8);
}