/* ============================================
   ESTILOS PRINCIPALES - MODIFICAR SEGÚN CLIENTE
   ============================================ */

/* RESET Y BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: var(--color-dark); }

/* VARIABLES (se sobreescriben desde header.php) */
:root {
    --color-primary: #e63946;
    --color-secondary: #1d3557;
    --color-accent: #f4a261;
    --color-light: #f1faee;
    --color-dark: #1d3557;
}

/* UTILIDADES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { 
    display: inline-block; 
    background: var(--color-primary); 
    color: white; 
    padding: 12px 30px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s; 
}
.btn:hover { background: var(--color-secondary); transform: translateY(-2px); }

/* NAVEGACIÓN */
.main-nav { 
    background: white; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
}
.main-nav .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
}
.nav-logo { 
    font-size: 24px; 
    font-weight: 700; 
    color: var(--color-primary); 
    text-decoration: none; 
}
.nav-links a { 
    margin-left: 20px; 
    text-decoration: none; 
    color: var(--color-dark); 
    font-weight: 500; 
}
.nav-links a:hover { color: var(--color-primary); }

/* HERO */
.hero { 
    background-size: cover; 
    background-position: center; 
    color: white; 
    text-align: center; 
    padding: 150px 20px 100px; 
    margin-top: 70px; 
}
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero .tagline { font-size: 20px; margin-bottom: 30px; }
.hero .logo { max-width: 150px; margin-bottom: 20px; }

/* SECCIONES */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--color-light); }
h2 { 
    text-align: center; 
    margin-bottom: 50px; 
    color: var(--color-secondary); 
    font-size: 36px; 
}

/* SERVICIOS */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.card { 
    background: white; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    text-align: center; 
}
.card h3 { 
    color: var(--color-primary); 
    margin-bottom: 15px; 
}

/* HORARIOS */
.hours-grid { 
    max-width: 500px; 
    margin: 0 auto; 
}
.hour-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 15px 0; 
    border-bottom: 1px solid #ddd; 
}

/* CONTACTO */
.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
    margin-top: 40px; 
}
.social-links a { 
    display: inline-block; 
    margin-right: 15px; 
    color: var(--color-primary); 
    text-decoration: none; 
    font-weight: 500; 
}

/* FOOTER */
.main-footer { 
    background: var(--color-dark); 
    color: white; 
    padding: 40px 0 20px; 
}
.footer-content { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    margin-bottom: 30px; 
}
.footer-bottom { 
    text-align: center; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
}

/* ============================================
   ANIMACIONES Y GALERÍA
   ============================================ */

/* ANIMACIONES BÁSICAS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* CLASES DE ANIMACIÓN */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

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

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* GALERÍA DE PRODUCTOS */
.galeria {
    background: linear-gradient(135deg, var(--color-light) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.galeria::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.galeria .container {
    position: relative;
    z-index: 1;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.producto-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

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

.producto-card:hover .producto-img img {
    transform: scale(1.1);
}

.producto-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.producto-precio {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--color-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.producto-info {
    padding: 25px;
}

.producto-info h3 {
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-size: 20px;
    transition: color 0.3s;
}

.producto-card:hover .producto-info h3 {
    color: var(--color-primary);
}

.producto-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* BOTÓN WHATSAPP FLOTANTE */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-link:hover {
    background: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    animation: none;
}

.whatsapp-link.pulse {
    animation: pulse 2s infinite;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.whatsapp-link span {
    white-space: nowrap;
}

/* ANIMACIONES PARA SECCIONES EXISTENTES */
.hero h1 {
    animation: slideUp 1s ease-out 0.3s both;
}

.hero .tagline {
    animation: slideUp 1s ease-out 0.6s both;
}

.hero .btn {
    animation: slideUp 1s ease-out 0.9s both;
}

.card {
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.hour-item {
    animation: slideInLeft 0.8s ease-out both;
    opacity: 0;
}

.hour-item:nth-child(1) { animation-delay: 0.1s; }
.hour-item:nth-child(2) { animation-delay: 0.2s; }
.hour-item:nth-child(3) { animation-delay: 0.3s; }
.hour-item:nth-child(4) { animation-delay: 0.4s; }

.contact-info p {
    animation: slideInRight 0.8s ease-out both;
    opacity: 0;
}

.contact-info p:nth-child(1) { animation-delay: 0.1s; }
.contact-info p:nth-child(2) { animation-delay: 0.2s; }
.contact-info p:nth-child(3) { animation-delay: 0.3s; }

/* ANIMACIÓN NAVEGACIÓN */
.nav-logo {
    position: relative;
    overflow: hidden;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transition: left 0.3s ease;
}

.nav-logo:hover::after {
    left: 0;
}

/* ANIMACIÓN BOTÓN PRINCIPAL */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* EFECTO PARALLAX EN HERO */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* RESPONSIVE PARA WHATSAPP */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .whatsapp-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-link span {
        display: none;
    }
    
    .whatsapp-link {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .whatsapp-icon {
        margin-right: 0;
        width: 28px;
        height: 28px;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero { padding: 120px 20px 80px; }
    section { padding: 60px 0; }
    .nav-links { display: none; } /* Para móviles, añadir menú hamburguesa en JS si quieres */
}