/* css/styles.css - ARCHIVO CONSOLIDADO Y SIN CONFLICTOS + CARRUSEL */
/* Tipografía Nunito + Precio "Desde $" + Responsive Limpio + CARRUSEL DE IMÁGENES */

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* COLORES PRINCIPALES */
    --rosado-marite: #fd8ca7;
    --verde-marite: #03bfba;
    --blanco: #ffffff;
    --negro: #333333;
    --gris-claro: #f8f9fa;
    --gris: #6c757d;
    --gris-oscuro: #495057;
    --sombra: rgba(0, 0, 0, 0.1);
    --sombra-fuerte: rgba(0, 0, 0, 0.2);
    --error: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Bordes */
    --border-radius: 10px;
    --border-radius-large: 20px;
    --border-radius-small: 5px;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* Tipografía Base - NUNITO */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--negro);
    overflow-x: hidden;
    background: var(--blanco);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

a {
    color: var(--rosado-marite);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--verde-marite);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--rosado-marite) 70%, var(--verde-marite) 30%);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--sombra);
    transition: all var(--transition-normal);
}

.header.scrolled {
    padding: var(--spacing-xs) 0;
    backdrop-filter: blur(10px);
    background: rgba(253, 140, 167, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
}

.logo {
    height: 60px;
    transition: transform var(--transition-normal);
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-item a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all var(--transition-normal);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 25px;
}

.nav-item a:hover,
.nav-item a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-item a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--blanco);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-item a:hover::before,
.nav-item a.active::before {
    width: 80%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-small);
    transition: background var(--transition-normal);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    height: 65vh;
    background: linear-gradient(135deg, var(--rosado-marite) 70%, var(--verde-marite) 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float-particles 20s infinite linear;
}

@keyframes float-particles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.hero-content {
    text-align: center;
    color: var(--blanco);
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 var(--spacing-lg);
}

.hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    line-height: 1.8;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 4rem 0;
    position: relative;
}

.section-alt {
    background: var(--gris-claro);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-title {
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--rosado-marite);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, var(--rosado-marite) 80%, var(--verde-marite) 20%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gris-oscuro);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Buttons */
.cta-button {
    background: var(--blanco);
    color: var(--rosado-marite);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: var(--gris-claro);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--blanco);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px var(--sombra);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--rosado-marite) 80%, var(--verde-marite) 20%);
    transition: all var(--transition-slow);
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--rosado-marite);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    color: var(--verde-marite);
    transform: scale(1.1) rotate(10deg);
}

.service-card h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--gris-oscuro);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
}

.feature-tag {
    background: linear-gradient(135deg, var(--rosado-marite) 70%, var(--verde-marite) 30%);
    color: var(--blanco);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

/* Why Choose Us Section */
.why-choose-us {
    margin-top: var(--spacing-xl);
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.reason-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--blanco);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--sombra);
    transition: transform var(--transition-normal);
}

.reason-item:hover {
    transform: translateY(-5px);
}

.reason-icon {
    font-size: 2.5rem;
    color: var(--rosado-marite);
    margin-bottom: var(--spacing-sm);
}

.reason-item h4 {
    color: var(--negro);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 700;
}

.reason-item p {
    color: var(--gris-oscuro);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Categories Display */
.categories-container {
    display: none;
    margin-top: var(--spacing-xl);
}

.categories-container.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.category-item {
    background: var(--blanco);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-item:hover {
    border-color: var(--rosado-marite);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--sombra-fuerte);
}

.category-item.selected {
    border-color: var(--verde-marite);
    background: linear-gradient(135deg, var(--rosado-marite) 70%, var(--verde-marite) 30%);
    color: var(--blanco);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.category-item:hover .category-icon {
    transform: scale(1.2);
}

.category-item h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.category-item p {
    color: var(--gris-oscuro);
    font-size: 0.95rem;
    font-weight: 500;
}

.category-item.selected p {
    color: rgba(255, 255, 255, 0.9);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--rosado-marite) 70%, var(--verde-marite) 30%);
    color: var(--blanco);
    padding: var(--spacing-sm);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

.category-item:hover .category-overlay {
    transform: translateY(0);
}

/* Products Display */
.products-container {
    display: none;
    margin-top: var(--spacing-xl);
}

.products-container.active {
    display: block;
    animation: slideInUp 0.5s ease-out;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.product-card {
    background: var(--blanco);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===============================
   CARRUSEL DE IMÁGENES - INTEGRADO
   =============================== */

.image-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rosado-marite) 70%, var(--verde-marite) 30%);
    color: var(--blanco);
    font-size: 3rem;
    font-weight: 700;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-slide.placeholder {
    font-size: 2rem;
    text-align: center;
    padding: 2rem;
}

/* Controles del carrusel */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(253, 140, 167, 0.9);
    color: var(--blanco);
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1rem;
    transition: all var(--transition-normal);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.image-carousel:hover .carousel-controls {
    opacity: 1;
}

.carousel-controls:hover {
    background: var(--rosado-marite);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(253, 140, 167, 0.4);
}

.carousel-controls:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-controls:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

/* Indicadores (dots) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gris);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-dot.active {
    background: var(--rosado-marite);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--verde-marite);
    transform: scale(1.1);
}

/* Contador de imágenes */
.carousel-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--blanco);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

/* Imagen estática para productos sin carrusel */
.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--rosado-marite) 70%, var(--verde-marite) 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-info {
    padding: var(--spacing-lg);
}

.product-info h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: var(--spacing-sm);
}

.product-info p {
    color: var(--gris-oscuro);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-weight: 400;
}

/* PRECIO "DESDE $XX.XXX" - ESPECÍFICO PARA PRODUCTOS */
.product-card .product-price {
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    color: var(--rosado-marite);
    font-size: 1.4rem;
    margin: var(--spacing-md) 0;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.product-card .price-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card:hover .product-price {
    color: var(--verde-marite);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.product-card:hover .price-label {
    color: var(--rosado-marite);
}

.product-features {
    margin: var(--spacing-md) 0;
}

.product-features strong {
    color: var(--negro);
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

.product-features ul {
    margin-top: var(--spacing-xs);
    padding-left: 1.2rem;
}

.product-features li {
    color: var(--gris-oscuro);
    margin-bottom: 0.3rem;
    line-height: 1.5;
    font-weight: 400;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    color: var(--blanco);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    color: var(--blanco);
}

/* About Section Styles */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.intro-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gris-oscuro);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.about-card {
    background: var(--blanco);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px var(--sombra);
    text-align: center;
    transition: transform var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-8px);
}

.about-icon {
    font-size: 3rem;
    color: var(--rosado-marite);
    margin-bottom: var(--spacing-md);
}

.about-card h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: var(--spacing-sm);
}

.values-section {
    background: var(--gris-claro);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    margin: var(--spacing-xl) 0;
}

.values-title {
    font-family: 'Nunito', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--rosado-marite);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.value-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--blanco);
    border-radius: var(--border-radius);
    transition: transform var(--transition-normal);
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--rosado-marite);
}

.value-item:nth-child(even) i {
    color: var(--verde-marite);
}

.value-item h4 {
    color: var(--negro);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

.value-item p {
    color: var(--gris-oscuro);
    font-size: 0.9rem;
    font-weight: 400;
}

.team-section {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.team-section h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rosado-marite);
    margin-bottom: var(--spacing-md);
}

.contact-cta {
    background: linear-gradient(135deg, var(--rosado-marite) 70%, var(--verde-marite) 30%);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    color: var(--blanco);
    margin-top: var(--spacing-xl);
}

.contact-cta h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

/* Loading Animations */
.loading {
    display: none;
    text-align: center;
    padding: var(--spacing-xl);
}

.loading.show {
    display: block;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
}

.loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--rosado-marite);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) {
    left: 8px;
    animation: loading-dots1 0.6s infinite;
}

.loading-dots div:nth-child(2) {
    left: 8px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(3) {
    left: 32px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(4) {
    left: 56px;
    animation: loading-dots3 0.6s infinite;
}

@keyframes loading-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading-dots2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--rosado-marite) 40%, var(--negro) 60%);
    color: var(--blanco);
    padding: var(--spacing-xl) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rosado-marite);
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 400;
}

.contact-info i {
    color: var(--rosado-marite);
    width: 20px;
}

.contact-info a {
    color: var(--blanco);
    transition: color var(--transition-normal);
}

.contact-info a:hover {
    color: var(--rosado-marite);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--blanco);
    transition: color var(--transition-normal);
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--rosado-marite);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--blanco);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-button:hover::before {
    transform: scale(1);
}

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

.social-button.facebook {
    background: #1877F2;
}

.social-button.instagram {
    background: linear-gradient(45deg, #E4405F, #5851DB, #833AB4);
}

.social-button.twitter {
    background: #1DA1F2;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: var(--spacing-md);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom .footer-links {
    display: flex;
    gap: var(--spacing-md);
}

/* Newsletter */
.newsletter {
    margin-top: var(--spacing-md);
}

.newsletter h4 {
    color: var(--rosado-marite);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.newsletter p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
    font-weight: 400;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanco);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background: var(--rosado-marite);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-small);
    color: var(--blanco);
    cursor: pointer;
    transition: background var(--transition-normal);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: var(--verde-marite);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float {
    background: #25D366;
    color: var(--blanco);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: var(--blanco);
}

.whatsapp-float span {
    font-size: 0.9rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: var(--blanco);
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--error);
}

.notification.warning {
    background: var(--warning);
    color: var(--negro);
}

.notification.info {
    background: var(--info);
}

/* Decorative Divider */
.decorative-divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.decorative-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rosado-marite), transparent);
}

.decorative-divider span {
    background: var(--blanco);
    padding: 0 var(--spacing-lg);
    color: var(--rosado-marite);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
}

.section-alt .decorative-divider span {
    background: var(--gris-claro);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   UPLOAD DE IMÁGENES (ADMIN)
   =============================== */

.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    margin-bottom: 1rem;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    padding: 2rem;
    background: var(--gris-claro);
    border: 2px dashed var(--gris);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.file-upload:hover .file-upload-label {
    background: #e9ecef;
    border-color: var(--rosado-marite);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--rosado-marite);
    margin-bottom: 1rem;
    display: block;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--sombra);
    background: var(--gris-claro);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: var(--blanco);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE DESIGN LIMPIO ===== */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

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

    .services-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .carousel-container {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--rosado-marite);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 5px 15px var(--sombra);
        gap: var(--spacing-sm);
    }

    .nav-menu.mobile-open {
        display: flex;
    }

    .nav-item a {
        padding: var(--spacing-sm);
        border-radius: var(--border-radius);
        width: 100%;
        text-align: center;
    }

    .hero {
        height: 55vh;
        padding: var(--spacing-xl) 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .services-grid,
    .category-grid,
    .products-grid,
    .about-grid,
    .reason-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* CARRUSEL RESPONSIVE */
    .carousel-container {
        height: 200px;
    }

    .carousel-controls {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .carousel-prev {
        left: 8px;
    }

    .carousel-next {
        right: 8px;
    }

    .carousel-counter {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    /* PRECIO RESPONSIVE ESPECÍFICO PARA PRODUCTOS */
    .product-card .product-price {
        font-size: 1.2rem;
        justify-content: center;
        text-align: center;
    }
    
    .product-card .price-label {
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .footer-bottom .footer-links {
        justify-content: center;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }

    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }

    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .image-preview-item {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

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

    .service-card,
    .about-card,
    .category-item {
        padding: var(--spacing-md);
    }

    .cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }

    .product-card {
        margin-bottom: var(--spacing-lg);
    }

    .carousel-container {
        height: 180px;
    }

    .carousel-slide {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .carousel-controls {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .product-info {
        padding: var(--spacing-md);
    }

    /* PRECIO MÓVIL PEQUEÑO ESPECÍFICO PARA PRODUCTOS */
    .product-card .product-price {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
    }
    
    .product-card .price-label {
        font-size: 0.75rem;
    }

    .footer-section h3 {
        font-size: 1.5rem;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle {
        animation: none;
    }

    .hero::before {
        animation: none;
    }

    .carousel-track {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --rosado-marite: #cc1166;
        --verde-marite: #006666;
        --sombra: rgba(0, 0, 0, 0.5);
    }

    .service-card,
    .about-card,
    .category-item,
    .product-card {
        border: 2px solid var(--negro);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gris-claro);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--rosado-marite) 70%, var(--verde-marite) 30%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rosado-marite);
}

/* Selection Styles */
::selection {
    background: var(--rosado-marite);
    color: var(--blanco);
}

::-moz-selection {
    background: var(--rosado-marite);
    color: var(--blanco);
}