/* =========================
   VARIABLES
========================= */

:root {
    --verde: #b3bd77;
    --verde-oscuro: #5c6b22;
    --marron-suave: #D8CEA9;
    --marron-oscuro: #725832;

    --rojo: #d32f2f;
    --rojo-claro: #fff5f5;

    --amarillo-claro: #fff8e1;
    --amarillo-texto: #765900;

    --texto: #333;
    --texto-suave: #666;
    --texto-gris: #777;

    --blanco: #fff;
    --fondo: #f5f7f4;
    --fondo-contacto: #f7faf8;

    --borde: #e5e5e5;
    --borde-verde: #d6e8dc;

    --sombra: 0 8px 20px rgba(0, 0, 0, .08);
    --radio: 18px;
}

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--fondo);
    color: var(--texto);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font-family: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

/* =========================
   TITULOS GENERALES
========================= */

section h2 {
    margin-bottom: 40px;
    color: var(--verde-oscuro);
    text-align: center;
    font-size: 2.2rem;
}

/* =========================================================
   HEADER
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 40px;

    background: var(--blanco);
    box-shadow: var(--sombra);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
}

.header nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.header nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 500;
    line-height: 1;

    transition: color .25s ease;
}

.header nav a:hover {
    color: var(--verde);
}

/* =========================
   CARRITO HEADER
========================= */

.btn-carrito {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    padding: 0;
    border-radius: 50%;

    background: var(--verde);
    color: var(--blanco);

    font-size: 22px;
}

.btn-carrito i {
    display: flex;
    align-items: center;
    justify-content: center;
}

#contador {
    position: absolute;
    top: -6px;
    right: -6px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;
    background: #ff3d3d;
    color: var(--blanco);

    font-size: 12px;
    line-height: 1;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;

    max-width: 1300px;
    margin: auto;
    padding: 70px 30px;
}

.hero h1 {
    margin-bottom: 20px;

    color: var(--verde-oscuro);
    font-size: 3.2rem;
    line-height: 1.15;
}

.hero p {
    margin-bottom: 35px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.hero-imagen img {
    width: 100%;
}

/* =========================
   ETIQUETA HERO
========================= */

.hero-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 15px;
    padding: 7px 15px;

    border-radius: 30px;
    background: #ffffff;
    color: #7A8745;

    font-size: .85rem;
    font-weight: 600;
}

/* =========================
   BOTONES HERO
========================= */

.hero-botones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 25px;
}

.hero-botones .btn-principal,
.hero-botones .btn-cita {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;
    padding: 12px 21px;

    border-radius: 12px;

    font-size: .92rem;
    font-weight: 600;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.hero-botones .btn-principal:hover,
.hero-botones .btn-cita:hover {
    transform: translateY(-2px);
}

.hero-botones .btn-principal {
    background: #7A8745;
    color: var(--blanco);
    box-shadow: 0 7px 18px rgba(75, 155, 104, .20);
}

.hero-botones .btn-principal:hover {
    box-shadow: 0 10px 24px rgba(75, 155, 104, .28);
}

.hero-botones .btn-cita {
    background: var(--blanco);
    color: #7A8745;
    border: 1px solid var(--borde-verde);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .06);
}

.hero-botones .btn-cita:hover {
    background: #f3faf5;
    border-color: #b9d9c4;
}

/* =========================================================
   CATEGORIAS
========================================================= */

.categorias {
    padding: 20px 30px;
}

#listaCategorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.categoria {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 22px;

    border: 2px solid #e6e6e6;
    border-radius: 999px;

    background: var(--blanco);

    font-weight: 600;

    transition:
        border-color .25s ease,
        transform .25s ease,
        background .25s ease;
}

.categoria i {
    color: var(--verde);
}

.categoria:hover {
    border-color: var(--verde);
    transform: translateY(-2px);
}

.categoria.activa {
    border-color: var(--verde);
    background: var(--verde);
    color: var(--blanco);
}

.categoria.activa i {
    color: var(--blanco);
}

/* =========================================================
   BUSCADOR
========================================================= */

.buscador {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 30px;
}

#txtBuscar {
    width: 100%;
    padding: 18px 25px;

    border: 0;
    border-radius: 50px;

    background: var(--blanco);
    box-shadow: var(--sombra);

    font-size: 17px;
}

#txtBuscar:focus {
    outline: 2px solid var(--verde);
}

/* =========================================================
   PRODUCTOS
========================================================= */

.productos {
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 30px;
}

#listaProductos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.producto {
    overflow: hidden;

    border-radius: var(--radio);
    background: var(--blanco);
    box-shadow: var(--sombra);

    animation: aparecer .35s ease;

    transition: transform .25s ease;
}

.producto:hover {
    transform: translateY(-6px);
}

.producto img{
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:contain;
    background:#fafafa;
    border-radius:18px 18px 0 0;
}

.info-producto {
    padding: 20px;
}

.info-producto h3 {
    min-height: 55px;
    margin-bottom: 10px;

    font-size: 20px;
    line-height: 1.35;
}

.descripcion {
    min-height: 45px;
    margin-bottom: 15px;

    color: var(--texto-suave);
    font-size: 15px;
    line-height: 1.5;
}

.precio {
    margin-bottom: 18px;

    color: var(--verde-oscuro);
    font-size: 28px;
    font-weight: 700;
}

.precio-oferta {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 15px 0;
}

.precio-anterior {
    color: #999;
    font-size: 15px;
    text-decoration: line-through;
}

.precio-nuevo {
    color: #e53935;
    font-size: 24px;
    font-weight: 800;
}

/* =========================
   BOTONES PRODUCTO
========================= */

.btn-anadir {
    width: 100%;
    height: 48px;

    border-radius: 40px;

    background: var(--verde);
    color: var(--blanco);

    font-size: 16px;

    transition:
        background .25s ease,
        transform .2s ease;
}

.btn-anadir:hover {
    background: var(--verde-oscuro);
    transform: translateY(-1px);
}

.btn-detalles {
    width: 100%;
    height: 44px;

    margin-top: 10px;

    border-radius: 40px;

    background: #f1f3f1;
    color: var(--verde-oscuro);

    font-size: 15px;
    font-weight: 600;

    transition:
        background .25s ease,
        transform .2s ease;
}

.btn-detalles:hover {
    background: #e4e9e4;
    transform: translateY(-1px);
}

/* =========================================================
   DESPLEGABLE DE PESOS
========================================================= */

.selector-peso {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin: 14px 0 12px;
}

.titulo-peso {
    display: block;

    color: #555;
    font-size: .82rem;
    font-weight: 700;
}

.select-peso {
    width: 100%;
    min-height: 44px;

    padding: 10px 42px 10px 14px;

    border: 1px solid #d9d9d9;
    border-radius: 10px;

    background-color: var(--blanco);
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 19px,
        calc(100% - 12px) 19px;
    background-repeat: no-repeat;
    background-size:
        6px 6px,
        6px 6px;

    color: var(--texto);

    appearance: none;
    cursor: pointer;

    font-size: .95rem;
    font-weight: 600;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.select-peso:hover {
    border-color: #aaa;
    background-color: #fafafa;
}

.select-peso:focus,
.select-peso:focus-visible {
    border-color: #7A8745;
    box-shadow: 0 0 0 3px rgba(106, 170, 100, .15);
}

.select-peso:focus-visible {
    outline: 2px solid #7A8745;
    outline-offset: 2px;
}

.select-peso option {
    padding: 10px;
    font-size: .95rem;
}

.select-peso:disabled {
    opacity: .6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.producto .selector-peso {
    margin-top: 12px;
    margin-bottom: 12px;
}

.producto .select-peso {
    min-height: 42px;
}

.selector-peso-modal .selector-peso {
    margin: 18px 0 16px;
}

.selector-peso-modal .select-peso {
    min-height: 46px;
    font-size: 1rem;
}

.producto:hover .select-peso {
    border-color: #c8c8c8;
}

/* =========================================================
   OVERLAY
========================================================= */

#overlay {
    position: fixed;
    inset: 0;
    z-index: 999;

    background: rgba(0, 0, 0, .45);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

#overlay.activo {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   PANEL CARRITO
========================================================= */

#panelCarrito {
    position: fixed;
    top: 0;
    right: -420px;
    z-index: 1000;

    display: flex;
    flex-direction: column;

    width: 400px;
    max-width: 100%;
    height: 100vh;

    background: var(--blanco);
    box-shadow: -8px 0 25px rgba(0, 0, 0, .15);

    transition: right .3s ease;
}

#panelCarrito.abierto {
    right: 0;
}

.cabecera-carrito {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px;

    border-bottom: 1px solid #ececec;
}

.cabecera-carrito h2 {
    margin: 0;
    font-size: 21px;
}

#cerrarCarrito {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    background: #f1f1f1;

    color: var(--texto);
    font-size: 18px;

    transition: background .2s ease;
}

#cerrarCarrito:hover {
    background: #e7e7e7;
}

#contenidoCarrito {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.pie-carrito {
    padding: 20px;
    border-top: 1px solid #ececec;
}

.pie-carrito h3 {
    margin-bottom: 5px;
}

/* =========================================================
   ITEMS DEL CARRITO
========================================================= */

.item-carrito {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 15px;
    padding: 18px;

    border: 1px solid #e7e7e7;
    border-radius: 15px;

    background: var(--blanco);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
}

.item-carrito img {
    width: 85px;
    height: 85px;

    flex-shrink: 0;

    border-radius: 12px;
    background: #fafafa;

    object-fit: contain;
}

.info-item {
    flex: 1;
    min-width: 0;
}

.info-item h4 {
    margin-bottom: 7px;
    font-size: 16px;
}

.info-item p {
    margin-bottom: 8px;

    color: var(--texto-suave);
    font-size: 13px;
}

.subtotal-item {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

/* =========================
   CONTROLES CARRITO
========================= */

.controles {
    display: flex;
    align-items: center;
    gap: 7px;
}

.controles button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: var(--blanco);
    color: var(--texto);

    font-size: 16px;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.controles button:hover {
    background: #f3f8f3;
    border-color: var(--verde);
    transform: scale(1.04);
}

.controles strong {
    min-width: 25px;
    text-align: center;
}

.controles button[data-accion="borrar"] {
    margin-left: 8px;
    border-color: transparent;
    color: #d9534f;
}

/* =========================================================
   BOTONES DEL CARRITO
========================================================= */

.btn-ir-carrito {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 46px;

    margin-top: 15px;

    border-radius: 10px;

    background: var(--verde);
    color: var(--blanco);

    font-size: 15px;
    font-weight: 700;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.btn-ir-carrito:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-ir-carrito:active {
    transform: translateY(0);
}

.btn-vaciar-carrito {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 44px;

    margin-top: 10px;

    border: 1px solid #e0e0e0;
    border-radius: 50px;

    background: var(--blanco);
    color: #777;

    font-size: 14px;
    font-weight: 600;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.btn-vaciar-carrito:hover {
    background: var(--rojo-claro);
    border-color: #e57373;
    color: var(--rojo);
}

/* =========================================================
   DATOS DEL CLIENTE
========================================================= */

.datos-cliente {
    overflow: hidden;

    margin-top: 15px;
    padding: 12px;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    background: #f8f9f8;
}

.btn-mostrar-datos {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 42px;

    padding: 0 5px;

    background: transparent;

    color: var(--texto);

    font-size: 16px;
    font-weight: 700;
}

.btn-mostrar-datos span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-mostrar-datos span i {
    color: var(--verde);
}

#flechaDatos {
    color: #888;
    font-size: 13px;

    transition: transform .25s ease;
}

.datos-cliente-contenido {
    display: none;
    padding-top: 8px;
}

.datos-cliente.abierto .datos-cliente-contenido {
    display: block;
}

.datos-cliente.abierto #flechaDatos {
    transform: rotate(180deg);
}

.datos-cliente input,
.datos-cliente select {
    width: 100%;
    height: 38px;

    margin-bottom: 7px;
    padding: 0 10px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: var(--blanco);

    color: var(--texto);
    font-size: 13px;

    outline: none;
}

.datos-cliente input:focus,
.datos-cliente select:focus {
    border-color: var(--verde);
}

.datos-cliente h3 {
    margin: 0 0 3px;
    font-size: 16px;
}

.datos-ayuda {
    margin: 0 0 10px;
    color: var(--texto-gris);
    font-size: 12px;
}

.datos-fila {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
}

/* =========================================================
   AVISOS
========================================================= */

.aviso-envio,
.aviso-resumen {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    border-radius: 8px;

    background: var(--amarillo-claro);
    color: var(--amarillo-texto);

    line-height: 1.4;
}

.aviso-envio {
    margin-top: 3px;
    padding: 8px;
    font-size: 11px;
}

.aviso-envio i,
.aviso-resumen i {
    margin-top: 2px;
    color: #8f0505;
}

.ayuda-whatsapp {
    margin: 10px 5px 0;

    color: #777;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   BOTONES PEDIDO / WHATSAPP
========================================================= */

.acciones-pedido {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin-top: 12px;
}

.btn-whatsapp,
.btn-copiar-pedido {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 46px;

    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;
}

.btn-whatsapp {
    background: #25d366;
    color: var(--blanco);

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, .25);
}

.btn-whatsapp i {
    font-size: 22px;
}

.btn-copiar-pedido {
    border: 1px solid #ddd;
    background: var(--blanco);
    color: #555;
}

.btn-copiar-pedido:hover {
    background: #f5f5f5;
}

/* =========================================================
   CARRITO VACIO / SIN RESULTADOS
========================================================= */

.carrito-vacio {
    padding: 60px 20px;

    border: 1px dashed #ddd;
    border-radius: 15px;

    background: #fafafa;

    text-align: center;
}

.carrito-vacio i,
.sin-resultados i {
    color: var(--verde);
}

.carrito-vacio i {
    margin-bottom: 15px;
    font-size: 42px;
}

.carrito-vacio h3 {
    margin-bottom: 7px;
    font-size: 20px;
}

.carrito-vacio p {
    color: var(--texto-gris);
}

.sin-resultados {
    grid-column: 1 / -1;

    padding: 80px 20px;

    color: var(--texto-gris);
    text-align: center;
}

.sin-resultados i {
    display: block;
    margin-bottom: 20px;
    font-size: 70px;
}

.sin-resultados h3 {
    margin-bottom: 10px;
}

/* =========================================================
   MODAL PRODUCTO
========================================================= */

.modal-producto {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, .55);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.modal-producto.abierto {
    opacity: 1;
    visibility: visible;
}

.modal-contenido {
    position: relative;

    width: 900px;
    max-width: 100%;
    max-height: 90vh;

    overflow-y: auto;

    padding: 35px;

    border-radius: 25px;

    background: var(--blanco);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);

    transform: translateY(20px);

    transition: transform .3s ease;
}

.modal-producto.abierto .modal-contenido {
    transform: translateY(0);
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #f1f1f1;
    color: var(--texto);

    font-size: 20px;
}

.cerrar-modal:hover {
    background: #e5e5e5;
}

.detalle-producto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.detalle-producto-imagen {
    width: 100%;
    max-height: 450px;

    border-radius: 20px;

    object-fit: contain;
}

.detalle-producto-info h2 {
    margin-bottom: 15px;
    text-align: left;
}

.detalle-producto-descripcion {
    margin-bottom: 20px;

    color: var(--texto-suave);
    line-height: 1.7;
}

.detalle-producto-precio {
    margin-bottom: 25px;

    color: var(--verde-oscuro);
    font-size: 32px;
    font-weight: 700;
}

.btn-modal-anadir {
    width: 100%;
    height: 52px;

    border-radius: 50px;

    background: var(--verde);
    color: var(--blanco);

    font-size: 17px;
    font-weight: 600;
}

.btn-modal-anadir:hover {
    background: var(--verde-oscuro);
}

/* =========================================================
   PAGINA DEL CARRITO
========================================================= */

.pagina-carrito {
    width: 100%;
    padding: 50px 20px 80px;
}

.contenedor-carrito {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   TITULO
========================= */

.titulo-pagina {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 35px;
}

.titulo-pagina > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border-radius: 15px;

    background: var(--verde);
    color: var(--blanco);

    font-size: 25px;
}

.titulo-pagina h1 {
    margin-bottom: 5px;
    font-size: 34px;
}

.titulo-pagina p {
    color: var(--texto-gris);
    font-size: 15px;
}

/* =========================
   ZONA CARRITO
========================= */

.zona-carrito {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 30px;
}

.lista-carrito {
    min-width: 0;
}

/* =========================
   RESUMEN
========================= */

.resumen-carrito {
    position: sticky;
    top: 25px;

    padding: 25px;

    border: 1px solid #e5e5e5;
    border-radius: 16px;

    background: var(--blanco);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
}

.resumen-carrito h2 {
    margin-bottom: 22px;
    font-size: 20px;
}

.linea-resumen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 12px 0;

    border-bottom: 1px solid #eee;

    font-size: 14px;
}

.linea-resumen.total {
    padding-top: 18px;
    border-bottom: 0;

    font-size: 20px;
}

.linea-resumen.total strong {
    color: var(--verde-oscuro);
    font-size: 24px;
}

.aviso-resumen {
    margin-top: 15px;
    padding: 12px;

    font-size: 12px;
}

/* =========================================================
   SECCION DATOS PEDIDO
========================================================= */

.seccion-datos {
    margin-top: 40px;
    padding: 30px;

    border: 1px solid #e5e5e5;
    border-radius: 16px;

    background: var(--blanco);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);
}

.titulo-seccion {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 25px;
}

.titulo-seccion > i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border-radius: 12px;

    background: var(--marron-suave);
    color: var(--verde-oscuro);
}

.titulo-seccion h2 {
    margin-bottom: 3px;
    font-size: 22px;
}

.titulo-seccion p {
    color: var(--texto-gris);
    font-size: 13px;
}

/* =========================
   FORMULARIO
========================= */

.formulario-pedido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.campo-ancho {
    grid-column: 1 / -1;
}

.campo label {
    color: #444;
    font-size: 13px;
    font-weight: 700;
}

.campo input,
.campo select {
    width: 100%;
    height: 45px;

    padding: 0 13px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: var(--blanco);
    color: var(--texto);

    font-size: 14px;
    outline: none;
}

.campo input:focus,
.campo select:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, .10);
}

/* =========================
   AVISO ENVIO GRANDE
========================= */

.aviso-envio-grande {
    display: flex;
    gap: 12px;

    margin-top: 25px;
    padding: 15px;

    border-radius: 11px;

    background: #f5f8f5;
    color: #555;
}

.aviso-envio-grande > i {
    margin-top: 3px;
    color: #8f0505;
}

.aviso-envio-grande strong {
    font-size: 13px;
}

.aviso-envio-grande p {
    margin-top: 5px;

    font-size: 12px;
    line-height: 1.45;
}

/* =========================
   BOTONES FINALES
========================= */

.acciones-carrito {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    margin-top: 30px;
}

.acciones-carrito .btn-whatsapp,
.acciones-carrito .btn-copiar-pedido {
    width: 100%;
    max-width: 500px;
}

.acciones-carrito .btn-whatsapp {
    min-height: 52px;

    border-radius: 11px;

    background: var(--verde);
    color: var(--blanco);

    font-size: 16px;
}

.acciones-carrito .btn-whatsapp:hover {
    background: var(--verde-oscuro);
}

.acciones-carrito .btn-copiar-pedido {
    min-height: 45px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: var(--blanco);
    color: #444;

    font-size: 14px;
}

.acciones-carrito .btn-copiar-pedido:hover {
    border-color: var(--verde);
}

.acciones-carrito .btn-vaciar-carrito {
    width: 100%;
    max-width: 300px;

    min-height: 40px;

    border: 0;

    background: transparent;
    color: #d9534f;

    font-size: 13px;
}

.ayuda-whatsapp {
    max-width: 550px;
    margin: 3px 0 0;

    color: #888;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   CONTACTO
========================================================= */

.contacto {
    padding: 90px 20px;
    background: var(--fondo-contacto);
}

.contacto-contenedor {
    width: 100%;
    max-width: 1180px;
    margin: auto;
}

.contacto-titulo {
    max-width: 700px;
    margin: 0 auto 50px;

    text-align: center;
}

.contacto-etiqueta {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--verde-oscuro);
    font-size: .85rem;
    font-weight: 600;
}

.contacto-titulo h2 {
    margin-bottom: 14px;

    color: #26352c;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.15;
}

.contacto-titulo p {
    color: #718078;
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================
   TARJETAS CONTACTO
========================= */

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contacto-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    padding: 25px;

    border: 1px solid #e7eee9;
    border-radius: 18px;

    background: var(--blanco);
    box-shadow: 0 8px 25px rgba(41, 67, 50, .05);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.contacto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(41, 67, 50, .09);
}

.contacto-icono {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 52px;
    height: 52px;

    border-radius: 14px;

    background: var(--marron-suave);
    color: var(--marron-oscuro);

    font-size: 1.2rem;
}

.contacto-card h3 {
    margin: 2px 0 8px;

    color: #2d3c32;
    font-size: 1.05rem;
}

.contacto-card p {
    margin-bottom: 12px;

    color: #748078;
    font-size: .9rem;
    line-height: 1.6;
}

.contacto-boton {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 13px;

    border-radius: 9px;

    background: var(--marron-suave);
    color: var(--marron-oscuro);

    font-size: .82rem;
    font-weight: 600;

    transition:
        background .2s ease,
        transform .2s ease;
}

.contacto-boton:hover {
    background: #e2f1e7;
    transform: translateY(-1px);
}

/* =========================================================
   HORARIOS
========================================================= */

.horario {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 35px;

    margin-top: 25px;
    padding: 30px;

    border: 1px solid #e7eee9;
    border-radius: 20px;

    background: var(--blanco);
    box-shadow: 0 8px 25px rgba(41, 67, 50, .05);
}

.horario-cabecera {
    display: flex;
    align-items: center;
    gap: 17px;
}

.horario-cabecera > i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 14px;

    background: var(--marron-suave);
    color: var(--marron-oscuro);

    font-size: 1.2rem;
}

.horario-cabecera h3 {
    margin-bottom: 4px;

    color: #2d3c32;
    font-size: 1.1rem;
}

.horario-cabecera p {
    color: #849088;
    font-size: .85rem;
}

.horario-lineas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.horario-linea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 11px 14px;

    border-radius: 9px;

    background: #f7faf8;
}

.horario-linea span {
    color: #66736b;
    font-size: .88rem;
}

.horario-linea strong {
    color: #34483b;
    font-size: .88rem;
    font-weight: 600;
}

.horario-linea.cerrado strong {
    color: #9a6a6a;
}

/* =========================================================
   INSTAGRAM
========================================================= */

.contacto-instagram {
    margin-top: 38px;
    text-align: center;
}

.contacto-instagram p {
    margin-bottom: 8px;

    color: #78847d;
    font-size: .85rem;
}

.contacto-instagram a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #5C6B22;

    font-size: 1rem;
    font-weight: 600;

    transition: opacity .2s ease;
}

.contacto-instagram a:hover {
    opacity: .75;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 45px 20px 30px;

    background: #26352c;
    color: var(--blanco);

    text-align: center;
}

.footer-contenido {
    max-width: 700px;
    margin: auto;
}

.footer h2 {
    margin-bottom: 8px;

    font-size: 1.35rem;
    font-weight: 600;
}

.footer p {
    color: #c6d2ca;
    font-size: .9rem;
}

.footer-copy {
    margin-top: 25px !important;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, .10);

    font-size: .78rem !important;
}

/* =========================================================
   ANIMACION
========================================================= */

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 850px) {

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-imagen {
        order: -1;
    }

    .hero-botones {
        justify-content: center;
    }

    .zona-carrito {
        grid-template-columns: 1fr;
    }

    .resumen-carrito {
        position: static;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .horario {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* =========================================================
   RESPONSIVE - MOVIL
========================================================= */

@media (max-width: 600px) {

    /* HEADER */

    .header {
        padding: 10px 15px;
    }

    .logo img {
        height: 55px;
    }

    .header nav ul {
        gap: 10px;
    }

    .header nav a {
        font-size: 12px;
    }

    .btn-carrito {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    #contador {
        width: 20px;
        height: 20px;

        top: -4px;
        right: -4px;

        font-size: 11px;
    }

    /* HERO */

    .hero {
        gap: 25px;
        padding: 45px 18px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-botones {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-botones .btn-principal,
    .hero-botones .btn-cita {
        width: 100%;
    }

    /* CATEGORIAS */

    .categorias {
        padding: 10px 15px;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    #listaCategorias {
        gap: 8px;
    }

    .categoria {
        padding: 10px 15px;
        font-size: 13px;
    }

    /* BUSCADOR */

    .buscador {
        margin: 30px auto;
        padding: 0 15px;
    }

    #txtBuscar {
        padding: 15px 20px;
        font-size: 15px;
    }

    /* PRODUCTOS */

    .productos {
        margin: 50px auto;
        padding: 0 15px;
    }

    #listaProductos {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* DESPLEGABLE PESOS */

    .selector-peso {
        gap: 6px;
        margin: 12px 0 10px;
    }

    .titulo-peso {
        font-size: .8rem;
    }

    .select-peso {
        min-height: 44px;
        padding-left: 13px;
        padding-right: 38px;
        font-size: .92rem;
    }

    /* CARRITO LATERAL */

    #panelCarrito {
        width: 100%;
        right: -100%;
    }

    #contenidoCarrito {
        padding: 15px;
    }

    .item-carrito {
        gap: 12px;
        padding: 14px;
    }

    .item-carrito img {
        width: 75px;
        height: 75px;
    }

    .info-item h4 {
        font-size: 15px;
    }

    /* DATOS */

    .datos-fila {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* MODAL */

    .modal-contenido {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .detalle-producto {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detalle-producto-imagen {
        max-height: 280px;
    }

    /* PAGINA CARRITO */

    .pagina-carrito {
        padding: 30px 12px 60px;
    }

    .titulo-pagina {
        gap: 12px;
        margin-bottom: 25px;
    }

    .titulo-pagina h1 {
        font-size: 27px;
    }

    .titulo-pagina > span {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .seccion-datos {
        padding: 20px 15px;
    }

    .formulario-pedido {
        grid-template-columns: 1fr;
    }

    .campo-ancho {
        grid-column: auto;
    }

    .aviso-envio-grande {
        padding: 13px;
    }

    /* CONTACTO */

    .contacto {
        padding: 70px 18px;
    }

    .contacto-titulo {
        margin-bottom: 35px;
    }

    .contacto-card {
        padding: 20px;
    }

    .horario {
        padding: 22px 18px;
    }

    .horario-linea {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* =========================================================
   MOVIL PEQUEÑO
========================================================= */

@media (max-width: 420px) {

    .header nav ul {
        gap: 7px;
    }

    .header nav a {
        font-size: 11px;
    }

    .logo img {
        height: 48px;
    }

    .btn-carrito {
        width: 44px;
        height: 44px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .contacto-card {
        gap: 12px;
    }

    .contacto-icono {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ======================================================
   DESCRIPCIÓN DETALLADA DEL PRODUCTO
====================================================== */

.detalle-producto-descripcion {
    margin-bottom: 1;
}

.detalle-producto-descripcion-detallada {
    white-space: pre-line;
    line-height: 1.6;
    margin-top: 0;
}


.marca-producto {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
