* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* HEADER */
.main-header {
    width: 100%;
    height: 138px;
    background-image: url('../images/header/header-prueba.jpg');
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center; /* CENTRADO VERTICAL REAL */
}

html, body {
    width: 100%;
    overflow-x: hidden;
}


@media (max-width: 768px) {
    .main-header {
        height: 200px;
        background-image: url('../images/header/responsive-header.jpg');

        display: flex;
        align-items: center;
    }

}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
}


.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 250px; /* SOLO DESKTOP */
    color: #000;
}



.menu {
    list-style: none;
    display: flex;
    gap: 50px;
}

.menu a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.menu {
        margin-left: 180px;
        margin-right: 50px; /* ajuste fino */
    }

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px; /* separación limpia entre iconos */
}

.social-icons a {
    color: #000;
    text-decoration: none;
    font-size: 30px; /* iconos más grandes */
    transition: transform 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons {
    margin-left: 450px;
}


/* SLIDER */
.slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    line-height: 0; /* ELIMINA ESPACIO FANTASMA */
}


.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}


/* Flechas */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* MENÚ MÓVIL */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    /* 🔥 FONDO CON IMAGEN */
    background-image: url("../images/header/fondo-hamburguesa.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #fff;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    font-weight: 600;
}

.mobile-social {
    margin-top: 40px;
}

.mobile-social a {
    color: #fff;
    font-size: 22px;
    margin: 0 15px;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .desktop-menu,
    .desktop-social {
        display: none;
    }

    .hamburger {
        display: block;
        color: #000;
    }
}

/* =======================
   BANNER PRODUCTOS
======================= */

.banner-productos {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.banner-bg img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay de productos */
.productos-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    gap: 60px;
    align-items: center;
}

/* Productos */
.producto {
    width: 220px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover solo desktop */
@media (min-width: 769px) {

    .producto:hover {
        transform: scale(1.1);
        z-index: 2;
    }

    .producto-1:hover {
        transform: translateY(-10px) scale(1.12);
    }

    .producto-2:hover {
        transform: translateY(10px) scale(1.12);
    }

}


/* RESPONSIVE */
@media (max-width: 768px) {
    .productos-overlay {
        flex-direction: row;
        gap: 20px;
    }

    .producto {
        width: 140px;
    }
}

@media (min-width: 769px) {
    .producto {
        width: 350px; /* AJUSTA AQUÍ A TU GUSTO */
        top: 200px;
    }
}

.site-footer {
    width: 100%;
    min-height: 300px;
    background-image: url('../images/footer/footer-fondo.jpg');
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    text-align: center;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-logo {
    width: 80px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .site-footer {
        min-height: 200px;
        background-image: url('../images/footer/footer-fondo.jpg');
        padding: 40px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links a {
        font-size: 10px;
    }

    .footer-logo {
        width: 50px;
    }
}

/* =======================
   BANNER NOSOTROS
======================= */

.banner-nosotros {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.banner-nosotros picture {
    width: 100%;
    height: 100%;
    display: block;
}

.banner-nosotros img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}



/* =======================
   BANNER 4 ELEMENTOS
======================= */

.banner-cuatro {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-cuatro-bg img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay */
.banner-cuatro-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px; /* ESPACIO IGUAL ENTRE PNGs */
}

/* PNGs */
.banner-cuatro-overlay .item {
    width: 220px;
    transition: transform 0.3s ease, filter 0.3s ease;
    pointer-events: auto;
}

/* Hover SOLO DESKTOP */
@media (min-width: 769px) {
    .banner-cuatro-overlay .item:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    }
}

@media (min-width: 769px) {
    .banner-cuatro-overlay .item {
        width: 300px;
    }
}


/* =======================
   RESPONSIVE MÓVIL
======================= */

@media (max-width: 768px) {

    .banner-cuatro-overlay {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 40px;
    }

    .banner-cuatro-overlay .item {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    /* Primera fila baja */
    .banner-cuatro-overlay .item:nth-child(1),
    .banner-cuatro-overlay .item:nth-child(2) {
        transform: translateY(50px);
    }

    /* Segunda fila sube */
    .banner-cuatro-overlay .item:nth-child(3),
    .banner-cuatro-overlay .item:nth-child(4) {
        transform: translateY(-30px);
    }
}


.productos-banner {
  width: 100%;
  padding: 50px 0;
  background-image: url("/images/productos/fondo-banner.jpg");
  background-size: cover;
  background-position: center;
}

.productos-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.producto-card {
  width: 500px;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
}

.producto-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Hover desktop */
@media (hover: hover) {
  .producto-card:hover img {
    transform: scale(1.03);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .productos-banner {
    background-image: url("/images/productos/responsive/banner-fondo.jpg");
    padding: 80px 100px;
  }

  .productos-container {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .producto-card {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .producto-card img {
    height: auto;
  }
}

.productos-container {
  margin-top: 200px;
}

@media (max-width: 768px) {
  .productos-container {
    margin-top: 120px;
  }
}

.recetas-bg {
    width: 100%;
    background-image: url('../images/recetas/fondo-recetas.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    /* CLAVE */
    min-height: 100vh; /* mínimo pantalla completa */
}

.recetas-content {
    max-width: 1200px;
    margin: 0 auto;

    padding: 120px 20px 120px;
}

@media (max-width: 768px) {
    .recetas-bg {
        background-image: url('../images/recetas/responsive/fondo-recetas-movil.jpg');
        background-position: center top;
    }

    .recetas-content {
        padding: 80px 16px 100px;
    }
}

/* =======================
   BÚSQUEDA RECETAS
======================= */

.recetas-search {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
}

.search-wrapper {
    width: 100%;
    max-width: 600px;

    display: flex;
    align-items: center;

    background: #fff;
    border: 2px solid #000;
    border-radius: 50px;
    overflow: hidden;
}

.search-wrapper input {
    flex: 1;
    padding: 18px 22px;
    font-size: 16px;
    border: none;
    outline: none;
}

.search-wrapper button {
    background: transparent;
    border: none;
    padding: 0 22px;
    cursor: pointer;
    font-size: 20px;
}

/* Resultados */
.search-results {
    list-style: none;
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 20px;
    margin-top: 15px;
    overflow: hidden;
}

.search-results li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-results li:hover {
    background: #f5f5f5;
}

/* =======================
   MÓVIL
======================= */

@media (max-width: 768px) {
    .search-wrapper {
        max-width: 100%;
    }

    .search-wrapper input {
        padding: 20px;
        font-size: 18px;
    }

    .search-wrapper button {
        font-size: 22px;
    }
}

/* =======================
   FILTROS RECETAS
======================= */

.recetas-filtros {
    display: flex;
    justify-content: center;
    gap: 90px;
    margin: 50px 0;
}

.filtro {
    background: none;
    border: none;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: #7a4a2e; /* marrón base */
    font-size: 60px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.filtro span {
    margin-top: 1px;
    font-size: 14px;
    font-weight: 600;
}

.filtro:hover {
    color: #5c3420; /* marrón más oscuro */
    transform: scale(1.05);
}

.filtro.active {
    color: #000; /* seleccionado */
}

/* =======================
   MÓVIL
======================= */

@media (max-width: 768px) {
    .recetas-filtros {
        gap: 40px;
    }

    .filtro {
        font-size: 36px;
    }

    .filtro span {
        font-size: 15px;
    }
}

.recetas-grid {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.receta-card {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.receta-card img {
    width: 100%;
    height: auto;
    display: block;
}

.receta-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Texto oculto */
.receta-hidden {
    display: none;
}

@media (max-width: 768px) {

    .recetas-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        margin-top: 40px;
    }

    .receta-card:hover {
        transform: none;
        box-shadow: none;
    }
}


.contacto-banner {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.contacto-banner picture,
.contacto-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contacto-form-wrapper {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    z-index: 2;
}

.contacto-form {
    background: #fff;
    width: 360px;
    padding: 30px 28px;
    border-radius: 16px;
    border: 2px solid #4a2e1f; /* café oscuro */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
}

.contacto-form h2 {
    margin-bottom: 20px;
    color: #4a2e1f;
    font-size: 22px;
    text-align: center;
}

.contacto-form label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #4a2e1f;
    margin-bottom: 14px;
}

.contacto-form input,
.contacto-form textarea {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid #4a2e1f;
    font-size: 14px;
    resize: none;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #c89b3c;
}

.contacto-form button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #f2c94c; /* amarillo */
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #4a2e1f;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contacto-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {

    /* EL BANNER SOLO MUESTRA SU IMAGEN */
    .contacto-banner {
        position: relative;
        min-height: auto;
    }

    /* WRAPPER: SALE DEL MODO ABSOLUTO */
    .contacto-form-wrapper {
        position: static;        /* 🔑 CLAVE */
        top: auto;
        right: auto;
        left: auto;
        transform: none;

        width: 100%;

        display: flex;
        justify-content: center;

        background-image: url("../images/recetas/responsive/fondo-recetas-movil.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

        padding: 50px 20px;
        margin-top: 0;           /* evita que se monte */
    }

    /* FORMULARIO */
    .contacto-form {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;

        background-color: #ffffff;
        border-radius: 16px;
        box-shadow: none;

        position: relative;
        z-index: 2;
    }
}


/* ===============================
   BANNER MAPA CONTACTO
================================ */

/* BANNER MAPA – PC */
.contacto-mapa-banner {
    position: relative;
    width: 100%;
    height: 800px; /* PC */
    background-image: url("../images/contacto/banner-mapa-pc.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* CONTENEDOR MAPA */
.mapa-wrapper {
    position: relative;
    top: 260px; /* baja el mapa */

    /* 🔧 AJUSTABLE A MANO */
    width: 620px;
    height: 450px;

    margin-left: 16%; /* separa del borde izquierdo */

    border: 3px solid #4a2e1f; /* café oscuro */
    border-radius: 14px;
    overflow: hidden;

    background: #fff;
}

/* MAPA */
.mapa-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


@media (max-width: 768px) {

    .contacto-mapa-banner {
        height: 600px;
        padding: 1px 20px 40px; /* 🔑 menos padding arriba */

        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .mapa-wrapper {
        width: 100%;
        max-width: 420px;
        height: 160px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mapa-wrapper {
        margin-top: -70px;
    }
}



@media (max-width: 768px) {

    .contacto-mapa-banner {
        background-image: url("../images/contacto/responsive/banner-mapa-movil.jpg");
    }

}


.banner-nosotros {
    position: relative;
}

.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
}

.back-arrow i {
    font-size: 16px;
}

.back-arrow:hover {
    background: rgba(0,0,0,0.8);
    transform: translateX(-2px);
}

/* Mobile ajuste */
@media (max-width: 768px) {
    .back-arrow {
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
    }

    .back-arrow i {
        font-size: 14px;
    }
}
