/* Variables para colores en modo claro y oscuro */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-tertiary: #f5f5f5;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --accent-color: #d45a8c;
    --accent-hover: #b84d78;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.05);
    --border-color: #dddddd;
    --overlay-color: rgba(0, 0, 0, 0.3);
    --modal-bg: rgba(0, 0, 0, 0.8);
    --footer-bg: #333333;
    --footer-text: #ffffff;
    --success-color: #4CAF50;
    --star-color: #FFD700;
    --quote-color: #dddddd;
    --header-shadow: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --map-overlay-bg: rgba(255, 255, 255, 0.9);
    --map-overlay-text: #333333;
    --badge-bg: rgba(212, 90, 140, 0.9);
    --badge-text: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --filter-border: rgba(212, 90, 140, 0.2);
}

/* Modo oscuro */
.dark-mode {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #f0f0f0;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --accent-color: #ff82b7;
    --accent-hover: #f76da6;
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.2);
    --border-color: #444444;
    --overlay-color: rgba(0, 0, 0, 0.5);
    --modal-bg: rgba(0, 0, 0, 0.9);
    --footer-bg: #1a1a1a;
    --footer-text: #f0f0f0;
    --success-color: #5fd966;
    --star-color: #ffd54f;
    --quote-color: #555555;
    --header-shadow: rgba(0, 0, 0, 0.3);
    --map-overlay-bg: rgba(30, 30, 30, 0.9);
    --map-overlay-text: #f0f0f0;
    --badge-bg: rgba(245, 135, 190, 0.85);
    --badge-text: #1f1f1f;
    --card-border: rgba(255, 255, 255, 0.05);
    --filter-border: rgba(255, 255, 255, 0.2);
}

/* Transición suave al cambiar de modo */
* {
    transition: background-color var(--transition-speed),
        color var(--transition-speed),
        border-color var(--transition-speed),
        box-shadow var(--transition-speed);
}

/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PT Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

h1,
h2,
h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(212, 90, 140, 0.2);
}

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

.btn a {
    color: inherit;
}

/* Toggle de tema */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--bg-tertiary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    cursor: pointer;
    box-shadow: inset 0 0 5px var(--header-shadow);
    transition: background-color 0.3s;
    margin-right: 15px;
}

.theme-toggle i {
    font-size: 16px;
    color: var(--text-primary);
    z-index: 1;
}

.theme-toggle .fa-sun {
    color: #f39c12;
}

.theme-toggle .fa-moon {
    color: #34495e;
}

.toggle-ball {
    position: absolute;
    left: 5px;
    width: 22px;
    height: 22px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s;
}

.theme-toggle.active .toggle-ball {
    transform: translateX(30px);
}

/* Toggle de tema para móviles */
.mobile-theme-toggle-container {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.mobile-theme-label {
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--bg-tertiary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    cursor: pointer;
    box-shadow: inset 0 0 5px var(--header-shadow);
    transition: background-color 0.3s;
}

.mobile-theme-toggle i {
    font-size: 16px;
    color: var(--text-primary);
    z-index: 1;
}

.mobile-theme-toggle .fa-sun {
    color: #f39c12;
}

.mobile-theme-toggle .fa-moon {
    color: #34495e;
}

.mobile-theme-toggle .toggle-ball {
    position: absolute;
    left: 5px;
    width: 22px;
    height: 22px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s;
}

.mobile-theme-toggle.active .toggle-ball {
    transform: translateX(30px);
}

/* Header Fijo */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-primary) !important;
    box-shadow: 0 2px 10px var(--header-shadow);
    padding: 1rem 0;
    transition: none !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.detail-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.detail-theme-toggle {
    display: flex;
    align-items: center;
}

.detail-theme-toggle .theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--bg-tertiary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    cursor: pointer;
    box-shadow: inset 0 0 5px var(--header-shadow);
    transition: background-color 0.3s;
    margin-right: 15px;
}

.detail-theme-toggle .theme-toggle i {
    font-size: 16px;
    color: var(--text-primary);
    z-index: 1;
}

.detail-theme-toggle .theme-toggle .fa-sun {
    color: #f39c12;
}

.detail-theme-toggle .theme-toggle .fa-moon {
    color: #34495e;
}

.detail-theme-toggle .theme-toggle .toggle-ball {
    position: absolute;
    left: 5px;
    width: 22px;
    height: 22px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s;
}

.detail-theme-toggle .theme-toggle.active .toggle-ball {
    transform: translateX(30px);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary) !important;
    margin: 0;
    letter-spacing: 1px;
    transition: none !important;
}

/* Menú de navegación */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-left: auto;
}

/* Botón de cierre del menú */
.menu-close {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Header y Carousel */
.header {
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.hide-old-hero .header {
    display: none;
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: zoomEffect 20s infinite alternate;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 2;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

/* Contenido único del hero */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 3;
    width: 80%;
}

.slide-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.slide-element.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso escalonado para cada elemento */
.slide-element:nth-child(1).animate {
    transition-delay: 0.1s;
}

.slide-element:nth-child(2).animate {
    transition-delay: 0.3s;
}

.slide-element:nth-child(3).animate {
    transition-delay: 0.5s;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

/* Animación del Carousel */
@keyframes carouselAnimation {

    0%,
    33.33% {
        opacity: 1;
        z-index: 2;
    }

    33.34%,
    100% {
        opacity: 0;
        z-index: 1;
    }
}

.carousel-item:nth-child(1) {
    animation: carouselAnimation 15s infinite;
    animation-delay: 0s;
}

.carousel-item:nth-child(2) {
    animation: carouselAnimation 15s infinite;
    animation-delay: 5s;
}

.carousel-item:nth-child(3) {
    animation: carouselAnimation 15s infinite;
    animation-delay: 10s;
}

/* Sección de Productos */
.products-section {
    padding: 1rem 1rem;
    background-color: var(--bg-secondary);
    text-align: center;
}

.catalog-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.55rem 1.5rem;
    border: 1px solid var(--filter-border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.filter-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Sección de Testimonios */
.testimonials-section {
    padding: 4rem 2rem;
    background-color: var(--bg-primary);
    text-align: center;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--card-shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.quote-icon {
    font-size: 2rem;
    color: var(--quote-color);
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-rating {
    color: var(--star-color);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* Sección de Contacto */
.contact-section {
    padding: 4rem 2rem;
    background-color: var(--bg-tertiary);
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

/* Sección de Mapa */
.map-section {
    padding: 4rem 2rem;
    background-color: var(--bg-secondary);
    text-align: center;
}

.map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--card-shadow);
}

.map-wrapper {
    width: 100%;
    height: 450px;
    background-color: var(--bg-tertiary);
}

.google-map {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--map-overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.5s;
}

.overlay-content {
    text-align: center;
    padding: 2rem;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--map-overlay-text);
}

.overlay-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.directions-btn-container {
    margin: 2rem 0;
    text-align: center;
}

.map-btn {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.map-btn:hover {
    background-color: var(--accent-hover);
}

/* Animación para títulos de secciones */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
    transition: width 0.8s ease 0.3s;
}

.section-title.animate-title {
    opacity: 1;
    transform: translateY(0);
}

.section-title.animate-title::after {
    width: 80px;
}

/* Aviso del catálogo */
.catalog-notice {
    text-align: center;
    margin: -1rem auto 2.5rem auto;
    max-width: 800px;
    padding: 0 1rem;
}

.catalog-notice p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.catalog-notice em {
    font-style: italic;
    color: var(--accent-color);
}

/* Productos */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: start;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--card-border);
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.45s ease;
    height: 100%;
    opacity: 0;
    transform: translateY(24px);
    display: flex;
    flex-direction: column;
}

.dark-mode .product-card {
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.product-card.card-enter {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    /* Removido el translateY para que no se levante la tarjeta */
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.12);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.product-image-link {
    display: block;
    color: inherit;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    width: 100%;
}

.product-image {
    position: relative;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background-color: var(--bg-tertiary);
    aspect-ratio: 4 / 5;
    width: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.availability-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.product-info {
    padding: 1.5rem 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    flex-grow: 1;
}

.product-meta {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #7C3AED;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #7C3AED, #F59E0B, #EF4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.3rem;
    display: block;
}

.product-care-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-style: italic;
    line-height: 1.4;
}

.product-actions {
    margin-top: auto;
    padding: 1rem 1.75rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-details-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.btn-details-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;

    border: 1px solid rgba(212, 90, 140, 0.25);
    color: var(--accent-color);

}

.btn-whatsapp:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: transparent;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-details:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 0.2rem;
    }

    .product-card {
        border-radius: 15px;
    }

    .product-image {
        border-radius: 15px 15px 0 0;
        aspect-ratio: 1;
    }

    .product-info {
        padding: 0.6rem;
    }

    .product-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .product-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Botones del modal en columna para tablets y móviles */
    .modal-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-actions .detail-btn {
        width: 100%;
    }
}

/* Estilos para el nuevo hero */
.new-hero {
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.new-carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.new-carousel {
    height: 100%;
    width: 100%;
}

.new-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.new-carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.new-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.new-animated-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.new-animated-text-line {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    color: white !important;
}

.new-animated-text-line:nth-child(2) {
    font-size: 1.5rem;
    font-weight: 400;
}

.new-animated-text-line:nth-child(3) {
    font-size: 1.5rem;
    font-weight: 400;
}

.btn-hero {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    padding: 0.8rem 1.2rem;
    font-family: 'Outfit', sans-serif;
    border-radius: 25px;
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .new-animated-text-line {
        font-size: 2rem;
    }

    .new-animated-text-line:nth-child(2),
    .new-animated-text-line:nth-child(3) {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .new-animated-text-line {
        font-size: 1.5rem;
    }

    .new-animated-text-line:nth-child(2),
    .new-animated-text-line:nth-child(3) {
        font-size: 0.9rem;
    }
}

@keyframes fadeIn-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-empty {
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 16px;
    border: 1px dashed var(--filter-border);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Modal de Producto */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.product-modal:target {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card-bg);
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    min-height: 520px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: var(--text-primary);
    z-index: 10;
}

.modal-gallery {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    width: 100%;
    min-height: 420px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    padding: 1.5rem;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    z-index: 5;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.modal-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.modal-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-category {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background-color: var(--bg-tertiary);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}


.modal-meta {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.modal-availability,
.modal-occasions,
.modal-care,
.modal-delivery {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-occasions i,
.modal-care i,
.modal-delivery i {
    color: var(--accent-color);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.modal-availability i {
    color: var(--accent-color);
}

.modal-availability {
    border-left: 3px solid var(--accent-color);
}

.modal-occasions {
    border-left: 3px solid var(--accent-color);
}

.modal-care {
    border-left: 3px solid var(--accent-color);
}

.modal-delivery {
    border-left: 3px solid var(--accent-color);
}

.description {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Product Detail Page Styles - Matching Modal Design */
.product-detail-body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'PT Sans', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.detail-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.detail-back:hover {
    color: var(--accent-color);
}

/* Ocultar texto en dispositivos pequeños y mostrar solo icono de casa */
@media (max-width: 767px) {
    .detail-back span {
        display: none;
    }

    .detail-back i {
        font-size: 1.2rem;
    }

    .detail-back::before {
        content: '\f015';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1.2rem;
    }

    .detail-back i.fa-arrow-left {
        display: none;
    }
}

.detail-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.detail-main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.detail-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--card-border);
}

.detail-card {
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.detail-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    width: 100%;
    min-height: 420px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    padding: 1.5rem;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.detail-category {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background-color: var(--bg-tertiary);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    align-self: flex-start;
}

.detail-info h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.detail-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.detail-highlight:nth-child(1) {
    border-left: 3px solid var(--accent-color);
}

.detail-highlight:nth-child(1) i {
    color: var(--accent-color);
}

.detail-highlight:nth-child(2) {
    border-left: 3px solid var(--accent-color);
}

.detail-highlight:nth-child(2) i {
    color: var(--accent-color);
}

.detail-highlight:nth-child(3) {
    border-left: 3px solid var(--accent-color);
}

.detail-highlight:nth-child(3) i {
    color: var(--accent-color);
}

.detail-highlight i {
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.detail-btn.whatsapp {
    background: var(--accent-color);
    color: #ffffff;
}

.detail-btn.whatsapp:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.detail-btn.copy-link {
    background: #f8f9fa;
    color: #333333;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.detail-btn.copy-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.detail-btn.copy-link i {
    transition: transform 0.3s ease;
}

.detail-btn.copy-link:hover i {
    transform: rotate(15deg) scale(1.1);
}

.detail-btn.home-btn {
    background: #2c3e50;
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.3);
}

.detail-btn.home-btn:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44, 62, 80, 0.4);
}

.detail-btn.home-btn i {
    transition: transform 0.3s ease;
}

.detail-btn.home-btn:hover i {
    transform: scale(1.1);
}

.detail-btn.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.detail-btn.home-btn i {
    transition: transform 0.3s ease;
}

.detail-btn.home-btn:hover i {
    transform: scale(1.1);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.modal-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
}

.modal-btn.whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
}

.modal-btn.whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.detail-loading {
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.detail-error {
    padding: 3rem;
    text-align: center;
}

.detail-error h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-error p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .detail-card {
        flex-direction: row;
    }

    .detail-media {
        flex: 1;
        min-height: 600px;
    }

    .detail-info {
        flex: 1;
        max-width: 500px;
    }

    .detail-actions {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .detail-main {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .detail-header-inner {
        padding: 0 1rem;
    }

    .detail-info {
        padding: 2rem 1.5rem;
    }
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 99;
}

.floating-button {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: width 0.35s ease, padding 0.35s ease, transform 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    padding: 0;
}

.floating-button i {
    flex-shrink: 0;
}

.floating-label {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-width 0.25s ease, margin-left 0.25s ease;
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
}

.floating-button:hover,
.floating-button:focus-visible {
    width: 220px;
    padding: 0 1.6rem;
    justify-content: flex-start;
    transform: translateY(-2px);
}

.floating-button:hover .floating-label,
.floating-button:focus-visible .floating-label {
    opacity: 1;
    transform: translateX(0);
    max-width: 185px;
    margin-left: 0.75rem;
}

.floating-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.call-button {
    background-color: var(--accent-color);
}

.whatsapp-button {
    background-color: #25D366;
}

.scroll-to-filters {
    position: fixed;
    right: 20px;
    bottom: calc(20px + 140px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 90;
}

.scroll-to-filters.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-filters.visible:hover {
    transform: translateY(-3px);
}

.scroll-to-filters i {
    font-size: 1rem;
}

.scroll-to-filters:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Footer - Nuevo diseño más genérico */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-logo h2 {
    font-size: 2rem;
    color: var(--footer-text);
}

.footer-logo p {
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--footer-text);
    font-size: 1.2rem;
    transition: transform 0.3s, background-color 0.3s;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.product-modal {
    display: none;
}

.product-modal.visible {
    display: flex;
}

/* Responsive */
@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        max-height: 80vh;
        min-height: 520px;
    }

    .modal-gallery {
        width: 50%;
        max-height: none;
        padding: 2rem;
    }

    .modal-info {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 520px;
    }

    .product-image {
        height: 300px;
    }
}

@media (max-width: 767px) {

    /* Menú hamburguesa para móvil */
    .menu-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .main-nav ul.active+.menu-toggle {
        display: none;
    }

    .menu-close {
        display: none;
        z-index: 1002;
    }

    .main-nav ul.active+.menu-toggle+.menu-close {
        display: block;
    }

    .main-nav ul {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: top 0.3s ease;
        z-index: 1000;
        box-shadow: 0 5px 15px var(--card-shadow);
        padding: 2rem 0;
        margin: 0;
        list-style: none;
    }

    .main-nav ul.active {
        top: 0;
    }

    .main-nav ul li {
        margin: 0;
        padding: 0;
    }

    .main-nav ul a {
        color: var(--text-primary);
        text-shadow: none;
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        text-align: center;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .main-nav ul a:hover {
        background-color: var(--bg-secondary);
    }

    /* Simplificar hero-content en móvil - sin animaciones complejas */
    .hero-content {
        position: static;
        transform: none;
        padding: 2rem 1rem;
        margin-top: 60px;
        /* Espacio para el header fijo */
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-content .btn {
        opacity: 1;
        transform: none;
        animation: none;
    }

    /* Desactivar animaciones slide-element en móvil */
    .slide-element {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .slide-element.animate {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Mostrar 2 productos por fila en móvil */
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        max-width: 100%;
    }

    .map-wrapper {
        height: 350px;
    }

    /* Ocultar el toggle de tema principal y mostrar el móvil */
    .theme-toggle {
        display: none;
    }

    .mobile-theme-toggle-container {
        display: flex;
    }

    .modal-gallery {
        aspect-ratio: 1;
        min-height: 320px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {

    /* Simplificar aún más en pantallas muy pequeñas */
    .hero-content {
        padding: 1.5rem 1rem;
        margin-top: 50px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        opacity: 1;
        transform: none;
        animation: none;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .detail-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .detail-actions {
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Mejorar diseño de productos en móvil muy pequeño */
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        padding: 0 0.1rem;
        max-width: 100%;
    }

    .product-card {
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .product-image {
        border-radius: 12px 12px 0 0;
        aspect-ratio: 1;
    }

    .product-info {
        padding: 0.5rem;
    }

    .product-title {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }

    .product-actions {
        padding: 0.5rem;
        margin-top: 0;
    }

    .product-actions {
        padding: 0.6rem;
        margin-top: 0;
    }

    .btn-whatsapp {
        display: none !important;
    }

    .btn-whatsapp {
        display: none !important;
    }

    .product-availability {
        display: none !important;
    }

    .product-description {
        display: none !important;
    }

    .product-meta {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .availability-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
        top: 8px;
        right: 8px;
    }

    .btn-details {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .floating-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .scroll-to-filters {
        bottom: calc(20px + 120px);
    }

    .mobile-theme-toggle {
        width: 50px;
        height: 26px;
    }

    .mobile-theme-toggle .toggle-ball {
        width: 18px;
        height: 18px;
    }

    .mobile-theme-toggle.active .toggle-ball {
        transform: translateX(24px);
    }

    .map-wrapper {
        height: 300px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Botones del modal en columna para móviles pequeños */
    .modal-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-actions .detail-btn {
        width: 100%;
    }
}