/* --- Variables & Configuración Base --- */
:root {
    /* Paleta de Colores CLARA (Default) */
    --primary-color: #10b981;       /* Verde Esmeralda */
    --primary-dark: #059669;        /* Verde más oscuro para hover */
    --secondary-color: #3b82f6;     /* Azul médico para detalles */
    --bg-body: #f8fafc;             /* Fondo gris muy claro */
    --bg-card: #ffffff;             /* Fondo de tarjetas */
    --bg-alt: #f1f5f9;             /* Fondo alternativo para secciones */
    --text-main: #1e293b;           /* Texto principal oscuro */
    --text-light: #64748b;          /* Texto secundario gris */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    /* Layout heights for top bar and header */
    --topbar-height: 36px;
    --header-height: 70px;
    --hero-bg: #0b1220; /* hero background (isolated) */
}

/* Paleta de Colores OSCURA (Se activa con la clase .dark-mode) */
body.dark-mode {
    --primary-color: #34d399;       /* Verde más brillante para contraste */
    --primary-dark: #10b981;
    --bg-body: #0f172a;             /* Azul noche muy oscuro */
    --bg-card: #1e293b;             /* Azul grisáceo para tarjetas */
    --bg-alt: #111827;              /* Fondo alternativo oscuro */
    --text-main: #f1f5f9;           /* Texto casi blanco */
    --text-light: #94a3b8;          /* Texto gris claro */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

/* ensure scroll container is the body and allow smooth/proximity snapping */
body {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y proximity; /* use proximity to avoid strict locking */
    /* Make room for fixed top-bar + header so content isn't hidden */
    padding-top: calc(var(--topbar-height) + var(--header-height));
    scroll-padding-top: calc(var(--topbar-height) + var(--header-height));
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease; /* Transición suave del tema */
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
}
.btn-outline:hover { background-color: var(--primary-color); color: white; }

/* --- Top Bar --- */
.top-bar {
    color: white;
    font-size: 0.85rem;
    /* Use fixed positioning so top-bar stays visible */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px; /* Padding horizontal para evitar que contenido se salga */
    /* Animated gradient background */
    background: linear-gradient(90deg, #0f172a 0%, #0b1220 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: topbarGradient 8s ease-in-out infinite;
    z-index: 1102;
    overflow: hidden;
}

.top-bar .top-bar-inner p { 
    display: flex; 
    gap: 6px; 
    align-items: center; 
    justify-content: center; 
    width: 100%;
    overflow: hidden;
    flex-wrap: wrap;
}
.top-bar .hours { 
    font-weight: 700; 
    margin-left: 4px;
    font-size: 0.8rem;
}

/* Clock icon animations */
#clock-icon { margin-right: 8px; font-size: 1.05rem; display: inline-block; transform-origin: center; }
.clock-entry { animation: clockBounce 600ms cubic-bezier(.34,1.56,.64,1) both; }
.clock-pulse { animation: clockPulse 2000ms ease-in-out 800ms infinite; }

@keyframes topbarGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes clockBounce {
    0% { transform: translateY(-8px) scale(0.95); opacity: 0; }
    60% { transform: translateY(4px) scale(1.05); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes clockPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .top-bar { animation: none; }
    .clock-entry, .clock-pulse { animation: none; }
}

/* --- Header & Nav --- */
.main-header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow);
    /* Keep header visible below top-bar */
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 1101;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* --- ESTILOS DEL LOGO (NUEVO) --- */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px; /* Ajusta la altura del logo aquí */
    width: auto;
    transition: var(--transition);
}

/* Lógica para mostrar/ocultar logos según el modo */
/* Por defecto (Modo Claro) */
.light-mode-logo { display: block; }
.dark-mode-logo { display: none; }

/* Cuando el body tiene la clase .dark-mode */
body.dark-mode .light-mode-logo { display: none; }
body.dark-mode .dark-mode-logo { display: block; }


.nav-menu ul { display: flex; gap: 30px; align-items: center; }
.nav-link {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

.btn-nav {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.btn-nav:hover { background-color: var(--primary-dark); }

/* Theme Toggle Button */
.header-actions { display: flex; align-items: center; gap: 15px; }
.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}
.theme-btn:hover { color: var(--primary-color); }

.mobile-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 80px 0; /* slightly reduced padding to fit full viewport */
    /* light hero background by default so it looks clear in light mode */
    background-color: var(--bg-body);
    min-height: 100vh; /* cover full viewport */
    height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start; /* ensure hero snaps correctly */
    overflow: hidden;
    color: var(--text-main);
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: var(--text-main);
}

.hero h1 { color: var(--text-main); }
.text-gradient { color: var(--primary-color); }

/* Dark mode hero overrides */
body.dark-mode .hero { background-color: var(--hero-bg); color: #ffffff; }
body.dark-mode .hero-overlay { background: radial-gradient(ellipse at center, rgba(0,0,0,0.0) 25%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.38) 100%); }
body.dark-mode .hero h1 { color: #ffffff; }
body.dark-mode .hero .hero-content { color: #ffffff; }

.badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 20px 0;
    color: #0f0842;
}
.text-gradient { color: var(--primary-color); }

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 30px;
}

/* --- Sections General --- */
/* Make each main section occupy at least full viewport for snap behavior */
.section { padding: 80px 0; min-height: 100vh; scroll-snap-align: start; /* ensure sections aren't hidden under fixed header */
    scroll-margin-top: calc(var(--topbar-height) + var(--header-height) + 12px);
}

/* Ensure footer is reachable and can snap into view */
footer { scroll-snap-align: start; scroll-margin-top: calc(var(--topbar-height) + var(--header-height) + 12px); }
.bg-alt { background-color: var(--bg-alt); }

/* When jumping to an element via anchor, ensure it's scrolled into view below fixed header */
section[id], [id] {
    scroll-margin-top: calc(var(--topbar-height) + var(--header-height) + 12px);
}

/* Fallback technique for older browsers: add invisible offset for :target */
:target::before {
    content: "";
    display: block;
    height: calc(var(--topbar-height) + var(--header-height) + 12px);
    margin-top: calc(-1 * (var(--topbar-height) + var(--header-height) + 12px));
}


.section-header { text-align: center; margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.2rem; color: var(--text-main); margin-bottom: 15px; }
.divider { height: 4px; width: 60px; background-color: var(--primary-color); margin: 0 auto 15px; border-radius: 2px; }
.section-header p { color: var(--text-light); }

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Service Icon Hover Effects --- */
.service-card .icon-box i {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease, text-shadow 0.3s ease;
    transform-origin: center;
    will-change: transform, filter;
}

/* subtle glow / brightness on hover for all icons */
.service-card:hover .icon-box i {
    filter: brightness(1.08);
    text-shadow: 0 6px 14px rgba(16,185,129,0.12);
    color: var(--primary-color);
}

/* Specific icon effects */
/* 1) Wrench (Mantenimiento) - small "adjust" rotation */
.service-card:hover .icon-box .fa-wrench {
    -webkit-animation: wrenchAdjust 0.6s ease both;
            animation: wrenchAdjust 0.6s ease both;
}
@-webkit-keyframes wrenchAdjust {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    30% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); }
    60% { -webkit-transform: rotate(8deg); transform: rotate(8deg); }
    100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
}
@keyframes wrenchAdjust {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    30% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); }
    60% { -webkit-transform: rotate(8deg); transform: rotate(8deg); }
    100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
}

/* 2) Magnifier (Diagnóstico) - gentle zoom-in */
.service-card:hover .icon-box .fa-search-plus {
    -webkit-transform: scale(1.16);
            transform: scale(1.16);
}

/* 3) Crossed tools (Correctivo) - nudge up */
.service-card:hover .icon-box .fa-tools {
    -webkit-animation: nudgeUp 0.36s ease both;
            animation: nudgeUp 0.36s ease both;
}
@-webkit-keyframes nudgeUp {
    0% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-6px); transform: translateY(-6px); }
    100% { -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes nudgeUp {
    0% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-6px); transform: translateY(-6px); }
    100% { -webkit-transform: translateY(0); transform: translateY(0); }
}

/* 4) Chalkboard/Training - short vibration */
.service-card:hover .icon-box .fa-chalkboard-teacher {
    -webkit-animation: vibrate 0.45s ease both;
            animation: vibrate 0.45s ease both;
}

/* 5) Handshake - slight rotate/vibration */
.service-card:hover .icon-box .fa-handshake {
    -webkit-animation: handshakeRotate 0.55s ease both;
            animation: handshakeRotate 0.55s ease both;
}

@-webkit-keyframes vibrate {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    20% { -webkit-transform: translateX(-2px); transform: translateX(-2px); }
    40% { -webkit-transform: translateX(2px); transform: translateX(2px); }
    60% { -webkit-transform: translateX(-1px); transform: translateX(-1px); }
    80% { -webkit-transform: translateX(1px); transform: translateX(1px); }
    100% { -webkit-transform: translateX(0); transform: translateX(0); }
}
@keyframes vibrate {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    20% { -webkit-transform: translateX(-2px); transform: translateX(-2px); }
    40% { -webkit-transform: translateX(2px); transform: translateX(2px); }
    60% { -webkit-transform: translateX(-1px); transform: translateX(-1px); }
    80% { -webkit-transform: translateX(1px); transform: translateX(1px); }
    100% { -webkit-transform: translateX(0); transform: translateX(0); }
}

@-webkit-keyframes handshakeRotate {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    30% { -webkit-transform: rotate(12deg); transform: rotate(12deg); }
    60% { -webkit-transform: rotate(-8deg); transform: rotate(-8deg); }
    100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
}
@keyframes handshakeRotate {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    30% { -webkit-transform: rotate(12deg); transform: rotate(12deg); }
    60% { -webkit-transform: rotate(-8deg); transform: rotate(-8deg); }
    100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .service-card .icon-box i { -webkit-animation: none !important; animation: none !important; transition: none !important; -webkit-transform: none !important; transform: none !important; }
}


.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--text-main); }
.service-card p { font-size: 0.95rem; color: var(--text-light); }

.service-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    text-align: left;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.product-img-container {
    height: 180px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img-container img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: 20px; text-align: center; }
.product-info h4 { margin-bottom: 10px; font-size: 1.1rem; color: var(--text-main); }
.btn-link { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }
.btn-link:hover { text-decoration: underline; }

.catalog-note { text-align: center; margin-top: 40px; color: var(--text-light); font-size: 0.9rem; }

/* --- About & CTA --- */
.about-container { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.about-text { flex: 1; }
.about-cta { flex: 0 0 350px; }

.lead { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-main); }
.check-list li { margin-bottom: 12px; color: var(--text-light); display: flex; gap: 10px; align-items: center; }
.check-list i { color: var(--primary-color); }

.card-highlight {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
}
.card-highlight h3 { margin-bottom: 10px; }
.card-highlight p { margin-bottom: 20px; opacity: 0.9; }
.btn-white { background-color: white; color: var(--primary-color); width: 100%; text-align: center; }
.btn-white:hover { background-color: #f0fdf4; }

/* --- Footer --- */
footer {
    background-color: #1e293b; /* Dark Slate fijo */
    color: #cbd5e1;
    padding-top: 70px;
    transition: var(--transition);
}

/* Ajuste del footer para modo claro si se prefiere que no sea siempre oscuro */
/* body:not(.dark-mode) footer {
    background-color: var(--bg-alt);
    color: var(--text-light);
}
body:not(.dark-mode) footer h3, 
body:not(.dark-mode) footer h4 {
    color: var(--text-main);
} */


.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid #334155;
}

.footer-col h3, .footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col p { margin-bottom: 20px; font-size: 0.9rem; }

.contact-details li { margin-bottom: 15px; display: flex; gap: 10px; font-size: 0.9rem; }
.contact-details i { color: var(--primary-color); margin-top: 3px; }

.footer-menu li { margin-bottom: 10px; }
.footer-menu a:hover { color: var(--primary-color); padding-left: 5px; }

.social-links a {
    display: inline-flex; width: 36px; height: 36px;
    background-color: #334155; color: white;
    border-radius: 50%;
    align-items: center; justify-content: center;
    margin-right: 10px; transition: var(--transition);
}
.social-links a:hover { background-color: var(--primary-color); }

.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.85rem; }

/* --- Floating Buttons --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

.scroll-top {
    position: fixed;
    bottom: 30px; right: 100px;
    background-color: var(--primary-color);
    color: white;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 99;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.scroll-top.show { opacity: 1; visibility: visible; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: calc(var(--topbar-height) + var(--header-height)); left: -100%;
        width: 100%; height: calc(100vh - (var(--topbar-height) + var(--header-height)));
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; }
    .mobile-btn { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .about-cta { flex: 100%; }

    /* Reduce fixed heights on small screens */
    :root { --header-height: 56px; --topbar-height: 60px; }
}

/* Background canvas full-screen (particles) */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent; /* allow body background (and dark mode) to show through */
    pointer-events: none;
    display: block;
}

/* Reduce motion / mobile fallback */
@media (pointer: coarse), (max-width: 768px) {
    #bg-canvas { opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
    #bg-canvas { animation: none; }
}

/* --- Productos por Categorías (estilo tipo columnas) --- */
.products-section .products-categories{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 10px;
}

.product-column{
    background: transparent;
}

.product-column h3{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(16,185,129,0.35);
    margin-bottom: 18px;
}

.product-column h3 i{
    font-size: 1.05rem;
    color: var(--primary-color);
}

.product-column ul{
    list-style: none;
    padding-left: 0;
}

.product-column ul li{
    color: var(--text-light);
    padding: 7px 0;
    line-height: 1.45;
}

.product-column ul li::before{
    content: "•";
    color: rgba(59,130,246,0.9);
    margin-right: 10px;
}

.product-column-note p{
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive layout for product columns */
@media (max-width: 1024px){
    .products-section .products-categories{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }
}
@media (max-width: 640px){
    .products-section .products-categories{
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .product-column h3{
        font-size: 1rem;
    }
}

/* ===== HERO TEXT COLOR FIX (LIGHT / DARK MODE) ===== */
:root {
  --hero-text-muted: #4b5563; /* Visible in light mode */
}

[data-theme="dark"] {
  --hero-text-muted: rgba(255, 255, 255, 0.75);
}

.hero p {
  color: var(--hero-text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ===== BOTÓN FLOTANTE HOME (OPUESTO A WHATSAPP) ===== */
.home-float {
  position: fixed;
  left: 22px;              /* lado contrario a WhatsApp */
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.home-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.home-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 520px) {
  .home-float {
    width: 54px;
    height: 54px;
    left: 16px;
    bottom: 16px;
  }
}



/* ===== CONTACTO (ÁREAS) ===== */
.contact-details.contact-areas li{
  align-items: flex-start;
}

.contact-details.contact-areas .contact-block{
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-details.contact-areas strong{
  color: #ffffff;
  font-weight: 700;
}

.contact-details.contact-areas a{
  color: #cbd5e1;
  text-decoration: none;
  word-break: break-word;
}

.contact-details.contact-areas a:hover{
  color: var(--primary-color);
  text-decoration: underline;
}

/* ===== TOP BAR STRONG ===== */
.top-bar strong{
  font-weight: 800;
}

/* ===== TOP BAR RESPONSIVE PARA MOBILE ===== */
@media (max-width: 640px) {
  .top-bar {
    padding: 0 8px;
    font-size: 0.75rem;
    height: auto;
    min-height: 50px;
  }
  
  .top-bar .top-bar-inner p {
    gap: 4px;
    flex-wrap: wrap;
  }
  
  .top-bar .hours {
    margin-left: 2px;
    font-size: 0.7rem;
  }
  
  #clock-icon {
    margin-right: 4px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
}

/* ===== CARRUSEL DE MARCAS ===== */
.brands-carousel {
  margin-top: 80px;
  padding: 60px 0;
  background-color: var(--bg-alt);
  text-align: center;
}

.brands-title {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 40px;
  font-weight: 700;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 30px 0;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  animation: scrollLeft 30s linear infinite;
  width: fit-content;
  gap: 40px;
}

.carousel-item {
  min-width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.carousel-item:hover img {
  filter: grayscale(0%);
}

/* Dark mode adjustments */
body.dark-mode .brands-carousel {
  background-color: var(--bg-body);
}

body.dark-mode .carousel-container {
  background-color: var(--bg-card);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

body.dark-mode .carousel-item img {
  filter: grayscale(100%) brightness(0.9);
}

body.dark-mode .carousel-item:hover img {
  filter: grayscale(0%) brightness(1.1);
}

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

/* Pausa la animación en hover */
.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

/* Responsive para carrusel */
@media (max-width: 768px) {
  .brands-carousel {
    margin-top: 50px;
    padding: 40px 0;
  }

  .brands-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .carousel-container {
    padding: 20px 0;
  }

  .carousel-item {
    min-width: 120px;
    height: 80px;
  }

  .carousel-track {
    gap: 30px;
  }
}
