@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   VARIABLES Y RESET
   ============================================ */

:root {
    --primary-color: #2b4dac;
    --primary-dark: #0048e4;
    --primary-light: #0004ff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --black: #000000;
    --azul-crediquen: #0056b3;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    background-color: var(--white);
    /* Imagen de fondo definida desde functions.php con URL absoluta */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Por defecto (móvil): imagen se desplaza con la página por rendimiento */
    background-attachment: scroll;
    line-height: 1.6;
}

/* ============================================
   UTILIDADES GENERALES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-28 {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pt-0 {
    padding-top: 0;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-10 {
    padding: 2.5rem;
}

.mb-1\.5 {
    margin-bottom: 0.375rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.m-4 {
    margin: 1rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* ============================================
   DISPLAY Y LAYOUT
   ============================================ */

.flex {
    display: flex;
}

.hidden {
    display: none;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.gap-8 {
    gap: 2rem;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overflow-hidden {
    overflow: hidden;
}

/* Imagenes de tarjeta de servicios/noticias */
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   RESPONSIVE - BREAKPOINTS
   ============================================ */

/* Mobile & Tablet (< 960px) - Menú Hamburguesa */
@media (max-width: 959px) {
    .hidden {
        display: none !important;
    }

    .md\:hidden {
        display: block;
    }

    .md\:flex {
        display: none;
    }

    .md\:inline-block {
        display: none;
    }

    .md\:text-left {
        text-align: center;
    }

    .md\:text-center {
        text-align: center;
    }

    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .md\:text-4xl {
        font-size: 1.875rem;
    }

    .md\:text-6xl {
        font-size: 2.25rem;
    }

    .md\:text-xl {
        font-size: 1.125rem;
    }

    .md\:py-28 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .md\:py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .gap-12 {
        gap: 1.5rem;
    }

    .gap-16 {
        gap: 1.5rem;
    }

    .md\:gap-12 {
        gap: 1.5rem;
    }

    .md\:gap-16 {
        gap: 1.5rem;
    }

    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    header nav {
        padding: 0.75rem 0.5rem;
    }

    /* Menor blur y mayor opacidad en móviles para mejor legibilidad/performance */
    body {
        background-attachment: scroll;
    }

    .bg-white {
        background-color: rgba(255,255,255,0.95) !important;
        -webkit-backdrop-filter: blur(2px) saturate(110%);
        backdrop-filter: blur(2px) saturate(110%);
    }

    .bg-gray-50 {
        background-color: rgba(249,250,251,0.88) !important;
        -webkit-backdrop-filter: blur(2px) saturate(105%);
        backdrop-filter: blur(2px) saturate(105%);
    }

    .bg-indigo-50 {
        background-color: rgba(238,242,255,0.85) !important;
        -webkit-backdrop-filter: blur(2px) saturate(105%);
        backdrop-filter: blur(2px) saturate(105%);
    }

    /* Footer: en móvil apilar contactos primero y luego redes/whatsapp */
    footer > div {
        flex-direction: column !important;
        align-items: center;
        gap: 1.25rem;
    }

    footer > div > div {
        width: 100%;
        max-width: 100%;
    }

    /* Centrar contenido interno del footer en móvil */
    footer, footer * {
        text-align: center;
    }

    footer > div > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer a { margin: 0 auto; }

/* Igualar el ancho de todos los botones sociales/whatsapp */
.social-buttons { max-width:500px; width:100%; display:flex; flex-direction:column; gap:10px; }
.social-buttons a { display:block; width:100%; box-sizing:border-box; }

    .text-3xl {
        font-size: 1.875rem;
    }

    .space-x-6 {
        gap: 0.5rem;
    }

    /* Ocultar navegación desktop en móvil */
    .nav-desktop {
        display: none;
    }

    .btn-login-desktop {
        display: none;
    }

    /* Mostrar botón de menú en móvil */
    .btn-menu {
        display: flex !important;
    }

    #mobile-menu {
        display: none;
    }

    #mobile-menu.active {
        display: block;
        max-height: 500px;
    }
}

/* Desktop (≥ 960px) - Menú Completo */
@media (min-width: 960px) {
    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: flex;
    }

    .md\:inline-block {
        display: inline-block;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:text-center {
        text-align: center;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
    }

    .md\:py-28 {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .md\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:gap-12 {
        gap: 3rem;
    }

    .md\:gap-16 {
        gap: 4rem;
    }

    .space-x-6 {
        gap: 1.5rem;
    }

    /* Mostrar navegación desktop */
    .nav-desktop {
        display: flex !important;
    }

    .btn-login-desktop {
        display: inline-flex !important;
    }

    /* Forzar ocultación del botón de menú en escritorio */
    button#mobile-menu-button,
    .btn-menu {
        display: none !important;
        visibility: hidden !important;
    }

    #mobile-menu {
        display: none !important;
    }

    header nav {
        padding: 1rem;
    }

    /* En escritorio fijamos la imagen para un efecto más elegante */
    body {
        background-attachment: fixed;
    }

    .text-3xl {
        font-size: 1.875rem;
    }

    .py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Utilidades antiguas - mantener compatibilidad */
@media (min-width: 768px) and (max-width: 1024px) {
    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: flex;
    }

    .md\:inline-block {
        display: inline-block;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:text-center {
        text-align: center;
    }

    .md\:text-4xl {
        font-size: 2rem;
    }

    .md\:text-6xl {
        font-size: 2.5rem;
    }

    .md\:text-xl {
        font-size: 1.125rem;
    }

    .md\:py-28 {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .md\:py-32 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:gap-12 {
        gap: 2rem;
    }

    .md\:gap-16 {
        gap: 2rem;
    }

    .space-x-6 {
        gap: 1rem;
    }

    /* En tablets aplicamos fondo fijo también para mantener la coherencia visual */
    body {
        background-attachment: fixed;
    }
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-tight {
    line-height: 1.25;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.text-gray-300 {
    color: var(--gray-300);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-800 {
    color: var(--gray-800);
}

.text-white {
    color: var(--white);
}

.text-indigo-400 {
    color: #818cf8;
}

.text-indigo-600 {
    color: var(--primary-color);
}

.text-indigo-800 {
    color: #3730a3;
}

/* ============================================
   COLORES DE FONDO
   ============================================ */

.bg-white {
    background-color: var(--white);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-gray-200 {
    background-color: var(--gray-200);
}

.bg-gray-700 {
    background-color: var(--gray-700);
}

.bg-gray-800 {
    background-color: var(--gray-800);
}

.bg-gray-900 {
    background-color: var(--gray-900);
}

.bg-black {
    background-color: var(--black);
}

.bg-indigo-50 {
    background-color: #eef2ff;
}

/* Fondo del celular */
.bg-indigo-500 {
    background-color: #1f2199;
}

.bg-indigo-600 {
    background-color: var(--primary-color);
}

/* ============================================
   BORDES Y SOMBRAS
   ============================================ */

.border {
    border: 1px solid var(--gray-200);
}

.border-t {
    border-top: 1px solid var(--gray-200);
}

.border-4 {
    border: 4px solid var(--gray-700);
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-gray-600 {
    border-color: var(--gray-600);
}

.border-indigo-500 {
    border-color: var(--primary-light);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-subtle {
    box-shadow: var(--shadow-subtle);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TRANSICIONES Y HOVER
   ============================================ */

.transition-colors {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-shadow {
    transition: box-shadow 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.duration-300 {
    transition-duration: 0.3s;
}

.hover\:bg-gray-50:hover {
    background-color: var(--gray-50);
}

.hover\:bg-gray-100:hover {
    background-color: var(--gray-100);
}

.hover\:bg-gray-700:hover {
    background-color: var(--gray-700);
}

.hover\:bg-indigo-700:hover {
    background-color: var(--primary-dark);
}

.hover\:text-indigo-600:hover {
    color: var(--primary-color);
}

.hover\:text-indigo-800:hover {
    color: #160abb;
}

.hover\:text-indigo-400:hover {
    color: #2237ee;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:shadow-lg:hover {
    box-shadow: var(--shadow-lg);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:shadow-xl:hover {
    box-shadow: var(--shadow-xl);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.transform {
    transform: translateZ(0);
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */

/* Clases para estilos que estaban inline */
.nav-header {
    padding-bottom: 10px;
    padding-top: 10px;
}

.logo-img {
    height: auto;
    width: auto;
    padding-bottom: 0px;
    padding-top: 10px;
}

.app-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

header {
    background-color: rgba(0, 0, 0);
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--gray-100);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    gap: 1rem;
}

header .logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

header a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

header a.logo-link {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

header a.logo-link:hover {
    color: var(--primary-dark);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}
/* texto del menu */

.nav-desktop a {
    padding: 0.5rem 1rem;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-desktop a:hover {
    color: var(--primary-color);
    background-color: var(--gray-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login {
    padding: 0.5rem 1.25rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-login:hover {
    background-color: var(--primary-dark);
}

.btn-login-desktop {
    display: none;
}

/* Estilos base del botón menú (oculto por defecto, visible en móvil) */
.btn-menu {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.btn-menu:hover {
    background-color: var(--gray-100);
}

.btn-menu span {
    display: block;
    width: 1.5rem;
    height: 0.125rem;
    background-color: var(--gray-700);
    transition: all 0.3s ease;
}

#mobile-menu {
    display: none;
    background-color: var(--gray-900);
    border-top: 1px solid var(--gray-200);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    display: block;
    max-height: 500px;
}

#mobile-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

#mobile-menu .btn-login-mobile {
    margin: 1rem;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
}

#mobile-menu .btn-login-mobile:hover {
    background-color: var(--primary-dark);
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}

.z-50 {
    z-index: 50;
}

/* ============================================
   BOTONES
   ============================================ */

a.bg-indigo-600,
button.bg-indigo-600 {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

a.bg-indigo-600:hover,
button.bg-indigo-600:hover {
    background-color: var(--primary-dark);
}

/* boton de google play*/

a.bg-gray-900,
button.bg-gray-900 {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

a.bg-gray-900:hover,
button.bg-gray-900:hover {
    background-color: var(--primary-dark);
}

a.px-8.py-4 {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.5rem;
}

/* ============================================
   FORMULARIOS
   ============================================ */

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-600);
    background-color: var(--gray-700);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

label {
    display: block;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ============================================
   ACORDEÓN
   ============================================ */

.accordion-item {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-subtle);
}

.accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-800);
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background-color: var(--gray-50);
}

.plus-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.open {
    max-height: 500px;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
}

/* ============================================
   MAIN Y SECCIONES
   ============================================ */

main {
    width: 100%;
}

section {
    width: 100%;
}

section#inicio {
    text-align: center;
}

section#app {
    background-color: rgba(229, 231, 235, 0.7);

}

section#servicios {
     background-color: rgb(255, 255, 255, 0.5);
}

section#comercios {
    background-color: rgba(229, 231, 235, 0.7);
    
}

section#noticias {
    background-color: rgb(255, 255, 255, 0.5);
}

section#nosotros {
    background-color: rgba(229, 231, 235, 0.7);
    
}

section#preguntas {
    background-color: rgb(255, 255, 255, 0.5);
}

section#contacto {
    background-color: var(--gray-800);
    color: var(--white);
}

/* ============================================
   COMERCIOS ADHERIDOS
   ============================================ */

#comercios-container {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f7fa;
    padding: 20px;
}

#comercios-container .inner {
    max-width: 1100px;
    margin: auto;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#comercios-container h1 {
    color: var(--azul-crediquen);
    text-align: center;
}

#buscador {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: var(--white);
    color: var(--gray-800);
}

#tablaComercios {
    width: 100%;
    border-collapse: collapse;
}

#comercios-container th {
    background-color: var(--azul-crediquen);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

#comercios-container td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.op-titulo {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 0.9em;
}

.plan-detalle {
    display: block;
    color: #666;
    font-size: 0.85em;
    line-height: 1.2;
}

.localidad-text {
    font-size: 0.85em;
    color: #777;
    display: block;
    margin-top: 4px;
}

.badge-5 {
    width: 45px;
}

.badge-cell {
    text-align: center;
}

.hidden-data {
    display: none;
}

#pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
}

.pagination-button:disabled {
    background: #f5f5f5;
    cursor: default;
}

.pagination-button.active {
    border-color: var(--azul-crediquen);
    background: var(--azul-crediquen);
    color: var(--white);
}

.pagination-info {
    align-self: center;
    color: #555;
    margin-left: 8px;
}

@media (max-width: 768px) {
    #tablaComercios,
    #tablaComercios thead,
    #tablaComercios tbody,
    #tablaComercios th,
    #tablaComercios td,
    #tablaComercios tr {
        display: block;
    }

    #tablaComercios thead {
        display: none;
    }

    #tablaComercios tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 15px;
        border-radius: 10px;
        position: relative;
    }

    #tablaComercios td {
        padding: 8px 0 8px 45%;
        border: none;
        position: relative;
    }

    #tablaComercios td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        font-weight: bold;
        color: var(--azul-crediquen);
    }

    #tablaComercios .badge-cell {
        text-align: left;
        padding-left: 0;
    }

    #tablaComercios .badge-cell::before {
        content: "";
    }
}

/* ============================================
   UTILIDADES EXTRAS
   ============================================ */

.w-6 {
    width: 1.5rem;
}

.w-24 {
    width: 6rem;
}

.w-64 {
    width: 16rem;
}

.w-full {
    width: 100%;
}

.h-0\.5 {
    height: 0.125rem;
}

.h-1 {
    height: 0.25rem;
}

.h-48 {
    height: 12rem;
}

.h-128 {
    height: 32rem;
}

.h-full {
    height: 100%;
}

.block {
    display: block;
}

.inline-flex {
    display: inline-flex;
}

.inline-block {
    display: inline-block;
}

.items-start {
    align-items: flex-start;
}

.opacity-50 {
    opacity: 0.5;
}

/* Enlaces en la sección contacto deben heredar el color del texto */
section#contacto a {
    color: inherit;
    text-decoration: none;
}

section#contacto a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer#footer {
    background-color: #0b1e3b;
    color: #fff;
    padding: 40px 0;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.footer-column-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    max-width: 500px;
}

.footer-column-right {
    padding-left: 20px;
}

.footer-column h2 {
    margin-bottom: 10px;
}

.footer-column-right h2 {
    margin-bottom: 36px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    width: 100%;
}

.social-link {
    background-color: #25D366;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    display: block;
}

.social-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

.social-link-facebook {
    background-color: #1877f2;
}

.social-link-instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.social-link-whatsapp {
    background-color: #25D366;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    flex-wrap: wrap;
}

.footer-link {
    color: #fff;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
    color: #ccc;
}

.footer-copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #ccc;
}
