/* =================================================================
   ESTILOS GLOBALES Y DE LA LANDING PAGE REDISEÑADA
================================================================= */
body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background-color: #0f172a;
    color: #cbd5e1;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex-grow: 1;
}
.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scrolling-wrapper {
    animation: scroll 40s linear infinite;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Tarjetas de servicios y ventajas */
.bg-slate-900 {
    background-color: #0f172a !important;
}
.bg-slate-800 {
    background-color: #1e293b !important;
}
.rounded-xl {
    border-radius: 1rem !important;
}
.shadow-lg {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}
/* Footer y contacto */
footer {
    background: #0f172a;
    color: #cbd5e1;
}
footer a {
    transition: color 0.2s;
}
footer a:hover {
    color: #38bdf8 !important;
}
/* Eliminar estilos de login y app interna */
.login-container, .login-box, #app-container, #login-screen {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}
/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}


/* =================================================================
   ESTILOS DE LA APLICACIÓN (Cotizador)
================================================================= */

/* Estilos para el header oculto de la app (cuando está en uso) */
#app-container header {
    transform: translateY(-calc(100% - 20px)); /* Deja una pestaña de 20px visible */
    transition: transform 0.4s ease-in-out;
}
#app-container header:hover {
    transform: translateY(0);
}

/* Estilos para el scrollbar del modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para el login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

/* Estilos para el dashboard */
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* =================================================================
   ESTILOS PARA MODO OSCURO (DARK MODE)
================================================================= */
.dark {
    background-color: #0f172a !important;
    color: #d1d5db; /* gray-300 */
}
.dark body {
    background-image: none;
    background-color: #111827;
}
.dark .bg-white, .dark .bg-white\/95, .dark .bg-gray-50, .dark .login-box {
    background-color: #1f2937 !important; /* gray-800 */
    color: #d1d5db; /* gray-300 */
}
.dark h1, .dark h2, .dark h3, .dark .font-bold, .dark .total, .dark .text-gray-800, .dark .text-gray-900 {
    color: #f9fafb !important; /* gray-50 */
}
.dark p, .dark .font-semibold, .dark label, .dark span, .dark .text-gray-600, .dark .text-gray-700 {
    color: #e5e7eb !important; /* gray-200 */
}
.dark a {
    color: #60a5fa !important; /* blue-400 */
}
.dark input, .dark textarea, .dark select {
    background-color: #374151 !important; /* gray-700 */
    color: #f9fafb !important; /* gray-50 */
    border-color: #4b5563 !important; /* gray-600 */
}
.dark input::placeholder, .dark textarea::placeholder {
    color: #6b7280; /* gray-500 */
}
.dark .border-t, .dark .border-b, .dark .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-color: #4b5563 !important; /* gray-600 */
}
.dark .bg-gray-200 {
    background-color: #374151 !important; /* gray-700 */
}
.dark .text-blue-600 {
    color: #93c5fd !important; /* blue-300 */
}
.dark [data-feather] {
    color: #9ca3af !important; /* gray-400 */
}
.dark .text-green-500 {
    color: #4ade80 !important; /* green-400 */
}
.dark .dashboard-card {
    border-color: #4b5563 !important;
}
.dark .bg-red-100 {
    background-color: #3f1a1d !important;
}
.dark .text-red-600 {
    color: #fca5a5 !important;
}
.dark .text-gray-400 {
    color: #9ca3af !important;
}
.dark .hover\:bg-gray-100:hover {
    background-color: #374151 !important;
}


/* =================================================================
   ESTILOS DE IMPRESIÓN
================================================================= */
@media screen {
    #invoice-print-view {
        display: none;
    }
}

@media print {
    body { 
        -webkit-print-color-adjust: exact !important; 
        print-color-adjust: exact !important;
        background: #fff;
        font-family: 'Inter', sans-serif;
        font-size: 9pt;
        color: #374151; /* gray-700 */
    }
    header, footer.bg-gray-800, .no-print {
        display: none !important;
    }
    main {
        padding: 0 !important;
    }
    #invoice-wrapper {
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        background: none !important;
    }
    #invoice-container {
        display: none !important;
    }
    #invoice-print-view {
        display: block !important;
    }

    /* Info de la empresa y cliente */
    .print-info-section {
        display: flex;
        justify-content: space-between;
        margin-top: 1cm;
        margin-bottom: 1cm;
    }
    .print-info-block {
        width: 48%;
    }
    .print-info-block h3 {
        font-size: 11pt;
        font-weight: 600;
        color: #1e3a8a; /* blue-900 */
        border-bottom: 1px solid #dbeafe; /* blue-100 */
        padding-bottom: 4px;
        margin-bottom: 8px;
    }
    .print-info-block p {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
        font-size: 9pt;
    }
    .print-info-block .icon {
        width: 14px;
        height: 14px;
        margin-right: 8px;
        color: #3b82f6; /* blue-500 */
    }

    /* Tabla de productos */
    .print-items-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1cm;
    }
    .print-items-table thead {
        display: table-header-group;
    }
    .print-items-table thead th {
        background-color: #1e3a8a !important;
        color: white !important;
        padding: 10px;
        font-size: 9pt;
        text-align: left;
        font-weight: 600;
    }
    .print-items-table tbody tr {
        page-break-inside: avoid;
        border-bottom: 1px solid #e5e7eb; /* gray-200 */
    }
    .print-items-table tbody tr:nth-child(even) {
        background-color: #f8fafc !important; /* slate-50 */
    }
    .print-items-table td {
        padding: 10px;
        vertical-align: top;
    }
    .print-items-table .item-description {
        word-break: break-word;
    }
    .print-items-table .item-image {
        max-height: 45px;
        max-width: 60px;
        margin: auto;
        display: block;
    }

    /* Sección de totales y notas */
    .print-summary-section {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        page-break-inside: avoid;
    }
    .print-notes {
        width: 60%;
    }
    .print-notes h3 {
        font-size: 11pt;
        font-weight: 600;
        color: #1e3a8a;
        margin-bottom: 8px;
    }
    .print-notes p {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
    }
    .print-notes .icon {
        width: 14px;
        height: 14px;
        margin-right: 8px;
        color: #16a34a; /* green-600 */
    }
    .print-totals {
        width: 35%;
        font-size: 10pt;
    }
    .print-totals div {
        display: flex;
        justify-content: space-between;
        padding: 8px;
    }
    .print-totals div:last-child {
        background-color: #dbeafe !important; /* blue-100 */
        border-radius: 8px;
        margin-top: 5px;
    }
    .print-totals .total-label {
        font-weight: 600;
        color: #374151; /* gray-700 */
    }
    .print-totals .total-amount {
        font-weight: 600;
    }
    .print-totals .grand-total-label {
        font-weight: 700;
        color: #1e3a8a; /* blue-900 */
        font-size: 11pt;
    }
    .print-totals .grand-total-amount {
        font-weight: 700;
        color: #1e3a8a; /* blue-900 */
        font-size: 11pt;
    }
}

/* =====================
   LANDING PAGE MODERNA
====================== */
body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background-color: #0f172a;
    color: #cbd5e1;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex-grow: 1;
}
header {
    transition: background 0.3s, box-shadow 0.3s;
}
.logo-anim {
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), filter 0.3s;
}
.logo-anim:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 4px 16px #38bdf8cc);
}
.nav-link, .nav-link-mobile {
    color: #334155;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
    position: relative;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
}
.nav-link:hover, .nav-link-mobile:hover {
    color: #38bdf8;
    background: #1e293b22;
    transform: scale(1.08);
}
.hidden.md\:flex { display: none !important; }
@media (min-width: 768px) {
    .hidden.md\:flex { display: flex !important; }
    #mobile-menu { display: none !important; }
}
#menu-overlay {
    display: none;
}
#menu-overlay.active {
    display: block;
}
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80vw;
    max-width: 340px;
    background: #0f172a;
    z-index: 1050;
    box-shadow: 0 8px 32px #0ea5e955;
    padding-top: 2.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
#mobile-menu.active {
    transform: translateX(0);
}
#mobile-menu nav a {
    color: #bae6fd;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.3rem 0;
    padding: 1rem 0.7rem;
    border-radius: 0.7rem;
    background: #1e293b55;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
#mobile-menu nav a:hover {
    background: #38bdf8;
    color: #fff;
    transform: scale(1.04);
}
#close-menu {
    top: 1.2rem;
    right: 1.2rem;
    z-index: 10000;
    font-size: 2.2rem;
    padding: 0.5rem 0.7rem;
    background: #1e293b;
    border-radius: 50%;
    box-shadow: 0 2px 12px #38bdf822;
    border: none;
    outline: none;
    transition: background 0.2s;
}
#close-menu:hover {
    background: #38bdf8;
    color: #fff;
}
@media (min-width: 768px) {
    #mobile-menu, #menu-overlay { display: none !important; }
}
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}
body, html {
    font-size: 16px;
}
@media (max-width: 600px) {
    body, html {
        font-size: 15px;
    }
    #mobile-menu nav a {
        font-size: 1.3rem;
        padding: 0.7rem 1.2rem;
        max-width: 98vw;
    }
}
.animate-fade-in {
    animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1) both;
}
.animate-fade-in-down {
    animation: fadeInDown 1.2s cubic-bezier(.4,0,.2,1) both;
}
.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1) both;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    inset: 0;
    background: url('background.png') center/cover no-repeat;
    opacity: 0.55;
    z-index: 0;
    will-change: transform;
    transition: opacity 0.5s;
}
.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, #38bdf8, #3b82f6);
    color: #fff;
    padding: 0.9rem 2.5rem;
    border-radius: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 24px #38bdf855;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    margin-top: 1.5rem;
    letter-spacing: 0.01em;
}
.cta-btn:hover {
    background: linear-gradient(90deg, #3b82f6, #38bdf8);
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 8px 32px #38bdf888;
}
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}
.service-card {
    background: #0f172a;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px #0ea5e955;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    cursor: pointer;
    will-change: transform;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-8px) scale(1.04) rotate(-1deg);
    box-shadow: 0 12px 32px #38bdf888;
    background: linear-gradient(120deg, #1e293b 60%, #38bdf822 100%);
}
.advantage-card {
    background: linear-gradient(120deg, #1e293b 80%, #38bdf822 100%);
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px #0ea5e955;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    cursor: pointer;
    will-change: transform;
    position: relative;
    overflow: hidden;
    border: 1.5px solid #33415533;
}
.advantage-card:hover {
    transform: translateY(-8px) scale(1.04) rotate(-1deg);
    box-shadow: 0 16px 48px #38bdf888;
    background: linear-gradient(120deg, #1e293b 60%, #38bdf844 100%);
}
.advantage-card i {
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #38bdf8 60%, #3b82f6 100%);
    border-radius: 50%;
    padding: 0.7rem;
    color: #fff !important;
    box-shadow: 0 2px 12px #38bdf822;
}
.product-pill {
    display: inline-block;
    background: linear-gradient(90deg, #1e293b 60%, #38bdf822 100%);
    color: #38bdf8;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px #38bdf822;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    opacity: 0;
    transform: translateX(60px) scale(0.96);
    animation: pillSlideInLeft 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes pillSlideInLeft {
    0% { opacity: 0; transform: translateX(60px) scale(0.96); }
    60% { opacity: 1; transform: translateX(-10px) scale(1.04); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
.product-pill:hover {
    background: linear-gradient(90deg, #38bdf8 60%, #3b82f6 100%);
    color: #fff;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 24px #38bdf888;
}
/* Animación wave: retraso incremental para cada pill */
#productos .product-pill:nth-child(1) { animation-delay: 0.05s; }
#productos .product-pill:nth-child(2) { animation-delay: 0.15s; }
#productos .product-pill:nth-child(3) { animation-delay: 0.25s; }
#productos .product-pill:nth-child(4) { animation-delay: 0.35s; }
#productos .product-pill:nth-child(5) { animation-delay: 0.45s; }
#productos .product-pill:nth-child(6) { animation-delay: 0.55s; }
#productos .product-pill:nth-child(7) { animation-delay: 0.65s; }
#productos .product-pill:nth-child(8) { animation-delay: 0.75s; }
.animate-scroll-horizontal {
    animation: scroll-horizontal 30s linear infinite;
}
@keyframes scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding-top: 2rem;
    padding-bottom: 1rem;
}
footer a {
    transition: color 0.2s;
}
footer a:hover {
    color: #38bdf8 !important;
}
.brand-pill {
    display: inline-block;
    background: linear-gradient(90deg, #1e293b 60%, #38bdf822 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 999px;
    padding: 0.7rem 2.2rem;
    margin: 0.3rem 0.3rem;
    box-shadow: 0 2px 12px #38bdf822;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.brand-pill:hover {
    background: linear-gradient(90deg, #38bdf8 60%, #3b82f6 100%);
    color: #fff;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 24px #38bdf888;
}
.brand-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1rem 2rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s, border 0.2s;
    box-shadow: 0 2px 12px #38bdf822;
    min-width: 120px;
    min-height: 80px;
    border: 1.5px solid #e5e7eb;
    margin: 0.5rem;
}
.brand-logo-link:hover {
    background: #f1f5f9;
    box-shadow: 0 6px 24px #38bdf888;
    transform: scale(1.08) translateY(-2px);
    border-color: #38bdf8;
}
.brand-logo {
    max-height: 48px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    background: transparent;
    display: block;
}
@media (max-width: 1024px) {
    .brand-logo-link {
        min-width: 90px;
        min-height: 60px;
        padding: 0.7rem 1.2rem;
    }
    .brand-logo {
        max-height: 36px;
        max-width: 80px;
    }
}
@media (max-width: 600px) {
    .brand-logo-link {
        min-width: 60px;
        min-height: 40px;
        padding: 0.4rem 0.7rem;
    }
    .brand-logo {
        max-height: 24px;
        max-width: 50px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .service-card, .advantage-card {
        padding: 2rem 1rem;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
}
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .service-card, .advantage-card {
        padding: 1.2rem 0.7rem;
    }
    .product-pill {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    .scroll-down-indicator {
        bottom: 1rem;
    }
}
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.1rem;
    }
    .cta-btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
}

.footer-modern {
    background: #0f172a;
    color: #cbd5e1;
    position: relative;
    border-top: 1.5px solid #1e293b;
    box-shadow: 0 -2px 24px #0ea5e933;
}
.footer-separator {
    width: 120px;
    height: 5px;
    border-radius: 8px;
    background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 100%);
    opacity: 0.7;
}
.footer-contact h2 {
    letter-spacing: 0.01em;
}
.footer-contact p {
    font-size: 1.1rem;
    text-align: justify;
}
.footer-social {
    align-items: flex-end;
}
.footer-social .flex a {
    font-size: 2rem;
    padding: 0.3rem 0.7rem;
    border-radius: 0.7rem;
    background: #1e293b33;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-social .flex a:hover {
    background: #38bdf8;
    color: #fff !important;
    transform: scale(1.12);
}
.footer-social p {
    margin-top: 0.5rem;
}
.footer-bg-deco {
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 80% 120%, #38bdf822 0%, transparent 70%),
                radial-gradient(circle at 10% 80%, #3b82f622 0%, transparent 70%);
    opacity: 0.7;
}
.footer-modern .footer-contact, .footer-modern .footer-social {
    background: #1e293b55;
    border-radius: 1.2rem;
    padding: 2rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 12px #38bdf822;
}
.footer-contact h2 {
    text-align: left;
}
@media (max-width: 900px) {
    .advantage-card {
        padding: 1.2rem 0.7rem;
    }
    .footer-modern .footer-contact, .footer-modern .footer-social {
        padding: 1.2rem 0.7rem;
    }
}

.header-modern {
    background: linear-gradient(90deg, #f8fafc 60%, #e0f2fe 100%);
    box-shadow: 0 4px 32px #0ea5e933, 0 1.5px 0 #38bdf822;
    border-bottom: 1.5px solid #e0e7ef;
    position: sticky;
    top: 0;
    z-index: 40;
    transition: background 0.3s, box-shadow 0.3s;
}
.header-modern nav {
    min-height: 5.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.header-separator {
    width: 100px;
    height: 4px;
    border-radius: 8px;
    background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 100%);
    opacity: 0.7;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}
.nav-link-strong {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.7rem 1.3rem;
    border-radius: 0.7rem;
    background: transparent;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 0px 0 #38bdf800;
    position: relative;
}
.nav-link-strong:hover, .nav-link-strong:focus {
    background: linear-gradient(90deg, #38bdf8 60%, #3b82f6 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px #38bdf855;
    transform: scale(1.08) translateY(-2px);
}
h1, h2, h3, h4, h5, h6,
.nav-link-strong,
.brand-pill,
.service-card h3,
.advantage-card h4 {
    font-family: 'Poppins', 'Inter', Arial, Helvetica, sans-serif;
    letter-spacing: 0.01em;
}
@media (max-width: 900px) {
    .header-modern nav {
        min-height: 4.2rem;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }
    .header-separator {
        width: 60px;
        height: 3px;
    }
    .nav-link-strong {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
    }
}
#productos .relative {
    overflow-x: hidden;
    position: relative;
}
.scrolling-wrapper {
    display: flex;
    width: max-content;
    animation: marqueeLeft 45s linear infinite;
    will-change: transform;
}
@keyframes marqueeLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
#productos .scrolling-wrapper:hover {
    animation-play-state: paused;
}
.product-pill {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    margin-right: 2.5rem;
    margin-bottom: 0;
}
.lang-switch {
    background: #e0f2fe;
    border-radius: 1.2rem;
    padding: 0.2rem 0.7rem;
    box-shadow: 0 2px 8px #38bdf822;
}
.lang-btn {
    border: none;
    background: transparent;
    padding: 0.2rem;
    border-radius: 50%;
    transition: box-shadow 0.2s, outline 0.2s, background 0.2s;
    outline: none;
    cursor: pointer;
    opacity: 0.7;
}
.lang-btn.active, .lang-btn:focus {
    box-shadow: 0 0 0 2px #38bdf8;
    background: #bae6fd;
    opacity: 1;
}
.lang-btn img {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: block;
}
.footer-map {
    border: 2px solid #38bdf8;
    box-shadow: 0 4px 24px #38bdf822;
    border-radius: 1.2rem;
    overflow: hidden;
    margin-top: 1.2rem;
}
.footer-map {
    max-width: 420px !important;
    min-width: 260px;
    margin-left: auto;
    margin-right: auto;
    background: #1e293b;
    padding: 0.5rem;
}
.footer-social-icons {
    margin-bottom: 1.2rem;
}
@media (max-width: 900px) {
    .footer-map {
        max-width: 98vw !important;
        min-width: 0;
    }
}
.footer-socialmap-card {
    background: linear-gradient(120deg, #1e293b 80%, #38bdf822 100%);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px #0ea5e955;
    padding: 2.2rem 2.2rem 1.2rem 2.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
}
@media (min-width: 768px) {
    .footer-socialmap-card {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 3.5rem;
        padding: 2.2rem 2.2rem 1.2rem 2.2rem;
    }
}
.footer-social-icons {
    display: flex;
    flex-direction: row;
    gap: 2.2rem;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) {
    .footer-social-icons {
        flex-direction: column;
        gap: 2.2rem;
    }
}
.footer-social-icons a {
    font-size: 2.5rem;
    padding: 0.5rem;
    border-radius: 1rem;
    background: #1e293b55;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-social-icons a:hover {
    background: #38bdf8;
    color: #fff !important;
    transform: scale(1.12);
}
.footer-mapblock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.footer-mapblock span {
    font-size: 1.1rem;
    color: #bae6fd;
    margin-bottom: 0.3rem;
}
.footer-socialmap-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1000px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
@media (min-width: 768px) {
    .footer-socialmap-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 4rem;
        padding-left: 0;
        padding-right: 0;
    }
}
.footer-social-icons, .footer-mapblock {
    background: linear-gradient(120deg, #1e293b 80%, #38bdf822 100%);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px #0ea5e955;
    padding: 1.2rem 0.7rem;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
}
.footer-mapblock {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.footer-mapblock span {
    font-size: 1.1rem;
    color: #bae6fd;
    margin-bottom: 0.3rem;
}
.footer-map {
    width: 100%;
    max-width: 420px !important;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    background: #1e293b;
    padding: 0.5rem;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px #38bdf822;
}
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}
@media (max-width: 900px) {
    .footer-map {
        max-width: 98vw !important;
        min-width: 0;
    }
    .footer-socialmap-row {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        gap: 2.2rem;
    }
    .footer-social-icons, .footer-mapblock {
        padding: 1.2rem 0.7rem;
        max-width: 98vw;
    }
}
@media (max-width: 600px) {
    .footer-socialmap-row {
        gap: 1.2rem;
    }
    .footer-social-icons, .footer-mapblock {
        padding: 0.7rem 0.2rem;
    }
}
.product-pill {
    font-size: clamp(1rem, 2vw, 1.25rem);
    padding: 0.6rem 1.2rem;
    margin-right: 1.2rem;
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .product-pill {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
        margin-right: 0.5rem;
    }
}
.service-card, .advantage-card {
    font-size: clamp(1rem, 2vw, 1.1rem);
    padding: 1.2rem 0.7rem;
}
@media (max-width: 600px) {
    .service-card, .advantage-card {
        font-size: 0.98rem;
        padding: 0.7rem 0.2rem;
    }
}
body, html {
    font-size: 16px;
}
@media (max-width: 600px) {
    body, html {
        font-size: 15px;
    }
}
.footer-bottom {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
}
.footer-social-icons {
    gap: 2.2rem;
}
#productos .relative {
    height: 5rem !important;
    min-height: 0;
    max-height: 6rem;
    display: flex;
    align-items: center;
}
.product-pill {
    font-size: 1.12rem;
    padding: 0.7rem 1.5rem;
    margin-right: 1.2rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.2;
    min-height: 2.5rem;
}
@media (max-width: 600px) {
    #productos .relative {
        height: 3.2rem !important;
        max-height: 3.7rem;
    }
    .product-pill {
        font-size: 0.98rem;
        padding: 0.5rem 0.8rem;
        margin-right: 0.5rem;
        min-height: 1.7rem;
    }
}