/* Variables CSS - Balance 60% claro / 30% gris oscuro / 10% rojo */
:root {
    /* 10% - Rojo de marca (solo acentos) */
    --primary-color: #C62828;
    --red-dark: #A01D1D;
    --red-soft-border: rgba(198, 40, 40, 0.06);
    --secondary-color: #B71C1C;
    --accent-color: #E53935;
    /* 60% - Blanco y gris muy claro */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #F5F5F5;
    --neutral-color: #E8E8E8;
    --white-color: #FFFFFF;
    /* 30% - Gris oscuro / negro suave para texto */
    --text-dark: #2d3748;
    --text-muted: #4a5568;
    --gradient-primary: linear-gradient(135deg, #B71C1C 0%, #C62828 50%, #D32F2F 100%);
    --gradient-secondary: linear-gradient(135deg, #C62828 0%, #E53935 100%);
    /* Sombras suaves modernas */
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.09);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.05);
    --border-radius: 10px;
    --transition: all 0.25s ease;
    --transition-hover: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar personalizada */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-hover);
}

.navbar-logo:hover {
    transform: scale(1.03);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition-hover);
}

.navbar-nav .nav-link:hover {
    background-color: var(--red-dark);
    color: var(--white-color) !important;
}

/* Hero Section - fondo claro, rojo solo en acentos */
.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Espacio para el navbar fijo */
}

.hero-section::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 100 100"><defs><pattern id="wave" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0,50 Q25,25 50,50 T100,50 L100,100 L0,100 Z" fill="rgba(0,0,0,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23wave)"/></svg>') repeat;
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Elementos decorativos del hero */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-fish {
    position: absolute;
    font-size: 2rem;
    opacity: 0.35;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.fish-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.fish-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.fish-3 {
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(0,0,0,0.03)"></path></svg>') repeat-x;
    animation: wave 10s linear infinite;
}

.wave-1 {
    animation-delay: 0s;
}

.wave-2 {
    animation-delay: 3s;
    opacity: 0.5;
}

.wave-3 {
    animation-delay: 6s;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

/* Contenido del hero */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    animation: slideInLeft 0.6s ease-out 0.1s both;
}

.badge-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-badge {
    background: var(--bg-primary);
    border-color: var(--neutral-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out 0.3s both;
    color: var(--text-dark) !important;
}

.title-main {
    display: block;
    color: var(--text-dark) !important;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.title-brand {
    display: block;
    color: var(--primary-color) !important;
    font-size: 3.5rem;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: slideInLeft 0.6s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    border: 2px solid var(--neutral-color);
    transition: var(--transition-hover);
}

.stat-item:hover {
    background: var(--bg-primary);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    animation: slideInLeft 0.6s ease-out 0.8s both;
}

.btn-outline-light {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: var(--transition);
    font-weight: 600;
}

.btn-outline-light:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Contenedor de imagen principal */
.hero-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-hover);
}

.hero-image-container:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

/* Imagen principal */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

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

/* Fallback cuando la imagen no carga */
.hero-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(183, 28, 28, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: var(--transition);
}

.hero-image-container:hover .hero-image-fallback {
    opacity: 1;
}

.hero-image-fallback i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

/* Efecto de overlay en la imagen */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.08), rgba(229, 57, 53, 0.08));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    border-radius: var(--border-radius);
}

.hero-image-container:hover::before {
    opacity: 1;
}

/* Botones personalizados - 10% rojo */
.btn-primary {
    background: var(--primary-color) !important;
    color: var(--white-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition-hover);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--red-dark) !important;
    color: var(--white-color) !important;
    border-color: var(--red-dark) !important;
}

/* Botón outline (galería, etc.) - 10% rojo */
.btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: var(--white-color) !important;
    border-color: var(--primary-color) !important;
}

/* Títulos de sección - 30% texto oscuro, 10% rojo en subrayado */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

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

/* Mejor contraste en textos de sección */
.lead.text-muted {
    color: var(--text-muted) !important;
    font-weight: 500;
}

/* Cards de Nosotros - 60% fondo claro */
.about-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-hover);
    text-align: center;
    border: 1px solid var(--neutral-color);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--neutral-color);
}

.about-card p {
    color: var(--text-dark);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-hover);
}

.about-card:hover .card-icon {
    background: var(--primary-color);
}

.about-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Cards de Producción - 60% fondo claro, 30% texto */
.product-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-hover);
    overflow: hidden;
    border: 1px solid var(--neutral-color);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.product-card .card-text {
    color: var(--text-dark);
}

.product-image {
    height: 150px;
    background: linear-gradient(135deg, var(--text-dark) 0%, #4a5568 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition-hover);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0.3;
}

.product-image i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Variaciones de gris para las tarjetas - 30% */
.product-card:nth-child(1) .product-image {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.product-card:nth-child(2) .product-image {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.product-card:nth-child(3) .product-image {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.product-card:nth-child(4) .product-image {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.product-card:nth-child(5) .product-image {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.product-card:nth-child(6) .product-image {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

/* Efecto de hover discreto */
.product-card:hover .product-image {
    filter: brightness(1.05);
}

.product-card:hover .product-image::before {
    opacity: 0.4;
}

/* Tarjetas de Políticas y Reglamentos - 60% fondo claro */
.policy-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-hover);
    overflow: hidden;
    border: 1px solid var(--neutral-color);
}

.policy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.policy-card .card-body {
    padding: 1.5rem;
}

.policy-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.policy-card .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.policy-icon {
    height: 80px;
    background: linear-gradient(135deg, var(--text-dark) 0%, #4a5568 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white-color);
    transition: var(--transition-hover);
}

.policy-card:hover .policy-icon {
    background: var(--gradient-primary);
}

/* Galería - 60% fondos claros */
/* Vista previa en inicio: miniaturas más compactas */
#galeria .gallery-item {
    height: 200px;
}
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-hover);
    height: 250px;
    border: 1px solid var(--neutral-color);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white-color);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Fallback para cuando las imágenes no cargan */
.gallery-placeholder {
    height: 250px;
    background: var(--neutral-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    transition: var(--transition);
}

.gallery-placeholder:hover {
    background: var(--secondary-color);
    color: var(--white-color);
}

.gallery-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Formulario de contacto - 60% fondo claro */
.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--neutral-color);
    transition: var(--transition-hover);
}

.contact-form:hover {
    box-shadow: var(--shadow-light);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form .form-control {
    border: 2px solid var(--neutral-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

/* Información de contacto */
.contact-info {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--neutral-color);
    transition: var(--transition-hover);
}

.contact-info:hover {
    box-shadow: var(--shadow-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-color);
}

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

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.map-container {
    margin-top: 2rem;
}

.map-iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.map-iframe:hover {
    box-shadow: var(--shadow-medium);
    transform: scale(1.02);
}

/* Fallback para cuando el iframe no carga */
.map-container {
    position: relative;
    background: var(--neutral-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
}

/* Sección bg-light - 60% gris muy claro */
section.bg-light {
    background-color: var(--bg-tertiary) !important;
}

/* Footer - 30% gris oscuro, 10% rojo en acentos */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

footer h5 {
    color: var(--white-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition-hover);
}

footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

footer .footer-contact p {
    margin-bottom: 0.5rem;
}

footer .footer-contact i {
    width: 20px;
}

/* Enlace acceso administrativo: discreto, corporativo */
footer .footer-admin-link {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer .footer-admin-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

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

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

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

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px; /* Más espacio para móvil */
        min-height: calc(100vh - 20px); /* Ajustar altura */
    }
    
    .hero-content {
        padding-top: 1rem; /* Espacio adicional para el contenido */
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-top: 1rem; /* Espacio adicional arriba del título */
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .title-brand {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .floating-fish {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .about-card,
    .contact-form,
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .gallery-placeholder {
        height: 200px;
    }
    
    .product-image {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 120px; /* Aún más espacio para pantallas muy pequeñas */
        min-height: calc(100vh - 40px);
    }
    
    .hero-content {
        padding-top: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-top: 1.5rem;
    }
    
    .title-main {
        font-size: 1.5rem;
    }
    
    .title-brand {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        padding: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-card,
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

/* Efectos de hover adicionales */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

/* Mejoras de accesibilidad y contraste */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Transiciones suaves para todos los elementos interactivos */
a, button, .card, .gallery-item {
    transition: var(--transition);
}

/* Estilos para scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}
