/* Importar fuente Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');

/* Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --text-color-dark: #333;
    --text-color-light: #fff;
    --background-light: #f8f9fa;
    --background-dark: #333;
    --link-hover-color: #0056b3;
    --border-color: #ccc;
    --shadow-color: rgba(0, 0, 0, 0.1);

    --space-unit: 1rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

/* Tipografía general */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color-dark);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Encabezados */
h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-color-dark);
    letter-spacing: -0.03em;
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; font-weight: 500; margin-bottom: var(--space-sm); }

/* Menú burger */
.navbar-toggler {
    color: var(--text-color-dark) !important;
    border-color: var(--text-color-dark) !important;
    background-color: transparent !important;
    border-radius: 4px;
    transition: box-shadow 0.3s ease-in-out;
}

.navbar-toggler:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(51, 51, 51, 0.25);
}

/* Home */
.home-01 {
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-dark);
    text-align: center;
    padding: var(--space-lg);
}

/* Visibilidad responsive */
.show-desktop { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
    .show-desktop { display: none; }
    .show-mobile { display: block; }

    h1 { font-size: 2rem; text-align: center; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .container { padding: var(--space-md); }
    .section { padding: var(--space-lg) 0; }
}

/* Sombra general */
.mu {
    box-shadow: 0 6px 12px var(--shadow-color);
    transition: box-shadow 0.3s ease-in-out;
}

/* Enlaces */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

a:focus {
    outline: 2px dashed var(--link-hover-color);
    outline-offset: 2px;
}

/* Botones */
button, .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
}

button:hover, .btn:hover {
    background-color: var(--link-hover-color);
    box-shadow: 0px 6px 12px var(--shadow-color);
}

button:focus, .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

button:active, .btn:active {
    box-shadow: 0px 2px 5px var(--shadow-color);
    transform: translateY(1px);
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: var(--space-lg) 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: var(--text-color-light);
    transition: color 0.3s ease-in-out;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0.5rem;
}

/* Catálogo: limpiar fichas */
.single-product h4.title,
.single-product .product-info,
.single-product .product-btn {
    display: none !important;
}

/* Eliminar espacio extra bajo imagen */
.single-product .product-image {
    margin-bottom: 0 !important;
}

/* Altura uniforme para todas las tarjetas */
.single-product {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 340px;
}

.col-lg-4.col-sm-6.col-12 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Efecto hover sobre imagen */
.single-product .product-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
}

.single-product:hover .product-image {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Botón WhatsApp */
a.btn-whatsapp-presencia {
    background-color: #003471 !important;
    color: #ffffff !important;
    border: none !important;
}

a.btn-whatsapp-presencia:hover {
    background-color: #002244 !important;
}

/* Botón compartir */
button#btnCollapseShareUrl {
    background-color: #00A8B4 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px;
    padding: 8px 12px;
}

button#btnCollapseShareUrl i.fa-share-nodes {
    color: #ffffff !important;
}

button#btnCollapseShareUrl:hover {
    background-color: #008998 !important;
}

/* Título en ficha de producto */
h1.title {
    color: #003471 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

@media (max-width: 768px) {
    h1.title {
        font-size: 1.8rem;
        text-align: center;
    }
}

/* Ocultar header del catálogo */
#catalogPage header,
#catalogPage .site-header,
#catalogPage .header {
    display: none !important;
}