:root {
    --primary-color: #1a1a1a;
    --accent-color: #563231; /* Naranja elegante */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #fcfcfc;
    --white: #FFFFFF;
	--socarraet: #2a85aa;
	--lola: #a01915;
	--koji: #000000;
	--teresas: #e9d5b8;
	--shukran: #e9b48b;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

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

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* NAVEGACIÓN */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    z-index: 1000;
}

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

.logo, .logo-footer {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px; /* Ajusta este valor según el alto de tu logo rectangular */
    width: auto;  /* Mantiene la proporción */
    display: block;
}

.logo-footer img {
    height: 50px; /* Un poco más pequeño para el footer */
    width: auto;
}

/*.logo span { color: var(--accent-color); }*/

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--accent-color); font-weight: 1000; }

.btn-contacto {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 30px;
}

.btn-contacto:hover {
    background: var(--primary-color);
}

.btn-contacto-web {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 30px;
}

.btn-contacto-web:hover {
    background: var(--primary-color);
}

/* BURGER MENU */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* SECCIÓN 1: HERO SLIDER */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: flex-start; /* Alineado a la izquierda */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    text-align: left; /* Eliminado el justificado/derecha */
    color: var(--white);
    padding-left: 10%;
    max-width: 600px;
    animation: fadeUp 1s ease forwards;
}

.slide-content h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.slide-content p {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

.mobile-only {
    display: none; /* Ocultamos el link de la lista en PC */
}

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

/* SECCIÓN 2: PRODUCTOS (CARRUSEL MEJORADO) */
.productos {
    padding: 100px 0;
    background: var(--accent-color);
	background-image:url("img/back/back-01.png");
	background-size: contain;	
}

.productos h2{
	color: var(--white);
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 20px; /* Espacio exacto entre tarjetas */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    -ms-overflow-style: none;  
    scrollbar-width: none;
	width: 100%;
}

.carousel-track::-webkit-scrollbar { display: none; }

.product-card {
    /* En PC: 3 tarjetas visibles. 100% / 3 - el margen proporcional */
    flex: 0 0 calc(33.333% - 13.33px);
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
    text-align: center; /* Alineación limpia */
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0px;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.carousel-btn {
    background: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: absolute;
    z-index: 10;
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.prev { left: -20px; }
.next { right: -20px; }

/* SECCIÓN 3: EXPLICACIÓN */
.explicacion {
    padding: 120px 0;
}

.explicacion h2{
	color: var(--accent-color);
	margin-bottom: 20px;
}

.text-center { text-align: center;}

.lead-text {
	max-width: 700px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--accent-color);
	text-align: center;
	margin: 0 auto 60px;
}

.text-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-light);
    text-align: left; /* Texto alineado a la izquierda para mejor lectura */
}

.text-content p { margin-bottom: 25px; }

/* SECCIÓN 4: IMAGEN COMPLETA */
.imagen-completa {
    height: 70vh;
    background-image: url('img/hero/platos2.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.parallax-overlay {
    background: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* SECCIÓN 5: CONTACTO (DISEÑO 2026) */
.contacto {
    padding: 120px 0;
    background: var(--bg-light);
}

.contact-modern-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dividido en 2 columnas */
    gap: 60px;
    background: var(--white);
    border-radius: 20px;
    padding: 60px;
	padding-bottom: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.20);
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 40px;
}

.info-item {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group { margin-bottom: 25px; }

/* Campos minimalistas tipo Material Design */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #eaeaea;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.btn-submit {
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start; /* Botón no ocupa todo el ancho, es más elegante */
    transition: var(--transition);
    margin-top: 10px;
}

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

/* --- FOOTER REDISEÑADO --- */
.site-footer {
    background: var(--accent-color); /* Un negro más profundo y premium */
    color: #ffffff;
    padding: 80px 0 0 0; /* Sin padding abajo para que el footer-bottom pegue */
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* El logo ocupa más espacio en web */
    gap: 40px;
    padding-bottom: 60px;
}

.brand-info p {
    color: var(--white);
    margin: 20px 0;
    max-width: 300px;
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 700;
}

.footer-col p{
	color: var(--white);
}
.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--white);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-map {
    width: 100%;
    height: 80%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden; /* Para que el iframe respete el border-radius */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-map iframe {
    filter: grayscale(0.2) contrast(1.1); /* Toque elegante para que no desentone con el diseño */
    transition: var(--transition);
}

.contact-map iframe:hover {
    filter: grayscale(0);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* FOOTER BOTTOM (Legal) */
.footer-bottom {
    background: #000000;
    padding: 30px 0;
    border-top: 1px solid #1a1a1a;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #555;
    font-size: 0.75rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #555;
    font-size: 0.75rem;
    transition: var(--transition);
}

.legal-links a:hover {
    color: #999;
}

/* --- CAPA 1: BANNER INFERIOR --- */
.cookie-overlay {
    position: fixed;
    bottom: -150%;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 2000;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 1100px;
    margin: 0 auto 20px auto;
}

.cookie-overlay.show { bottom: 0; }

.cookie-content h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-color); }
.cookie-content p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.5; }

/* Estilos de botones AEPD (Misma prominencia para Aceptar y Rechazar) */
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cookie-btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-tertiary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-tertiary:hover { background: rgba(0,0,0,0.05); }

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    text-decoration: underline;
    padding: 12px 10px;
}
.btn-secondary:hover { color: var(--primary-color); }

/* --- CAPA 2: MODAL DETALLADO --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 550px;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-header, .modal-footer { 
    padding: 20px 25px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.modal-footer { border-top: 1px solid #eee; border-bottom: none; justify-content: flex-end; }

#close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body { padding: 0 25px; max-height: 50vh; overflow-y: auto; }

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f9f9f9;
}
.cookie-option:last-child { border-bottom: none; }

.option-info { flex: 1; padding-right: 20px; }
.option-info strong { display: block; font-size: 0.95rem; color: var(--primary-color); }
.option-info p { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; line-height: 1.4; }

.badge-required { font-size: 0.7rem; background: #eaeaea; padding: 4px 8px; border-radius: 4px; color: #666; font-weight: 600; }

/* ESTILO SWITCH */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-round {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 24px;
}
.slider-round:before {
    position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider-round { background-color: var(--accent-color); }
input:checked + .slider-round:before { transform: translateX(20px); }


/* --- ESTILOS PARA PÁGINAS LEGALES --- */
.legal-page {
    padding-top: 120px; /* Espacio para el menú fijo */
    padding-bottom: 60px;
    max-width: 800px; /* Más estrecho para facilitar la lectura */
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.legal-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.7;
}

.legal-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.legal-content a:hover {
    text-decoration: none;
}

.legal-page {
    flex: 1; /* Esto empuja al footer hacia abajo */
}

/* Ajuste de espaciado para que respire el texto legal */
.legal-content {
    margin-bottom: 80px;
}

/* --- MEDIA QUERIES (RESPONSIVE MEJORADO) --- */
@media (max-width: 992px) {
    .slide-content { padding-left: 5%; max-width: 80%; }
    .slide-content h2 { font-size: 3rem; }
    .contact-modern-wrapper { padding: 40px; gap: 40px; }
}

@media (max-width: 768px) {
    /* Burger Menu UX: FULL SCREEN OVERLAY */
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	.btn-contacto-web {
        display: none !important;
    }
	
	.mobile-only {
        display: block;
        margin-top: 20px; /* Separación visual de los otros links */
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh; /* Ocupa toda la pantalla */
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .nav-links.active { left: 0; }
    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.5rem; }

    .btn-contacto { font-size: 1.2rem; margin-top: 20px; }

    /* Hero Text Mobile */
    .slide-content {
        padding: 0 20px;
        text-align: center;
        margin: 0 auto;
    }
    .slide { justify-content: center; }
    .slide-content h2 { font-size: 2.5rem; }

    /* Fix Carrusel Móvil */
    .product-card {
        flex: 0 0 85%; /* Muestra el 100% de uno y un pedazo del siguiente */
    }
    .carousel-btn { display: none; } /* En móvil se usa el dedo (swipe) */

    /* Quita parallax en móvil (mejor rendimiento y UX) */
    .imagen-completa { background-attachment: scroll; height: 40vh; }
	
	.parallax-overlay h2 {
    font-size: 2.5rem;
    text-align: center;
	line-height: 1.2;
	margin: 27px;
    }
    
    /* Contacto apilado */
    .contact-modern-wrapper {
        grid-template-columns: 1fr; /* Pasa a 1 columna */
        padding: 30px 20px 0px;
    }

    .btn-submit { width: 100%; }

    /* Footer Móvil arreglado */
.site-footer {
        padding: 60px 0 0 0;
        text-align: center; /* Centrado para mejor estética móvil */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Una sola columna fluida */
        gap: 50px;
    }

    .brand-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .brand-info p {
        font-size: 0.85rem; /* Texto un poco más pequeño en móvil */
    }

    .footer-col h4 {
        margin-bottom: 15px; /* Menos espacio para no alargar el scroll */
    }

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

    .footer-bottom-flex {
        flex-direction: column; /* Apilamos legal y copyright */
        gap: 15px;
    }

    .legal-links {
        justify-content: center;
        gap: 15px;
    }
	
    .cookie-actions { flex-direction: column; width: 100%; }
    .cookie-btn { width: 100%; }
    .cookie-option { flex-direction: column; align-items: flex-start; gap: 15px; }
    .option-info { padding-right: 0; }
	
}