/* --- Fuentes de Google --- */
body {
    font-family: 'Open Sans', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
    scroll-behavior: smooth; /* Para un desplazamiento suave al hacer clic en anclas */
}

.main-content {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* --- Paleta de Colores basada en el Logo --- */
:root {
    /* Colores del Logo */
    --tp-blue-primary: #2085c8;
    --tp-blue-secondary: #2596D7; /* Un tono ligeramente más claro para hover */
    --tp-pink-accent: #e52b88;
    --tp-orange-accent: #f7941e;
    --tp-green-accent: #8dc63f;

    /* Gradiente del Hero Section (inspirado en el logo) */
    --hero-gradient: linear-gradient(90deg, var(--tp-blue-primary) 0%, var(--tp-pink-accent) 50%, var(--tp-orange-accent) 100%);
    
    /* Colores base y de texto */
    --tp-text-dark: #1a202c;
    --tp-text-light: #f7fafc;
    --tp-bg-light: #ffffff;
    --tp-bg-dark: #1a202c;
    --whatsapp-green: #25D366;
}

/* --- Estilos Generales --- */
.header-bg {
    background-color: var(--tp-bg-light);
}

.footer-bg {
    background-color: var(--tp-bg-dark);
    color: var(--tp-text-light);
}

/* --- Barra de Navegación --- */
.nav-link {
    @apply px-4 py-2 rounded-md text-sm font-medium;
}
.nav-link:not(.nav-link-active),
.dropdown-toggle {
    color: var(--tp-text-dark);
    @apply hover:bg-gray-100;
}

.nav-link:not(.nav-link-active):hover,
.dropdown-toggle:hover {
    color: var(--tp-blue-primary);
}

.nav-link-active {
    background-color: var(--tp-blue-primary);
    color: var(--tp-text-light) !important;
    @apply hover:bg-opacity-90;
}
.nav-link-active svg {
    fill: var(--tp-text-light) !important;
}

/* --- Menú Desplegable (Dropdown) --- */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--tp-blue-primary);
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 50;
    border-radius: 0 0 0.375rem 0.375rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.dropdown-menu a {
    color: var(--tp-text-light);
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.875rem;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background-color: var(--tp-blue-secondary);
}
.dropdown.open > .dropdown-menu {
    display: block;
}
.dropdown-toggle svg {
    margin-left: 0.35rem;
    width: 0.75rem;
    height: 0.75rem;
    transition: transform 0.2s ease-in-out;
    fill: currentColor;
}
.dropdown.open .dropdown-toggle svg {
    transform: rotate(180deg);
}

/* --- Menú Móvil --- */
#mobileMenu .nav-link {
    color: var(--tp-text-light);
}
#mobileMenu .nav-link-active {
    background-color: var(--tp-blue-secondary);
    color: var(--tp-text-light);
}
#mobileMenu .nav-bg {
    background-color: var(--tp-blue-primary);
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid var(--whatsapp-green);
    border-radius: 9999px;
    padding: 10px 18px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-decoration: none;
}
.whatsapp-float-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.whatsapp-float-button svg {
    width: 28px;
    height: 28px;
}

/* --- Carrusel de Reseñas (Swiper) --- */
.swiper-container-reviews {
    width: 100%;
    padding-left: 45px;
    padding-right: 45px;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    box-sizing: border-box;
}
.review-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    min-height: 280px;
    text-align: left;
    box-sizing: border-box;
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura */
}
/* ... resto de estilos de review-card ... */

/* --- **NUEVO: Estilos para la página de Productos** --- */

/* Barra Lateral (Sidebar) */
.sidebar-link {
    @apply block px-4 py-2 rounded-md transition-colors duration-200;
    color: var(--tp-text-dark);
    font-weight: 600;
}
.sidebar-link:hover {
    background-color: #f3f4f6; /* gris claro */
    color: var(--tp-blue-primary);
}
.sidebar-link.active {
    background-color: var(--tp-blue-primary);
    color: var(--tp-text-light);
}
.sidebar-link.active:hover {
    background-color: var(--tp-blue-secondary);
}


/* Títulos de Categoría de Producto */
.category-title {
    @apply text-3xl font-semibold text-gray-800 mb-8 border-b-2 pb-2;
    border-color: var(--tp-blue-primary); /* Color por defecto */
}

/* Tarjeta de Producto */
.product-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden flex flex-col;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.product-card:hover {
    @apply shadow-2xl;
    transform: translateY(-5px);
}
.product-card-title {
    @apply text-xl font-semibold mb-2;
    color: var(--tp-text-dark);
}
.product-card-description {
    @apply text-gray-600 text-sm mb-4 flex-grow; /* flex-grow para alinear botones */
}

/* Botón reutilizable */
.btn {
    @apply inline-block font-semibold py-2 px-5 rounded-lg shadow-md text-sm transition duration-300 ease-in-out text-center;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--tp-blue-primary);
    color: var(--tp-text-light);
}
.btn-primary:hover {
    background-color: var(--tp-blue-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}