/* ==========================================
   ByL Chile - Estilos Modernos Compartidos
   ========================================== */

:root {
    /* Colores principales - Light Mode */
    --primary-color: #0066cc;
    --primary-light: #3388dd;
    --primary-dark: #004499;
    --secondary-color: #004494;
    --accent-color: #ff6b35;
    --accent-light: #ff8555;
    --accent-dark: #e55525;
    --success-color: #00d2ff;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Gradientes modernos */
    --primary-gradient: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #e55525 100%);
    --success-gradient: linear-gradient(45deg, #00d2ff 0%, #3a7bd5 100%);
    --hero-gradient: linear-gradient(135deg, rgba(0, 102, 204, 0.8) 0%, rgba(0, 68, 153, 0.7) 50%, rgba(0, 102, 204, 0.8) 100%);
    
    /* Colores de texto - Light Mode */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #ffffff;
    --text-accent: var(--accent-color);
    
    /* Colores de fondo - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --bg-dark: #1a202c;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Sombras modernas */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    /* Bordes */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e0;
    
    /* Transiciones avanzadas */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Tipografía */
    --font-family-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Contenedor */
    --container-max-width: 1200px;
}

/* Dark Mode Variables */
html[data-theme="dark"] {
    /* Colores principales - Dark Mode */
    --primary-color: #4a90e2;
    --primary-light: #6ba3e8;
    --primary-dark: #357abd;
    --accent-color: #ff8555;
    --accent-light: #ff9966;
    --accent-dark: #ee7444;
    
    /* Colores de texto - Dark Mode */
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --text-accent: var(--accent-color);
    
    /* Colores de fondo - Dark Mode */
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #4a5568;
    --bg-card: #2d3748;
    --bg-header: rgba(26, 32, 44, 0.95);
    
    /* Glassmorphism Dark */
    --glass-bg: rgba(45, 55, 72, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    /* Sombras Dark Mode */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    
    /* Bordes Dark Mode */
    --border-color: #4a5568;
    --border-hover: #718096;
    
    /* Hero Gradient Dark Mode */
    --hero-gradient: linear-gradient(135deg, rgba(51, 136, 221, 0.7) 0%, rgba(34, 119, 204, 0.6) 50%, rgba(51, 136, 221, 0.7) 100%);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.section-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: var(--bg-header);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 18px;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: var(--spacing-xs) 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: var(--bg-gradient);
    color: var(--text-light);
    padding: calc(80px + var(--spacing-xxl)) 0 var(--spacing-xxl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') no-repeat bottom;
    background-size: cover;
}

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

.hero h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Secciones */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-2xl);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.card a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-base);
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

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

.btn-outline:hover {
    background: var(--primary-gradient);
    color: var(--text-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.btn-light {
    background: var(--bg-card);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--primary-gradient);
    color: var(--text-light);
    border-color: transparent;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
    color: var(--text-light);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: var(--font-size-sm);
}

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

.footer-nav {
    display: flex;
    gap: var(--spacing-md);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-xs);
}

/* Formularios */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea,
select.form-input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
select.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

select.form-input option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--spacing-xs);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height, 80px);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--border-color);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-xl);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        max-height: calc(100vh - var(--header-height, 80px));
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Prevent body scroll when mobile menu is open */
    body.nav-open {
        overflow: hidden;
    }
    
    /* Ensure nav links are clickable and styled properly */
    .nav-menu .nav-link {
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--border-color);
        display: block;
        width: 100%;
        transition: var(--transition);
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--primary-color);
        background: var(--bg-secondary);
        padding-left: var(--spacing-sm);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero p {
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-2xl);
    }
}

/* Floating Contact Buttons */
.contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

/* WhatsApp Button */
.whatsapp-float {
    background: #25d366;
    color: white;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

/* WeChat Button */
.wechat-float {
    background: #00d13a;
    color: white;
    animation: wechat-pulse 2s infinite 0.5s;
}

.wechat-float:hover {
    background: #00b432;
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 209, 58, 0.4);
}

.float-button:active {
    transform: scale(0.95);
}

/* Pulse animations */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes wechat-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 209, 58, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 209, 58, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 209, 58, 0);
    }
}

/* Tooltips */
.float-button::before {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    font-weight: 500;
}

.float-button::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: var(--transition);
}

.whatsapp-float::before {
    content: "¡Escríbenos por WhatsApp!";
}

.wechat-float::before {
    content: "Contactar por WeChat";
}

.float-button:hover::before,
.float-button:hover::after {
    opacity: 1;
}

/* Responsive floating buttons */
@media (max-width: 768px) {
    .contact-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .float-button {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .float-button::before,
    .float-button::after {
        display: none;
    }
}

/* Imágenes en Cards */
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Logo en Header */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    transition: var(--transition);
    min-height: 40px;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
    min-width: 40px;
    object-fit: contain;
    transition: none;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    transition: none;
}

.logo-subtitle {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: -2px;
    transition: none;
}

/* Hero con imagen de fondo */
.hero {
    background: var(--hero-gradient), 
                url('../img/hero/hero-bg.jpg') center/cover no-repeat;
    color: var(--text-light);
    padding: calc(80px + var(--spacing-xxl)) 0 var(--spacing-xxl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-gradient);
    opacity: 0.6;
    z-index: 1;
}

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

.hero h1 {
    color: var(--text-light) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-5xl);
    font-weight: 700;
}

.hero p {
    color: var(--text-light);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* WeChat Link */
.wechat-link {
    color: #00d13a;
    text-decoration: none;
    transition: var(--transition);
}

.wechat-link:hover {
    color: #00b432;
    text-decoration: underline;
}

/* Mapa responsivo */
@media (max-width: 768px) {
    .card-content div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .card-content iframe {
        height: 250px !important;
    }
    
    /* Logo responsivo */
    .logo-title {
        font-size: var(--font-size-lg);
    }
    
    .logo-subtitle {
        font-size: var(--font-size-xs);
    }
    
    /* Footer responsivo */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-logo-img {
        height: 28px;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: var(--transition-slow);
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Stagger Animation Delays */
.animate-on-scroll:nth-child(1) { animation-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { animation-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { animation-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { animation-delay: 0.6s; }

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Focus visible para navegación por teclado */
.btn:focus-visible,
.nav-link:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}