/* =========================
----     PALETA         ----
============================*/
:root {
--fuenteHeading: 'PT Sans', sans-serif;
--fuenteParrafo:'Open Sans', sans-serif;

--primario: #a7977d;    
--blanco: #ffffff;
--negro: #000000;
}


/* =========================
----  GENERAL ---- 
============================*/

html {
box-sizing: border-box; 
font-size: 62.5%; 
max-width: 100%;
}

*, *:before, *:after { 
box-sizing: inherit;
}

body {
font-family: var(--fuenteParrafo);
font-size: 1.6rem; 
line-height: 2;   

padding: 0;
max-width: 100%;
margin: auto;

}


a {
text-decoration: none;
color: var(--negro) 
}

/* =========================
----     TITULOS       ----
============================*/

h1,h2,h3,h4 {
font-family: var(--fuenteHeading);
line-height: 1.2;
}

h1 {
font-size: 4.8rem;
}

h2 {
font-size: 4rem;
}

h3 {
font-size: 3.2rem;
}

h4 {
font-size: 2.8rem;
}

/* =========================
----    IMAGEN     ----
============================*/

img {
max-width: 100%; 
}

/* =========================
----    CONTENEDOR  NAV   ----
============================*/

.contenedor {
max-width: 170rem;
width: 95%;
margin: 0 auto;
}


/* =========================
----      HEADER ----
============================*/

.header{
background-color: #f8f1eb;
padding: 1.5rem 0;
background-size: cover;
background-repeat: no-repeat;
background-position: center center; 
}


/* =========================
---- BARRA DE NAVEGACIÓN ----
============================*/

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


/* =========================
----       LOGO         ----
============================*/

.logo{
display: flex;
align-items: center;
flex-shrink: 0; 
}

.logo__imagen{
width: 130px;
height: auto;
}

/* =========================
---- NAVEGACIÓN ----
============================*/

.navegacion{
display: flex;
align-items: center;
gap: 3rem;
margin-left: 5rem;
}

.navegacion__enlace{
color: #6b5a42;
font-size: 1.8rem;
transition: color 0.2s ease;
}

.navegacion__enlace:hover{
color: #3d3226;
}

/* =========================
----     DESPLEGABLE      ----
============================*/

.dropdown{
    position: relative;
}

.submenu{
    position: absolute;
    top: 100%;
    left: 0;

    display: none;
    flex-direction: column;

    min-width: 180px;
    background-color: #ffffff;

    box-shadow: 0 8px 20px rgba(0,0,0,.12);

    border-radius: 5px;
    overflow: hidden;

    z-index: 1000;
}

.submenu__enlace{
    padding: 1.2rem 1.8rem;
    color: #6b5a42;
    white-space: nowrap;    
}

.submenu__enlace:hover{
    background-color: #f5f5f5;
}

.dropdown:hover .submenu{
    display: flex;
}

/* =========================
----       ICONOS         ----
============================*/

.iconos{
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.icono-link{
    color: #333; 
    display: flex;
    transition: color 0.2s ease, transform 0.2s ease;
}

.icono-link:hover{
    color: #000; 
    transform: translateY(-2px);
}

.iconos svg{
    width: 28px;
    height: 28px;
}
/* =========================
----       BUSCADOR        ----
============================*/

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

/* El botón de la lupita reutiliza .icono-link, 
   pero le sacamos los estilos por defecto de <button> */
.buscador .icono-link{
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.buscador__form{
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.35s ease, margin 0.35s ease;
}

.buscador__form.activo{
    max-width: 320px;
    margin-right: 10px;
}

.buscador__input{
    width: 320px;
    padding: 8px 14px;
    border: 1px solid #333;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    background: white;
}

.buscador__input::placeholder{
    color: #333;
    opacity: 0.6;
}

.buscador__resultados{
    position: absolute;
    top: 100%;
    left: 0;
    width: 380px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 20;
}

.buscador__resultados.activo{
    display: block;
}

.buscador__item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.buscador__item:hover{
    background: #f9f5f2;
}

.buscador__item img{
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.buscador__item-texto{
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.buscador__item-texto span{
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buscador__item-texto small{
    color: #999;
    font-size: 12px;
}

.buscador__vacio{
    padding: 10px;
    color: #999;
    font-size: 13px;
}

/* =========================
----       BANNER         ----
============================*/

.banner {
position: relative;
width: 100%;
height: auto;
overflow: hidden;
margin-top: 20px;
}


.slide {
display: none;
position: relative;
width: 100%;
height: 100%;
}

.slide.active {
display: block;
}

.slide img {
width: 100%;
height: 100%;
object-fit: contain;
}

/* ========================================
----       BANNER TABLA DE TALLES   ----
=============================================*/

.banner .slide{
position: relative;
}

.banner-grid{
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
background: #fff;
padding: 8px;
}

.banner-block{
position: relative;
overflow: hidden;
aspect-ratio: 3 / 5;
}

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





/* =========================
---   CATEGORÍAS
========================= */

.categorias {
display: flex;
justify-content: center;
gap: 10px;
padding: 80px 5%;
background-color: #f2f2f2;
flex-wrap: wrap;
}

.categoria-card {
position: relative;
width: 360px;
}

.categoria-card img {
width: 100%;
height: 400px;
object-fit: contain;
display: block; 
}

.categoria-titulo {
position: absolute;
bottom: -25px;
left: 50%;
transform: translateX(-50%); 
background-color: #f3f1e6;
width: 85%;
padding: 25px 10px;
text-align: center;
}

.categoria-titulo h3 {
margin: 0;
font-size: 28px;
letter-spacing: 3px;
font-weight: bold;
}

/* =========================
---   BENEFICIOS
========================= */

.beneficios {
display: flex; 
justify-content: space-around; 
align-items: center;
padding: 50px 20px;
background-color: #f5f5f5;
text-align: center;
flex-wrap: wrap;
gap: 30px;
}

.beneficio {
max-width: 450px;
background-color: #fdf6f0; 
border-left: 5px solid #b89b72; 
border-radius: 12px;
padding: 25px 35px;
text-align: left;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.beneficio:hover {
transform: translateY(-3px); /* esto es para elevar la tarjeta al pasar el mouse por encima */
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); /* esto es para agregar una sombra más intensa al pasar el mouse por encima */
}

.beneficio h3 {
font-size: 22px;
font-weight: 700;
margin-bottom: 10px; 
text-transform: uppercase; 
}

.beneficio p {
font-size: 16px;
color: #444;
}


/* =========================
---   FOOTER
========================= */

.footer {
background-color: #111;
color: #fff;
padding-top: 4rem;

}

.footer-contenedor {
width: 100%;
padding: 0 5rem;

display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 3rem;
}

.footer-columna h3 {
margin-bottom: 1.5rem;
font-size: 1.8rem;
}

.footer-logo {
width: 70px;
height: auto;
margin-bottom: 1rem;
filter: invert(1); /** el logo es negro, esto lo pinta blanco para que se vea sobre el fondo oscuro **/
}

.footer-columna p, /** párrafos **/
.footer-columna a, /** enlaces **/
.footer-columna li { /** elementos de lista **/
color: #ccc;
line-height: 1.8; 
text-decoration: none; 
list-style: none; 
}

.footer-columna ul {
padding: 0; 
}

.footer-columna a:hover {
color: #fff; 
}

.redes {
display: flex;
flex-direction: column;
gap: 1rem;
}

.footer-copy {
display: flex;
align-items: center;
justify-content: center;
gap: 1.2rem;
text-align: center;
padding: 2rem;
margin-top: 3rem;
border-top: 1px solid #333; /** linea para separar el footer del contenido **/
color: #999;
}

.footer-logo-mini {
width: 32px;
height: auto;
filter: invert(1);
}


/* =========================
---   MEDIAS QUERIES
========================= */

@media (max-width:768px){

.barra{
    flex-direction: column;
    gap: 1rem;
}

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

.iconos{
    margin-left:0;
    width:auto;
}

.banner{
    height:1050px;
}



.categoria-card{
    width:100%;
    max-width:350px;
}

.beneficios{
    flex-direction:column;
}
}


@media (max-width: 640px){
.banner-grid{
    grid-template-columns: 1fr;
}
.banner-block{
    aspect-ratio: 4 / 5;
}
}


/* =========================
---   GRILLA DE CATALOGO
========================= */

.catalogo-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 2.4rem;
padding: 2rem 5% 8rem;
background-color: #f2f2f2;
align-items: start;
}

/* =========================
---   TARJETA DE PRODUCTO
========================= */

.producto-card {
position: relative;
background-color: var(--blanco);
display: flex;
flex-direction: column;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.producto-card__imagen-wrap {
position: relative;
overflow: hidden;
aspect-ratio: 3 / 4;
background-color: #f3f1e6;
}

.producto-card__imagen-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.producto-card__info {
background-color: #f8f1eb;
padding: 1.8rem 1.6rem 1.8rem;  /* antes: 1.8rem 1.6rem 2.2rem */
text-align: center;    
display: flex;
flex-direction: column;
}

.producto-card__nombre {
font-family: var(--fuenteHeading);
font-size: 1.5rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #3d3226;
margin: 0 0 1rem;
min-height: 3.6rem;
}

.producto-card__precio-original {
font-size: 1.5rem;
color: #999;
text-decoration: line-through;
margin: 0;
}

.producto-card__descuento {
color: #b23b3b;
font-weight: 700;
font-size: 1.3rem;
margin-left: 0.6rem;
}

.producto-card__precio-lista {
font-size: 2.2rem;
font-weight: 700;
color: #3d3226;
margin: 0.4rem 0;
}




.producto-card__cuotas strong {
color: #3d3226;
}

.producto-card__boton {
margin-top: 1.6rem;  
background-color: var(--negro);
color: var(--blanco);
border: none;
padding: 1.3rem;
font-size: 1.3rem;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
cursor: pointer;
transition: background-color 0.2s ease;
}

.producto-card__boton:hover {
background-color: var(--primario);
}

/* =========================
---   ETIQUETA DE OFERTA
========================= */

.producto-card__etiqueta {
position: absolute;
top: 1.2rem;
right: 1.2rem; 
width: 7rem;
height: 7rem;
border-radius: 50%;
background-color: #b23b3b;
color: var(--blanco);
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-size: 1.1rem;
font-weight: 700;
line-height: 1.2;
text-transform: uppercase;
letter-spacing: 0.5px;
transform: rotate(-8deg);
z-index: 2;
}

/* =========================
---   MEDIA QUERIES CATALOGO
========================= */

@media (max-width: 992px) {
.catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 480px) {
.catalogo-grid {
    grid-template-columns: 1fr;
}
}

/* =========================
---   SOBRE NOSOTROS
========================= */

.sobre-nosotros {
padding: 8rem 5%;
background-color: var(--blanco);
}

.sobre-nosotros__titulo {
text-align: center;
letter-spacing: 2px;
color: #3d3226;
margin: 0 0 5rem;
}

.sobre-nosotros__contenido {
display: flex;
align-items: flex-start;
gap: 5rem;
max-width: 150rem;
margin: 0 auto;
flex-wrap: wrap;
}

.sobre-nosotros__imagen {
    flex: 2 1 55rem;      /* antes: flex: 1 1 40rem; → toma casi todo el espacio extra */
    max-width: 85rem;     /* antes: max-width: 55rem; */
}

.sobre-nosotros__imagen img {
width: 100%;
height: 48rem;
object-fit: cover;
display: block;
border-radius: 4px;
}

.sobre-nosotros__texto {
    flex: 1 1 40rem;      /* se mantiene igual, no se achica */
    max-width: 45rem;     /* fija su ancho para que no crezca ni se achique */
}

.sobre-nosotros__texto p {
color: #4a4a4a;
margin-bottom: 2.4rem;
}

.sobre-nosotros__texto p:last-child {
margin-bottom: 0;
}

.sobre-nosotros__firma {
display: inline-block;
margin-top: 1rem;
font-family: var(--fuenteHeading);
color: var(--primario);
font-weight: 700;
letter-spacing: 1px;
}

@media (max-width: 768px) {
.sobre-nosotros {
    padding: 5rem 5%;
}

.sobre-nosotros__contenido {
    flex-direction: column;
}

.sobre-nosotros__imagen {
    max-width: 100%;
}

.sobre-nosotros__imagen img {
    height: 36rem;
}
}

.sobre-nosotros__carrusel {
    position: relative;
    width: 100%;
    height: 60rem;
    border-radius: 4px;
    overflow: hidden;
}

.carrusel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carrusel-slide.active {
    display: block;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carrusel-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.8);
    border: none;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d3226;
    transition: background-color 0.2s ease;
}

.carrusel-flecha:hover {
    background-color: #fff;
}

.carrusel-flecha--prev { left: 1.2rem; }
.carrusel-flecha--next { right: 1.2rem; }

.carrusel-puntos {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.carrusel-punto {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    cursor: pointer;
    border: none;
    padding: 0;
}

.carrusel-punto.active {
    background-color: #fff;
}

.carrusel-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ========================================
---   PERSONALIZADOS
========================================= */

.am-personalizados {
    background-color: #f8f1eb;
    padding: 8rem 5%;
}

.am-personalizados__contenedor {
    max-width: 140rem;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 6rem;
    flex-wrap: wrap;
}

/* ---- Columna de texto ---- */

.am-personalizados__info {
    flex: 1 1 40rem;
    max-width: 55rem;
}


.am-personalizados__titulo {
    font-family: var(--fuenteHeading);
    font-size: 4.6rem;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 2rem;
    color: #3d3226;
}

.am-personalizados__titulo span {
    background: linear-gradient(90deg, var(--primario-oscuro), var(--primario) 60%, var(--primario-claro));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.am-personalizados__descripcion {
    font-size: 1.7rem;
    line-height: 1.7;
    color: #6b5a42;
    margin: 0 0 3.2rem;
}


/* ---- imagenes  ---- */

.am-personalizados__grilla {
    flex: 1 1 40rem;
    display: grid;                    /* antes: flex */
    grid-template-columns: 1fr 1fr;   /* nuevo */
    grid-template-rows: 1fr 1fr;      /* nuevo */
    gap: 1.6rem;                      /* se mantiene tu valor */
}

.am-personalizados__columna {
    display: contents;   /* antes: flex: 1; display: flex; flex-direction: column; gap: 1.6rem; */
}


.am-personalizados__item {
    background-color: #f3f1e6;
    border-radius: 12px;
    overflow: hidden;
}

.am-personalizados__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.am-personalizados__item {
    aspect-ratio: 4 / 5;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .am-personalizados__contenedor { flex-direction: column; }
    .am-personalizados__titulo { font-size: 3.6rem; }
    .am-personalizados__grilla { width: 100%; }
}


/* ---- Formulario de Contacto ---- */

.am-personalizados__subtitulo {
    font-family: var(--fuenteHeading);
    font-size: 2.4rem;
    color: #3d3226;
    margin: 3.6rem 0 1.6rem;
}
    
.formulario--columna {
    max-width: 45rem;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
    
.campo {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
    
.campo__label {
    font-family: var(--fuenteHeading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #3d3226;
}
    
.campo__field {
    font-family: var(--fuenteParrafo);
    font-size: 1.5rem;
    color: #3d3226;
    background-color: var(--blanco);
    border: 1px solid #d8cfc2;
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
    
.campo__field::placeholder {
    color: #a99e8c;
}
    
.campo__field:focus {
    outline: none;
    border-color: var(--primario);
    box-shadow: 0 0 0 3px rgba(167, 151, 125, 0.2);
}
    
.campo__field--textarea {
    resize: vertical;
    min-height: 16rem;
    font-family: var(--fuenteParrafo);
}
    
.formulario--columna .boton {
    align-self: flex-start;
    font-family: var(--fuenteParrafo);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    padding: 1.4rem 3.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
    
.boton--primario {
    background-color: var(--negro);
    color: var(--blanco);
}
    
.boton--primario:hover {
    background-color: var(--primario);
    transform: translateY(-2px);
}

.mensaje-exito {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.mensaje-exito.activo {
    display: flex;
}

.mensaje-exito__caja {
    background-color: var(--blanco);
    padding: 3rem 4rem;
    border-radius: 8px;
    text-align: center;
    max-width: 40rem;
}

.mensaje-exito__texto {
    font-family: var(--fuenteHeading);
    font-size: 1.8rem;
    color: #3d3226;
    margin: 0 0 2rem;
}

.mensaje-exito__cerrar {
    background-color: var(--negro);
    color: var(--blanco);
    border: none;
    padding: 1.1rem 2.4rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mensaje-exito__cerrar:hover {
    background-color: var(--primario);
}
    
@media (max-width: 640px) {
    .formulario--columna {
        max-width: 100%;
    }
    
    .formulario--columna .boton {
        align-self: stretch;
        text-align: center;
    }
}

/* =========================
---   ENVÍOS ------------
========================= */


.envios-contenido {
    max-width: 90rem;
    margin: 0 auto;
    padding: 4rem 5% 10rem;
    text-align: center;
}
    
.envios-bloque {
    margin-bottom: 6rem;
}
    
.envios-bloque:last-child {
    margin-bottom: 0;
}
    
.envios-bloque__titulo {
    font-family: var(--fuenteHeading);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #3d3226;
    margin: 0 0 1rem;
}
    
.envios-bloque__texto {
    font-size: 1.5rem;
    color: #6b5a42;
    margin: 0 0 0.6rem;
}
    
.envios-bloque__nota {
    font-size: 1.5rem;
    color: var(--primario);
    font-weight: 700;
    margin: 1.6rem 0 0;
}
    
@media (max-width: 768px) {
    .envios-bloque__titulo {
        font-size: 2.1rem;
    }
}
/* =========================
---   CONTACTO --------
========================= */
    
.contacto {
    padding: 6rem 5% 10rem;
    background-color: var(--blanco);
}
    
.contacto__contenedor {
    max-width: 140rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(20rem, 26rem) minmax(30rem, 70rem);
    align-items: start;
    gap: 3rem;
}
    
.contacto__info {
    padding-top: 0.5rem;
}
    
.contacto__titulo {
    letter-spacing: 2px;
    color: #3d3226;
    margin: 0 0 3rem;
}
    
.contacto__datos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
    
.contacto__datos li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    font-size: 1.5rem;
    color: #6b5a42;
}
    
.contacto__datos a {
    color: #6b5a42;
    transition: color 0.2s ease;
}
    
.contacto__datos a:hover {
    color: #3d3226;
}
    
.contacto__icono {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--primario);
}
    
.contacto__icono--whatsapp {
    color: #25d366;
}

.contacto__icono--correo {
    color: #0a0a0a;
}

.contacto__icono--provincias {
    color: #d31818;
}
    
.campo__requerido {
    color: #b23b3b;
}
    
.contacto__formulario .boton {
    align-self: stretch;
    text-align: center;
}
    
@media (max-width: 768px) {
    .contacto {
        padding: 4rem 5% 6rem;
    }
    
    .contacto__contenedor {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.2s ease;
    }
    
    .whatsapp-float:hover {
    transform: scale(1.08);
    }

/* ========================= 
            CARRITO
/*======================== */

.carrito-contador {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #b23b3b;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
}

.icono-link {
    position: relative;
}

.carrito-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1998;
}

.carrito-overlay.activo {
    display: block;
}

.carrito-drawer {
    position: fixed;
    top: 0;
    right: -44rem;
    width: 44rem;
    max-width: 90vw;
    height: 100vh;
    background-color: #fff;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.carrito-drawer.activo {
    right: 0;
}

.carrito-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.carrito-drawer__header h3 {
    font-family: var(--fuenteHeading);
    margin: 0;
    color: #3d3226;
}

.carrito-drawer__cerrar {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #3d3226;
}

.carrito-drawer__items {
    flex: 1;
    overflow-y: auto;
    padding: 1.6rem 2rem;
}

.carrito-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.carrito-item img {
    width: 8.6rem;
    height: 10.8rem;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.carrito-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.carrito-item__nombre {
    font-family: var(--fuenteHeading);
    font-size: 1.7rem;
    color: #3d3226;
    margin: 0;
}

.carrito-item__precio {
    font-size: 1.6rem;
    font-weight: 700;
    color: #3d3226;
}

.carrito-item__cantidad {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.carrito-item__cantidad button {
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid #d8cfc2;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.carrito-item__eliminar {
    background: none;
    border: none;
    color: #b23b3b;
    font-size: 1.4rem;
    cursor: pointer;
    text-decoration: underline;
    align-self: flex-start;
    margin-top: 0.4rem;
}

.carrito-drawer__vacio {
    text-align: center;
    color: #999;
    padding: 4rem 0;
}

.carrito-drawer__footer {
    padding: 2rem;
    border-top: 1px solid #eee;
}

.carrito-drawer__total {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    font-weight: 700;
    color: #3d3226;
    margin-bottom: 1.8rem;
}

.carrito-drawer__finalizar {
    width: 100%;
    padding: 1.6rem;
    font-size: 1.7rem;
}

@media (max-width: 480px) {
    .carrito-drawer {
        width: 100%;
        max-width: 100vw;
    }
}

/* ============================================================
   ACCESO (login / registro de clientes)
   ============================================================ */
.acceso {
    display: flex;
    justify-content: center;
    padding: 6rem 2rem;
    background-color: #f8f1eb;
    min-height: 60vh;
}

.acceso__caja {
    width: 100%;
    max-width: 44rem;
    background-color: var(--blanco);
    border: 1px solid #e5dccb;
    border-radius: 10px;
    padding: 3.6rem 3.2rem;
}

.acceso__tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2.8rem;
    border-bottom: 1px solid #e5dccb;
}

.acceso__tab {
    flex: 1;
    background: none;
    border: none;
    padding: 1.2rem 0.5rem;
    font-family: var(--fuenteHeading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #a99e8c;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.acceso__tab--activo {
    color: #3d3226;
    border-bottom-color: var(--primario);
}

.acceso__form--oculto {
    display: none;
}

.acceso__error {
    color: #b23b3b;
    font-size: 1.4rem;
    margin: -1.2rem 0 1.6rem;
    min-height: 1.4rem;
}

/* Mini menú del ícono "Mi cuenta" cuando hay sesión iniciada */
.cuenta-menu {
    position: absolute;
    top: 3.2rem;
    right: 0;
    background-color: var(--blanco);
    border: 1px solid #e5dccb;
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    min-width: 20rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 50;
}

.cuenta-menu__saludo {
    font-size: 1.3rem;
    color: #3d3226;
    margin-bottom: 1rem;
}

.cuenta-menu__cerrar-sesion {
    width: 100%;
    background-color: var(--negro);
    color: var(--blanco);
    border: none;
    border-radius: 6px;
    padding: 0.9rem;
    font-size: 1.3rem;
    cursor: pointer;
}

.cuenta-menu__cerrar-sesion:hover {
    background-color: var(--primario);
}

/* Estados del catálogo dinámico (productos.js) */
.catalogo-grid__cargando,
.catalogo-grid__vacio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: #6b5a42;
    font-size: 1.5rem;
}

/* ===== CHECKOUT — modal de datos y confirmación ===== */
 
.checkout-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
 
.checkout-overlay.activo {
  display: flex;
}
 
.checkout-modal {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
 
.checkout-modal h3 {
  margin-top: 0;
}
 
.checkout-modal__cerrar {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}
 
.checkout-campo {
  margin-bottom: 14px;
}
 
.checkout-campo label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #333;
}
 
.checkout-campo input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}
 
.checkout-error {
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
 
.checkout-campo--invalido input {
  border-color: #c0392b;
}
 
.checkout-campo--invalido .checkout-error {
  display: block;
}
 
.checkout-modal--confirmacion {
  text-align: center;
}
 
.checkout-confirmacion__icono {
  font-size: 48px;
  margin-bottom: 8px;
}

/* =========================
---   CÓMO COMPRAR --------
========================= */

.como-comprar-contenido {
    max-width: 90rem;
    margin: 0 auto;
    padding: 5rem 5% 8rem;
}

.como-comprar__titulo-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 4rem 0 2.4rem;
}

.como-comprar__titulo-wrap:first-child {
    margin-top: 0;
}

.como-comprar__titulo-wrap::before,
.como-comprar__titulo-wrap::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #d8cfc2;
}

.como-comprar__titulo {
    font-family: var(--fuenteHeading);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #3d3226;
    white-space: nowrap;
    margin: 0;
}

.como-comprar__intro {
    font-size: 1.6rem;
    color: #6b5a42;
    margin: 0 0 2rem;
}

.como-comprar__lista {
    margin: 0;
    padding-left: 2.4rem;
    color: #3d3226;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.como-comprar__lista li {
    font-size: 1.6rem;
    line-height: 1.6;
}

.como-comprar__lista strong {
    color: var(--primario);
}

.como-comprar__enlace {
    color: var(--primario);
    font-weight: 700;
    border-bottom: 1px solid var(--primario);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.como-comprar__enlace:hover {
    color: #3d3226;
    border-color: #3d3226;
}

@media (max-width: 768px) {
    .como-comprar__titulo {
        font-size: 2.1rem;
        white-space: normal;
        text-align: center;
    }

    .como-comprar__titulo-wrap {
        gap: 1.2rem;
    }
}