/* --- MODAL TICKET DE PEDIDO --- */
.ticket-modal {
  max-width: 400px;
  padding: 2rem 1.2rem 1.2rem 1.2rem;
}
.ticket-lista {
  margin-bottom: 1.2rem;
}
.ticket-item {
  background: #fff3e0;
  border-radius: 8px;
  margin-bottom: 0.7em;
  padding: 0.7em 1em 0.5em 1em;
  box-shadow: 0 1px 4px rgba(184,92,43,0.07);
}
.ticket-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-prod {
  font-weight: bold;
  color: #b85c2b;
  font-size: 1.08em;
}
.ticket-cant {
  color: #6d3b1a;
  font-size: 1em;
}
.ticket-precios {
  font-size: 0.98em;
  color: #a04a1a;
  margin-top: 0.2em;
}
.ticket-precio-unit {
  opacity: 0.8;
}
.ticket-subtotal {
  font-weight: bold;
  margin-left: 1.2em;
}
.ticket-total {
  text-align: right;
  font-size: 1.15rem;
  color: #b85c2b;
  margin-bottom: 1.2rem;
  margin-top: 0.7rem;
}
.ticket-vacio {
  color: #a04a1a;
  text-align: center;
  padding: 1em 0;
}
/* --- MODAL DE PEDIDO --- */
.pedido-modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pedido-modal {
  background: #fff8f0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 320px;
  max-width: 95vw;
  color: #6d3b1a;
  font-family: inherit;
  position: relative;
}
.pedido-modal h3 {
  margin-top: 0;
  color: #b85c2b;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.pedido-modal-tabla {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.pedido-modal-tabla th, .pedido-modal-tabla td {
  border-bottom: 1px solid #e0c3a0;
  padding: 0.5em 0.7em;
  text-align: left;
}
.pedido-modal-tabla th {
  background: #ffe3c2;
  color: #a04a1a;
}
.pedido-modal-total {
  text-align: right;
  font-size: 1.1rem;
  color: #b85c2b;
  margin-bottom: 1.2rem;
}
.pedido-modal-btns {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
#pedido-modal-aceptar, #pedido-modal-cancelar {
  padding: 0.5em 1.2em;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
#pedido-modal-aceptar {
  background: #b85c2b;
  color: #fff8f0;
  font-weight: bold;
}
#pedido-modal-aceptar:hover {
  background: #a04a1a;
}
#pedido-modal-cancelar {
  background: #ffe3c2;
  color: #b85c2b;
}
#pedido-modal-cancelar:hover {
  background: #f5d1a0;
}
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #ededed 0%, #ffffff 60%, #ededed 100%);
    color: #3e2c18;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 30%, #fff 40%, transparent 70%),
                radial-gradient(circle at 30% 70%, #ededed 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

header {
    background: none;
    color: #3e2c18;
    padding: 40px 0 10px 0;
    text-align: center;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

header img {
    width: 120px;
    margin-bottom: 10px;
}

header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    color: #3e2c18;
    letter-spacing: 1px;
}

header p {
    font-size: 1.2em;
    color: #a67c52;
    margin-top: 8px;
}

main {
    padding: 30px;
    max-width: 900px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(62,44,24,0.07);
    position: relative;
    z-index: 0; /* Cambiado de 1 a 0 */
}

.menu {
    margin-bottom: 30px;
}

.menu h2 {
    text-align: center;
    color: #c49a6c;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 700;
    width: 100%;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.menu-item,
.promo-item {
    background: linear-gradient(120deg, #f5e6c8 60%, #e0d6c3 100%);
    border: 2px solid #c49a6c;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(62,44,24,0.08);
    padding: 24px 28px;
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Solo para destacar promociones */
.promo-item {
    background: #fffcf0; /* Fondo especial para promo */
    box-shadow: 0 4px 24px rgba(198,154,108,0.12);
    position: relative;
}

/* Etiqueta PROMO */
.promo-item::after {
    content: "PROMO";
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c49a6c;
    color: #fff;
    font-size: 0.85em;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(198,154,108,0.12);
    z-index: 2;
}

.menu-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(62,44,24,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.menu-modal-content {
    background: #fff8ec;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(62,44,24,0.18);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-modal-content img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 12px;
}

/* Asegura que el contenido interno no se desborde */
.menu-item-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

.menu-item-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.menu-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(62,44,24,0.08);
    flex-shrink: 0;
}

.menu-item-title {
    text-align: center;
    width: 100%;
    margin: 0 0 8px 0;
    word-break: normal;
    hyphens: auto;
}

.menu-item-desc-row {
    width: 100%;
}

.menu-item-desc {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #3e2c18;
    width: 100%;
    word-break: break-word;
    text-align: left;
}

.menu-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    gap: 12px;
}

/* Mobile: todo apilado */
@media (max-width: 700px) {
    .menu-items {
        padding: 0 4vw;
        gap: 16px;
    }
    .menu-item, .promo-item {
        width: 100%;
        min-width: 0;
        padding: 18px 12px;
    }
    .menu-item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .menu-img {
        width: 100%;
        height: 180px;
        border-radius: 12px;
    }
    .menu-item-title, .menu-item-desc, .price {
        text-align: left;
        width: 100%;
    }
}

/* --- NAVBAR ESTILO --- */
nav {
    position: relative;
    margin-top: 18px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.nav-list li a {
    display: block;
    padding: 10px 22px;
    border-radius: 24px;
    background: #f5e6c8;
    color: #a67c52;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 2px solid #c49a6c;
    box-shadow: 0 2px 8px rgba(62,44,24,0.04);
}

.nav-list li a:hover,
.nav-list li a:focus {
    background: #c49a6c;
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: #a67c52;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    z-index: 10;
}

/* --- MOBILE --- */
@media (max-width: 700px) {
    .nav-toggle {
        display: block;
        position: fixed;
        top: 18px;
        left: 18px;
        z-index: 2000; /* bien alto */
        background: #fff8ec;
        border: 2px solid #c49a6c;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        box-shadow: 0 2px 8px rgba(62,44,24,0.08);
        font-size: 2em;
        color: #a67c52;
        cursor: pointer;
    }
    nav {
        position: static;
    }
    .nav-list {
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 70px; /* Debajo del botón hamburguesa */
        left: 18px;
        width: 220px;
        background: #fff8ec;
        border: 2px solid #c49a6c;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 8px 24px rgba(62,44,24,0.13);
        display: none;
        padding: 12px 0;
        z-index: 1999;
    }
    .nav-list.open {
        display: flex;
    }
    .nav-list li {
        width: 100%;
        margin: 0;
        padding: 0 16px; /* Espacio lateral para cada opción */
        box-sizing: border-box;
    }
    .nav-list li a {
        margin: 0 0 12px 0;
        width: 100%;
        text-align: left;
        background: #f5e6c8;
        border: 2px solid #c49a6c;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(62,44,24,0.04);
        color: #a67c52;
        font-weight: 600;
        padding: 12px 18px;
        display: block;
        transition: background 0.2s, color 0.2s;
        box-sizing: border-box;
    }
    .nav-list li:last-child a {
        margin-bottom: 0;
    }
    .nav-list li a:hover,
    .nav-list li a:focus {
        background: #c49a6c;
        color: #fff;
    }
}

/* --- SECCIÓN PEDIDO --- */
.pedido {
    margin: 40px auto 0 auto;
    max-width: 900px;
    background: #ffffff;
    border: 2px solid #c49a6c;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(62,44,24,0.08);
    padding: 3px 24px 24px 24px;
    text-align: center;
}

.pedido h2 {
    color: #c49a6c;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 28px;
}

.pedido-contactos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.pedido-item {
    background: #f5e6c8;
    border: 2px solid #c49a6c;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(62,44,24,0.04);
    padding: 20px 28px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pedido-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
}

.pedido-label {
    color: #a67c52;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1.1em;
}

.pedido-info {
    color: #3e2c18;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.pedido-btn {
    margin-top: 8px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(62,44,24,0.04);
    transition: background 0.2s;
    display: inline-block;
}
.pedido-btn:hover {
    background: #1ebe57;
}

.pedido-link {
    color: #a67c52;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 4px;
    font-size: 1.1em;
    transition: color 0.2s;
}
.pedido-link:hover {
    color: #c49a6c;
    text-decoration: underline;
}

.pedido-md {
    color: #7c5c3b;
    font-size: 0.98em;
    margin-top: 2px;
}

.pedido-redes {
    margin-top: 32px;
    text-align: center;
}
.pedido-redes-titulo {
    display: block;
    color: #a67c52;
    font-weight: 600;
    font-size: 1.15em;
    margin-bottom: 12px;
}
.pedido-redes-iconos {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.pedido-redes-iconos .pedido-icon {
    width: 38px;
    height: 38px;
    transition: transform 0.2s;
}
.pedido-redes-iconos .pedido-icon:hover {
    transform: scale(1.15);
}

/* --- SECCIÓN SOBRE --- */
.about {
    margin: 40px auto 0 auto;
    max-width: 900px;
    background: #fff8ec;
    border: 2px solid #c49a6c;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(62,44,24,0.08);
    padding: 32px 24px 24px 24px;
    text-align: center;
}

.about h2 {
    color: #c49a6c;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 18px;
}

.about p {
    color: #3e2c18;
    font-size: 1.15em;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 700px) {
    .pedido-contactos {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }
    .pedido-item {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 16px 10px;
    }
}
footer {
    text-align: center;
    padding: 20px;
    background-color: #3e2c18;
    color: #fff;
    font-size: 0.95em;
    margin-top: 40px;
    border-radius: 0 0 18px 18px;
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff8ec 60%, #f5e6c8 100%);
    border-radius: 50%;
    padding: 12px;
    width: 144px;
    height: 144px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(62,44,24,0.06);
}

.logo {
    display: block;
    margin: 0 auto 18px auto;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%; /* Lo hace circular */
    border: 4px solid #fff8ec; /* Borde suave */
    box-shadow: 0 4px 16px rgba(62,44,24,0.10); /* Sombra sutil */
    background: #fff8ec;
    transition: box-shadow 0.2s;
}
.logo:hover {
    box-shadow: 0 8px 32px rgba(62,44,24,0.18);
}
.menu-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(62,44,24,0.08);
    flex-shrink: 0;
}

.menu-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(62,44,24,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.menu-modal-content {
    background: #fff8ec;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(62,44,24,0.18);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-modal-content img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 12px;
}

/* Asegura que el contenido interno no se desborde */
.menu-item-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

.menu-item-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.menu-item-title {
    text-align: center;
    width: 100%;
    margin: 0 0 8px 0;
    word-break: normal;
    hyphens: auto;
}

.menu-item-desc-row {
    width: 100%;
}

.menu-item-desc {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #3e2c18;
    width: 100%;
    word-break: break-word;
    text-align: left;
}

.menu-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    gap: 12px;
}

/* Mobile: todo apilado */
@media (max-width: 700px) {
    .menu-item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .menu-img {
        width: 100%;
        height: 180px;
        border-radius: 12px;
    }
    .menu-item-title, .menu-item-desc, .price {
        text-align: left;
        width: 100%;
    }
}

.price {
    color: #c49a6c;
    font-weight: 700;
    font-size: 1.15em;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
}

/* --- SECCIÓN PASOS --- */
.pedido-pasos {
    margin: 18px 0 24px 0;
    padding-left: 24px; /* Da espacio para los bullets */
    color: #3e2c18;
    font-size: 1em;
    font-weight: 400;
    list-style-position: outside; /* Bullets fuera del texto */
    text-align: left; /* Alinea el texto a la izquierda */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pedido-pasos li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-family: inherit;
    color: #3e2c18;
    font-size: 1em; /* Igual que .menu-item-desc */
    padding-left: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background: #f5e6c8;
    border: 2px solid #c49a6c;
    color: #a67c52;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.qty-btn:active {
    background: #c49a6c;
    color: #fff;
}
.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #3e2c18;
}

.pedido-select, .pedido-input {
    margin-top: 8px;
    margin-left: 0;
    padding: 8px 12px;
    font-size: 0.9em;
    border: 2px solid #c49a6c;
    border-radius: 8px;
    background: #fff8ec;
    color: #3e2c18;
    outline: none;
    width: 220px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.pedido-select:focus, .pedido-input:focus {
    border-color: #a67c52;
}

@font-face {
  font-family: 'LibertinusSans-Bold'; 
  src: url('/resources/fonts/LibertinusSans-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap; /* Mejora la performance */
}
@font-face {
  font-family: 'LibertinusSans-Regular'; 
  src: url('/resources/fonts/LibertinusSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Mejora la performance */
}

/* Aplicar a los elementos que quieras */
h1 {
  font-family: 'LibertinusSans-Bold', 'Montserrat', Arial, sans-serif;
}

/* Si quieres aplicar a todos los títulos */
h1, h2, h3 {
  font-family: 'LibertinusSans-Bold', 'Montserrat', Arial, sans-serif;
}

/* Si quieres aplicar a todo el body */
body {
  font-family: 'LibertinusSans-Regular', 'Montserrat', Arial, sans-serif;
}

/* --- SECCIÓN PAGOS --- */
.pedido-pagos {
    display: block;
    align-items: center;
    margin-top: 12px;
}

.pedido-pagos-titulo {
    color: #a67c52;
    font-weight: 600;
    font-size: 1.08em;
    margin-bottom: 8px;
    text-align: center;
}

.pedido-pagos-iconos {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 4px;
}

.pedido-pago-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.2s;
}

.pedido-pago-icon:hover {
    transform: scale(1.50);
}

/* --- SECCIÓN PROMOCIONES --- */
.promociones {
    transition: box-shadow 0.5s, transform 0.5s;
    margin: 40px auto;
    max-width: 900px;
    background: #fff8ec;
    border: 2px solid #c49a6c;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(62,44,24,0.08);
    padding: 0px 24px 10px 24px;
    text-align: center;
    transition: box-shadow 0.5s, transform 0.5s;
}

.promociones h2 {
    color: #a67c52;
    font-size: 1.35em;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.promo-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.promo-item {
    border: 2px solid #c49a6c;
    background: #fffcf0;
    box-shadow: 0 4px 24px rgba(198,154,108,0.12);
    position: relative;
    width: 100%;         /* Ocupa todo el ancho de la columna */
    min-width: 0;        /* Permite que el contenido se reduzca si es necesario */
    max-width: 100%;
    box-sizing: border-box;
    padding: 24px 28px;  /* Igual que .menu-item */
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.promo-item::after {
    content: "PROMO";
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ca2e2e;
    color: #ffffff;
    font-size: 0.85em;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(198,154,108,0.12);
}
/* En mobile, que ocupen casi todo el ancho pero con margen */
@media (max-width: 700px) {
    .promo-items {
        padding: 0 4vw;
        gap: 16px;
    }
    .promo-item {
        width: 100%;
        min-width: 0;
        padding: 18px 12px;
    }
}

.promociones.visible {
    box-shadow: 0 8px 32px rgba(198,154,108,0.25);
    transform: scale(1.03);
    border: 2.5px solid #c49a6c;
    background: #fffbe9;
    z-index: 2;
}

.carrito-modal {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #ffffffde;
    border: 2px solid #c49a6c;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(198,154,108,0.18);
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    font-size: 1.00em;
    font-weight: 600;
    transition: bottom 0.4s ease;
}

/* Mover carrito cuando aparece banner de cookies */
body:has(.cookie-banner:not(.hidden)) .carrito-modal {
    bottom: 120px;
}

@supports not selector(:has(*)) {
    /* Fallback para navegadores que no soportan :has() */
    .carrito-modal.cookie-active {
        bottom: 120px;
    }
}

.carrito-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.carrito-total-label {
    color: #a67c52;
}
#carrito-total {
    color: #3e2c18;
    font-weight: bold;
    font-size: 1.15em;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --- MODAL DE STOCK --- */
.stock-modal-content {
    background: #fff;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(62,44,24,0.2);
    border: 2px solid #c49a6c;
    position: relative;
    padding: 0;
}

.modal-header {
    background: linear-gradient(135deg, #c49a6c 0%, #a67c52 100%);
    padding: 20px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.modal-body h3 {
    color: #e74c3c;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.5;
}

.emoji {
    vertical-align: middle;
    font-size: 1.4em; 
}

.modal-body p {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-body h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.modal-body ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.modal-body li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    align-items: center;
}

.modal-body li:last-child {
    border-bottom: none;
}

.modal-body span:first-child {
    font-weight: 500;
    color: #2c3e50;
}

.stock-badge {
    background: #28a745;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-top: 10px;
}

.whatsapp-btn:hover {
    background: #20b858;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.stock-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.hidden {
    display: none;
}

/* Mensaje de productos/promociones no disponibles */
.no-disponible-mensaje {
    background: linear-gradient(120deg, #f5e6c8 60%, #e0d6c3 100%);
    border: 2px solid #c49a6c;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(62,44,24,0.08);
    padding: 32px 28px;
    margin-bottom: 24px;
    text-align: center;
    grid-column: 1 / -1; /* Ocupa toda la fila en el grid */
}

.no-disponible-content h3 {
    margin: 0 0 16px 0;
    color: #3e2c18;
    font-size: 1.4em;
    font-weight: 600;
}

.no-disponible-content p {
    margin: 0;
    color: #3e2c18;
    font-size: 1.1em;
    line-height: 1.5;
}

.no-disponible-content a {
    color: #c49a6c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.no-disponible-content a:hover {
    color: #b85c2b;
    border-bottom-color: #b85c2b;
}

@media (max-width: 700px) {
    .no-disponible-mensaje {
        padding: 24px 16px;
        margin-bottom: 16px;
    }
    
    .no-disponible-content h3 {
        font-size: 1.2em;
    }
    
    .no-disponible-content p {
        font-size: 1em;
    }
}

/* Optimizaciones para Core Web Vitals */
img {
    max-width: 100%;
    height: auto;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* === BANNER DE COOKIES === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f5e6c8 0%, #e0d6c3 100%);
    border-top: 3px solid #c49a6c;
    box-shadow: 0 -4px 20px rgba(62, 44, 24, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.cookie-banner:not(.hidden) {
    transform: translateY(0);
}

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

.cookie-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cookie-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    color: #3e2c18;
    font-size: 0.95em;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept {
    background: #c49a6c;
    color: white;
    box-shadow: 0 2px 8px rgba(196, 154, 108, 0.3);
}

.cookie-accept:hover {
    background: #b85c2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.4);
}

.cookie-essential {
    background: #6d3b1a;
    color: white;
    box-shadow: 0 2px 8px rgba(109, 59, 26, 0.3);
}

.cookie-essential:hover {
    background: #5a2f15;
    transform: translateY(-1px);
}

.cookie-info {
    background: transparent;
    color: #6d3b1a;
    border: 2px solid #c49a6c;
}

.cookie-info:hover {
    background: #c49a6c;
    color: white;
}

/* Modal de información de cookies */
.cookie-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-types {
    margin: 20px 0;
}

.cookie-type {
    background: #fff8f0;
    border: 1px solid #e0d6c3;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-type h5 {
    margin: 0 0 8px 0;
    color: #3e2c18;
    font-size: 1em;
}

.cookie-type p {
    margin: 0;
    color: #6d3b1a;
    font-size: 0.9em;
    flex: 1;
}

.cookie-required {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.cookie-inactive {
    background: #6c757d;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #c49a6c;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.cookie-modal-actions {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0d6c3;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .cookie-text p {
        font-size: 0.85em;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
        max-width: 140px;
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    .cookie-type {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        padding: 12px;
    }
    
    .cookie-text p {
        font-size: 0.8em;
        line-height: 1.3;
    }
    
    .cookie-btn {
        font-size: 0.75em;
        padding: 6px 10px;
        min-width: 90px;
    }
}