/* Variables CSS */
:root {
    --primary-color: #464646;
    --secondary-color: #f59e0b;
    --accent-color: #dc2626;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header */  
@media (min-width: 1024px) {
    #header {
        height: 6.8rem;
        transition: height 0.3s ease;
    }
    
    #header.scrolled {
        height: 4.5rem;
    }

    /* Altura ajustada cuando header-akzo está oculto pero no scrolled */
    #header.header-akzo-hidden {
        height: 4.5rem;
    }
}

.header-akzo {
    background-color: #eaeaea;
    min-height: 40px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none; /* Oculto por defecto */
}

/* Mostrar header-akzo solo en desktop */
@media (min-width: 992px) {
    .header-akzo {
        display: flex;
    }
}

/* Estilos para el offcanvas de Bootstrap */
.offcanvas {
    background-color: var(--white);
    border-left: 1px solid #e5e7eb;
}

.offcanvas-header {
    background-color: #eaeaea;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.offcanvas-title {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.offcanvas-body {
    padding: 0;
}

.header-akzo-mobile {
    background-color: #eaeaea;
    padding: 1rem;
    border-radius: 0;
    text-align: center;
    margin: 0;
}

.mobile-nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    font-size: 16px;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: var(--primary-color) !important;
    background-color: #f9fafb;
    padding-left: 1rem;
    text-decoration: none;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Botón de cierre del offcanvas */
.btn-close {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

.navbar {
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 800;
    color: var(--text-dark) !important;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding-top: 80px;
    display: flex;
    align-items: center;
    animation: fadeIn 1.2s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-questions {
    list-style: none;
    margin-bottom: 2rem;
}

.hero-questions li {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.hero-questions li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.hero-cta {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    transition: transform 0.3s ease;
}

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

/* Product Categories */
.product-categories,
.follow-us-section {
    background-color: #fafafa;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.category-title.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.category-section {
    margin-bottom: 5rem;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.product-card.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Asegurar que las animaciones sean suaves en dispositivos que soporten prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .product-card {
        transition: none;
    }
    
    .product-card.fade-in-up {
        opacity: 1;
        transform: none;
    }
}

.product-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Proporción 16:9 */
    aspect-ratio: 16/9;
    /* Fallback para navegadores que no soportan aspect-ratio */
    padding-bottom: 56.25%; /* 9/16 = 0.5625 = 56.25% */
    transition: all 0.3s ease;
}

/* Para navegadores que soportan aspect-ratio, resetear el padding */
@supports (aspect-ratio: 16/9) {
    .product-image {
        padding-bottom: 0;
    }
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Estado cuando el video está reproduciéndose */
.product-image.playing img {
    opacity: 0;
}

.product-image.playing .play-button {
    opacity: 0;
    pointer-events: none;
}

/* Estilos para el botón de cerrar video */
.video-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.video-close-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-close-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Estilos para el indicador de carga del video */
.video-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-loading span {
    font-size: 14px;
    font-weight: 500;
}

/* Play Button Styles */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.play-button:hover {
    background: #333333;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.play-button .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.play-button .icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}

.play-button:hover .icon svg {
    fill: #ffffff;
}

/* Intro text styles */
.intro-text {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.intro-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Product info styles */
.product-info {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #374151 100%);
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .list-unstyled li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        font-size: 1.25rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button .icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* Estilos específicos para móviles */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Ajustes para el offcanvas */
    .offcanvas {
        width: 280px;
    }
    
    .offcanvas-body {
        padding: 0;
    }
    
    .mobile-nav-link {
        font-size: 14px;
        padding: 0.75rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-questions li {
        font-size: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button .icon svg {
        width: 20px;
        height: 20px;
    }
    
    .video-close-button {
        width: 25px;
        height: 25px;
        font-size: 16px;
        top: 5px;
        right: 5px;
    }
    
    /* Ajustes adicionales para móviles pequeños */
    .offcanvas {
        width: 100%;
    }
    
    .offcanvas-header {
        padding: 0.75rem 1rem;
    }
    
    .offcanvas-body {
        padding: 0;
    }
    
    .header-akzo-mobile {
        padding: 0.75rem;
        margin: 0;
    }
    
    .mobile-nav-link {
        font-size: 16px;
        padding: 1rem 0;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@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);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

.btn-primary:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Estilos para la sección Follow Us */
.follow-us-section {
    background-color: var(--bg-light);
}

.follow-us-section h2 {
    font-size: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

.social-icon {
    color: #464646 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
}

.social-icon:hover {
    color: #464646 !important;
    text-decoration: none !important;
    transform: scale(1.1);
    background-color: rgba(70, 70, 70, 0.1);
}

.social-icon i {
    color: #464646 !important;
}

.social-icon:hover i {
    color: #464646 !important;
}

/* Estilos para los enlaces del footer-bottom */
.footer-bottom .list-inline-item a {
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    color: #838383 !important;
    font-weight: 600;
    font-size: 0.8rem;
}

.footer-bottom .list-inline-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #333;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.footer-bottom .list-inline-item a:hover::after {
    width: 100%;
}

/* .footer-bottom .list-inline-item a:hover {
    color: #333 !important;
}  */

@media (min-width: 768px) {
    .footer-bottom .list-inline-item {
        padding: 0 1rem;
    }
}

@media (min-width: 768px) {
    .footer-bottom .list-inline-item:not(:last-of-type) {
        border-right: .1rem solid #e1e1e1;
    }
}

.copyright {
    font-size: 0.9rem;
    color: #838383;    
}

/* Estilos para el acordeón del footer en móviles */
.footer-accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-accordion-button {
    background-color: transparent !important;
    color: white !important;
    border: none !important;
    padding: 1rem 0 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

.footer-accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: white !important;
    box-shadow: none !important;
}

.footer-accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

.footer-accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    filter: brightness(0) invert(1) !important;
}

.footer-accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    filter: brightness(0) invert(1) !important;
    transform: rotate(180deg) !important;
}

.footer-accordion-button:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
}

.accordion-body {
    background-color: transparent !important;
    padding: 0 0 1rem 0 !important;
    border: none !important;
}

.accordion-collapse {
    border: none !important;
}

/* Ajustes específicos para móviles en el footer */
@media (max-width: 767px) {
    .footer-top {
        padding: 2rem 0 !important;
    }
    
    .footer-accordion-button {
        font-size: 0.9rem !important;
        padding: 0.75rem 0 !important;
    }
    
    .accordion-body {
        padding: 0 0 0.75rem 0 !important;
    }
    
    .footer .list-unstyled li {
        margin-bottom: 0.3rem !important;
        font-size: 0.85rem !important;
    }
}

.cursor-pointer {
    cursor: pointer;
}
