/* =========================================
   1. VARIABLES Y BASE
   ========================================= */
   :root {
    --brand-bg: #6F2F6D;   /* Morado base */
    --primary: #FF6B00;    /* Naranja acción */
    --text-main: #ffffff;  /* Texto blanco */
    --text-muted: #e0e0e0; /* Texto secundario */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Open Sans', sans-serif; 
    color: var(--text-main); 
    line-height: 1.6; 
    background-color: var(--brand-bg);
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; text-transform: uppercase; }
a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; } /* Regla de oro para imágenes responsive */

/* =========================================
   2. COMPONENTES (Botones, Forms, Iconos)
   ========================================= */
/* Buttons */
.btn { 
    background: var(--primary); 
    color: white; 
    padding: 12px 25px; 
    border-radius: 50px; 
    font-weight: 700; 
    transition: 0.3s; 
    display: inline-block; 
    border: 2px solid var(--primary);
    cursor: pointer;
}
.btn:hover { 
    background: #e65100; 
    transform: translateY(-2px); 
    border-color: #e65100; 
    color: white; 
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 10px;
    color: white;
}
.btn-outline:hover { background: white; color: var(--brand-bg); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* Forms */
form { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    background: rgba(0,0,0,0.2); 
    padding: 2rem; 
    border-radius: 10px; 
}

input, textarea { 
    width: 100%; 
    padding: 15px; 
    border: none; 
    border-radius: 5px; 
    font-family: inherit; 
    background: #ffffff; 
    color: #333;
}
input:focus, textarea:focus { outline: 2px solid var(--primary); }

.submit-btn { 
    background: var(--primary); 
    color: white; 
    padding: 15px; 
    border: none; 
    border-radius: 5px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 1rem; 
    text-transform: uppercase; 
    transition: 0.3s; 
}
.submit-btn:hover { background: #ff8533; }

/* =========================================
   3. HEADER & NAV
   ========================================= */
header {
    background: var(--brand-bg);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-link { display: flex; align-items: center; }
.logo-img { 
    max-height: 50px; 
    width: auto; 
    transition: 0.3s; 
}
.logo-img:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: 0.3s; 
    color: var(--text-main);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* =========================================
   4. SECCIONES PRINCIPALES (Hero, Features, Contact)
   ========================================= */
/* Hero */
.hero {
    position: relative;
    background: url('../img/background.jpg') center/cover no-repeat;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(111, 47, 109, 0.75); mix-blend-mode: multiply; } 
.hero-content { position: relative; z-index: 1; padding: 0 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-btns { margin-top: 2rem; }

/* Features */
.features { padding: 5rem 5%; background: var(--brand-bg); text-align: center; }
.features h2 { margin-bottom: 3rem; font-size: 2rem; color: var(--text-main); }
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.feature-card { 
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s; 
}
.feature-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }
.icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); }

/* Contact */
.contact { 
    padding: 5rem 5%; 
    background: #5a2559; 
    color: white; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center; 
}
.contact h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.info-item { margin-bottom: 1.5rem; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }

/* =========================================
   5. MÓDULOS: BLOG & COCINAS
   ========================================= */
/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding: 4rem 5%; }
.blog-card { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 12px; 
    overflow: hidden; 
    transition: 0.3s; 
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--primary); background: rgba(255,255,255,0.1); }
.blog-img { width: 100%; height: 200px; object-fit: cover; background: #444; }
.blog-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.8rem; color: var(--primary); margin-bottom: 0.5rem; font-weight: bold; }
.blog-title { font-size: 1.3rem; margin-bottom: 1rem; color: white; }
.blog-excerpt { font-size: 0.95rem; color: #ddd; margin-bottom: 1.5rem; flex-grow: 1; }

/* Cocinas (Layout General) */
.kitchen-item { 
    background: rgba(0,0,0,0.2); 
    margin-bottom: 4rem; 
    border-radius: 15px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.1);
}
.kitchen-header { padding: 2rem; background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,255,255,0.05);  }
.kitchen-title { color: var(--primary); font-size: 1.8rem; margin: 0; 
    margin-bottom: 0.5rem !important; /* Reduce el espacio debajo del título */
    line-height: 1.1; /* Aprieta un poco las líneas si el título es largo */
 }
.kitchen-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; }
.kitchen-visuals { display: flex; flex-direction: column; gap: 1rem; }
.kitchen-img-main { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; background: #555; }
.kitchen-blueprint { width: 100%; height: 200px; object-fit: contain; border: 1px dashed rgba(255,255,255,0.3); padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.kitchen-details h4 { color: white; margin-bottom: 1rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
.machinery-list { list-style: none; padding: 0; margin-bottom: 2rem; }
.machinery-list li { margin-bottom: 0.5rem; padding-left: 20px; position: relative; color: #ddd; }
.machinery-list li::before { content: "✔"; color: var(--primary); position: absolute; left: 0; }
.kitchen-actions { display: flex; flex-direction: column; gap: 15px; width: 100%; margin-top: 20px; }
.kitchen-actions .btn { width: 100%; text-align: center; margin: 0; display: block; box-sizing: border-box; }

/* Cocinas (Carrusel Interno) */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px; /* Altura fija */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin-bottom: 1rem;
}
.carousel-track { height: 100%; width: 100%; }
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: none; 
}
.carousel-img.active { display: block; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: 0.3s;
    user-select: none;
}
.carousel-btn:hover { background-color: var(--primary); }
.prev { left: 10px; }
.next { right: 10px; }

/* =========================================
   6. SOCIAL PROOF (MARQUEE INFINITO)
   ========================================= */
.social-proof { 
    padding: 3rem 0; 
    text-align: center; 
    background: var(--brand-bg); 
    border-top: 1px solid rgba(255,255,255,0.05); 
    overflow: hidden;
}
.social-proof h3 { margin-bottom: 2rem; color: var(--text-main); }

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
}
.slider-container::before, .slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.slider-container::before { left: 0; background: linear-gradient(to right, var(--brand-bg), transparent); }
.slider-container::after { right: 0; background: linear-gradient(to left, var(--brand-bg), transparent); }

.slider-track {
    display: flex;
    width: max-content; 
    gap: 4rem; 
    animation: scroll-left 40s linear infinite;
}
.slider-container:hover .slider-track { animation-play-state: paused; }

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.client-logo {
    height: 80px; 
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}
.client-logo:hover { opacity: 1; }

/* (Opcional) Soporte legacy para logos-container si se usa en otra página */
.logos-container { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; opacity: 0.7; margin-top: 1.5rem; }

/* =========================================
   7. FOOTER AVANZADO
   ========================================= */
footer {
    background: #1a0b1a; 
    color: #cccccc;
    padding-top: 4rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}
.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { transition: 0.3s; color: #b0b0b0; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-partners {
    margin-top: 4rem;
    padding: 2rem 5%;
    background: rgba(255,255,255,0.02);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.partners-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; opacity: 0.6; }
.partners-logos { display: flex; justify-content: center; gap: 30px; align-items: center; flex-wrap: wrap; }
.partner-logo {
    height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(200%); 
    opacity: 0.5;
    transition: 0.3s;
}
.partner-logo:hover { filter: none; opacity: 1; }

.footer-bottom {
    text-align: center;
    padding: 2rem;
    background: #110511;
    margin-top: 0;
    font-size: 0.8rem;
    color: #666;
}

/* =========================================
   8. UTILIDADES & OVERLAYS (WhatsApp, Lightbox)
   ========================================= */
/* WhatsApp */
.float-wa { 
    position: fixed; bottom: 25px; right: 25px; 
    background: #25D366; width: 60px; height: 60px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: 0.3s; z-index: 999; 
}
.float-wa:hover { transform: scale(1.1); }

/* Lightbox */
.hover-zoom { transition: 0.3s; }
.hover-zoom:hover { transform: scale(1.03); opacity: 0.8; }

.lightbox {
    display: none; 
    position: fixed; z-index: 9999;
    padding-top: 50px; left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto; display: block;
    width: 80%; max-width: 900px;
    border-radius: 5px; animation: zoom 0.6s;
}
.close-lightbox {
    position: absolute; top: 15px; right: 35px;
    color: #f1f1f1; font-size: 40px; font-weight: bold;
    cursor: pointer; transition: 0.3s;
}
.close-lightbox:hover { color: var(--primary); }

@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

/* =========================================
   9. MOBILE OPTIMIZATION (Media Queries)
   ========================================= */
@media (max-width: 768px) {
    /* Header */
    header { flex-direction: column; padding: 15px; }
    .logo-img { margin-bottom: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; width: 100%; margin-bottom: 15px; }
    .nav-links a { font-size: 0.85rem; }
    .hide-mobile { display: none; }
    
    /* Hero & Buttons */
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
    
    /* Layouts */
    .contact { grid-template-columns: 1fr; text-align: center; }
    .info-item { justify-content: center; }
    .kitchen-body { grid-template-columns: 1fr; }
    
    /* Social Proof */
    .client-logo { height: 80px; }
    .slider-track { gap: 2rem; animation-duration: 20s; }
}

/* --- CORRECCIONES COCINAS (Punto 5 y 6) --- */
.kitchen-header p {
    margin-top: 0 !important; /* Elimina el espacio arriba del texto */
    opacity: 0.9; /* Opcional: hace el texto un poco más suave */
}

/* Lista mejorada (Punto 6) */
.machinery-list li {
    padding-left: 0;
    display: flex;       /* Usar Flexbox para alinear */
    align-items: flex-start; /* Alinear icono arriba si el texto es largo */
    gap: 10px;           /* Espacio entre check y texto */
    margin-bottom: 0.8rem;
}
.machinery-list li::before {
    content: "✔"; 
    color: var(--primary); 
    position: relative; /* Ya no absolute */
    left: auto;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4rem; /* Ajuste fino vertical */
}

/* --- CARRUSEL HUMANO (Index - Punto 1) --- */
.human-carousel {
    position: relative;
    width: 100%;
    height: 60vh; /* Altura grande */
    overflow: hidden;
    background: #000;
}
.human-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.human-slide.active { opacity: 1; }
.human-overlay {
    background: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
    padding: 2rem;
    text-align: center;
    color: white;
    border-radius: 10px;
    max-width: 80%;
    backdrop-filter: blur(2px);
}
.human-overlay h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.human-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); color: white; border: none;
    font-size: 2rem; padding: 10px 20px; cursor: pointer; z-index: 10;
}
.human-btn:hover { background: var(--primary); }
.human-btn.prev { left: 20px; }
.human-btn.next { right: 20px; }

/* --- CONTACTO CLICKABLE (Punto 3) --- */
.info-item.clickable {
    text-decoration: none;
    display: flex; 
    transition: 0.3s;
    cursor: pointer;
}
.info-item.clickable:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* --- CTA COCINA CUSTOM (Punto 7) --- */
.custom-kitchen-cta {
    background: linear-gradient(135deg, var(--brand-bg) 0%, #4a1f49 100%);
    padding: 4rem 5%;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cta-content h2 { color: white; margin-bottom: 1rem; }
.btn-light {
    background: var(--primary);
    color: white;
    border: var(--primary);
    margin-top: 1.5rem;
}
.btn-light:hover {
    background: #ff8533;
    border-color: var(--primary);
    color: white;
}

/* --- SECCIÓN FAQ (ESTILO DARK) --- */
.faq-section {
    padding: 5rem 5%;
    /* Eliminamos el fondo gris para que se vea tu fondo morado del body */
    background: transparent; 
    color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    color: white; /* Título blanco */
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.faq-subtitle {
    text-align: center;
    color: var(--text-muted); /* Gris claro */
    margin-bottom: 3rem;
}

.faq-item {
    /* Fondo semitransparente oscuro (Efecto Glass) */
    background: rgba(0, 0, 0, 0.2); 
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1); /* Borde sutil */
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.2);
}

/* Cuando se abre la pregunta */
.faq-item[open] {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary); /* Borde naranja al abrir */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: white; /* Texto blanco */
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* El icono (+) */
summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary); /* Naranja */
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* Rotar icono al abrir */
details[open] summary::after {
    transform: rotate(45deg);
    color: white; /* Cambia a blanco al girar */
}

summary::-webkit-details-marker { display: none; }

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.6;
    color: #ddd; /* Texto respuesta gris muy claro */
    animation: fadeIn 0.5s ease;
    border-top: 1px solid rgba(255,255,255,0.05); /* Separador sutil */
}

.faq-content ol, .faq-content ul {
    margin-left: 20px;
    margin-top: 10px;
    color: #ccc;
}

.faq-content li {
    margin-bottom: 8px;
}

/* Animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}