/* =========================================================
   David Alegria — tema de la tienda (capa de cliente)
   Mismo aspecto que la tienda anterior del WordPress (tema ddaa_2020):
   Libre Franklin, tinta #424242, amarillo al pasar por encima y botones verdes.
   ========================================================= */

/* Libre Franklin (SIL OFL 1.1, ver fonts/OFL.txt), servida desde la tienda */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/libre-franklin-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/libre-franklin-latin-600-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/libre-franklin-latin-ext-600-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/libre-franklin-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/libre-franklin-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/libre-franklin-latin-800-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/libre-franklin-latin-ext-800-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
    --da-tinta:    #424242;
    --da-gris:     #999;
    --da-claro:    #eee;
    --da-amarillo: yellow;
    --da-verde:    #78b657;   /* botón de compra de la tienda anterior */
    --da-verde-2:  #5f9d3e;   /* su hover */
}

/* ---------- General ---------- */
body.tienda {
    --bs-body-font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-body-font-weight: 600;
    --bs-body-color: var(--da-tinta);
    --bs-link-color-rgb: 66, 66, 66;
    --bs-link-hover-color-rgb: 66, 66, 66;
    --bs-success: #78b657;              /* avisos de confirmación con el verde de los botones */
    --bs-success-rgb: 120, 182, 87;
    font-family: var(--bs-body-font-family);
    font-weight: 600;
    color: var(--da-tinta);
}
body.tienda a { color: var(--da-tinta); text-decoration: underline; }
body.tienda a:hover, body.tienda a:focus { color: var(--da-tinta); text-decoration: none; }
body.tienda h1, body.tienda h2, body.tienda h3, body.tienda h4, body.tienda h5, body.tienda h6,
body.tienda .h1, body.tienda .h2, body.tienda .h3, body.tienda .h4, body.tienda .h5, body.tienda .h6 { font-weight: 600; line-height: 1.2; color: inherit; margin-bottom: 1rem; }
body.tienda h1, body.tienda .h1 { font-size: 1.8rem; }
body.tienda h3, body.tienda .h3 { font-size: 1.3rem; }
body.tienda h4, body.tienda .h4 { font-size: 1.1rem; }
body.tienda b, body.tienda strong, body.tienda th, body.tienda .fw-bold { font-weight: 800; }
body.tienda .form-control, body.tienda .form-select { font-weight: 600; }
.ico { display: inline-block; height: 1em; width: auto; vertical-align: -.125em; overflow: visible; }
.w, .w a { color: #fff; }
.k { color: var(--da-tinta); }

/* Páginas sin imagen a sangre (bolsa, checkout, cuenta, textos): hueco para los iconos fijos */
body.tienda.con-margen main { padding-top: 90px; }

/* ---------- Iconos fijos: símbolo DA, bolsa y hamburguesa ---------- */
/* Símbolo DA como en la web: 40 px, abajo a la derecha en el móvil y arriba a la izquierda desde 768 px */
.da-icono { position: fixed; bottom: 20px; right: 20px; z-index: 115; line-height: 0; }
.da-icono img { width: 40px; height: 40px; }

/* Bolsa: pastilla fija en el lateral derecho, solo cuando tiene algo (como en AyG) */
body.tienda .bolsa-flotante {
    position: fixed; top: 50%; right: 0; z-index: 111; transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .8rem .9rem;
    background: var(--da-verde); color: #fff; text-decoration: none; font-size: 1.4rem; line-height: 1;
    border-radius: .375rem 0 0 .375rem;
}
body.tienda .bolsa-flotante:hover, body.tienda .bolsa-flotante:focus { background: var(--da-verde-2); color: #fff; }
.bolsa-flotante__contador { font-size: 1rem; }

.hamburguer { z-index: 115; position: fixed; top: 25px; right: 15px; width: 30px; height: 25px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; transition: .5s ease-in-out; }
.hamburguer span { display: block; position: absolute; height: 3px; width: 100%; background: var(--da-gris); opacity: 1; left: 0; transition: .25s ease-in-out; transform-origin: left center; }
.hamburguer span:nth-child(1) { top: 0; }
.hamburguer span:nth-child(2) { top: 10px; }
.hamburguer span:nth-child(3) { top: 20px; }
.hamburguer:hover span { background: var(--da-amarillo); }
.hamburguer.open span:nth-child(1) { background: var(--da-claro); transform: rotate(45deg); top: -3px; left: 5px; }
.hamburguer.open span:nth-child(2) { width: 0; opacity: 0; }
.hamburguer.open span:nth-child(3) { background: var(--da-claro); transform: rotate(-45deg); top: 18px; left: 5px; }

/* ---------- Menú a pantalla completa ---------- */
.header {
    margin: 0; padding: 70px 0 15px 0; position: fixed; inset: 0; z-index: 112;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background-color: rgba(0, 0, 0, .85);
    display: none; overflow-y: auto;
}
.header.abierto { display: block; animation: menu-entra .2s ease-out; }
@keyframes menu-entra { from { opacity: 0; } to { opacity: 1; } }
body.tienda .header a { text-decoration: none; color: var(--da-claro); }
body.tienda .header a:hover, body.tienda .header a.actual { color: var(--da-amarillo); }

.menu-idiomas { position: absolute; right: 60px; top: 21px; margin: 0; }
.menu-idiomas a { padding: 5px; font-size: 1rem; }

/* Tienda (pequeño, arriba) · productos y colecciones (grandes) · resto del sitio (pequeño, abajo) */
.menu-tienda, .menu-grande, .menu-web, .menu-pie { list-style: none; padding: 0; margin: 0 0 0 20px; position: relative; z-index: 15; }
.menu-tienda { margin-bottom: 4px; }
.menu-tienda a { text-transform: uppercase; }
.menu-grande { margin-bottom: 20px; }
.menu-grande a { font-size: 2rem; line-height: 100%; }
.menu-web { margin-bottom: 20px; }
.menu-pagos { margin: 30px 0 15px 20px; font-size: 2em; color: var(--da-gris); display: flex; gap: .3em; }
.menu-pie li { display: block; }
.menu-pie button { background: none; border: 0; padding: 0; color: var(--da-claro); font: inherit; cursor: pointer; }
.menu-pie button:hover { color: var(--da-amarillo); }
.menu-firma { display: none; }

/* ---------- Botones ---------- */
.btn-tienda,
.btn-tienda-linea,
body.tienda .btn-success {
    display: inline-block; border: 1px solid var(--da-verde); border-radius: .25rem;
    padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; font-weight: 600; text-align: center; text-transform: uppercase;
    text-decoration: none !important; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-tienda, body.tienda .btn-success { background: var(--da-verde); color: #fff !important; }
.btn-tienda:hover, body.tienda .btn-success:hover { background: var(--da-verde-2); border-color: var(--da-verde-2); color: #fff; }
.btn-tienda:disabled, .btn-tienda.disabled { opacity: .6; cursor: not-allowed; }
.btn-tienda-linea { background: transparent; color: var(--da-verde-2) !important; }
.btn-tienda-linea:hover { background: var(--da-verde); color: #fff !important; }
.btn-tienda--sm { padding: .25rem .5rem; font-size: .875rem; }
body.tienda .btn-sm.btn-success { padding: .25rem .5rem; font-size: .875rem; }
.fw-heavy { font-weight: 800; }

/* ---------- Portada: banners ---------- */
.shop-row { margin: 8px; }
.home-shop { position: relative; padding: 0; }
.banner_picture_shop { background-size: cover; background-position: center center; position: relative; height: 50vh; min-height: 320px; border: solid #fff 8px; }
.banner_texts { position: absolute; left: 30px; max-width: 220px; bottom: 30px; text-align: left; }
body.tienda .banner_texts h2 { font-size: 1.4rem; margin-bottom: 0; }
body.tienda .banner_texts h2.w { color: #fff; }
body.tienda .banner_texts h2.k { color: var(--da-tinta); }
.banner_texts .btn { margin-top: 1rem; }
.portada-aviso h4 { font-size: 1.4rem; margin: 0; }

/* ---------- Colección (categoría) ---------- */
.banner-top-collection { position: relative; background-size: cover; background-repeat: no-repeat; background-position: center top; min-height: 550px; height: 50vh; }
body.tienda .title_section { font-size: 2.8rem; font-weight: 800; text-transform: uppercase; position: absolute; bottom: 20px; left: 0; right: 0; }
.heading_long { margin: 20px 60px 50px 0; min-height: 50px; text-align: left; }
.heading_long p { max-width: 600px; margin: auto; }
.img_product { margin-bottom: 15px; position: relative; }
.img_product img { width: 100%; height: auto; }

/* ---------- Ficha ---------- */
.product-container { position: relative; margin-bottom: 50px; padding-top: 60px; }
.ficha-slider { position: relative; margin-top: 15px; }
.ficha-slider__pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ficha-slider__pista::-webkit-scrollbar { display: none; }
.ficha-slide { flex: 0 0 100%; scroll-snap-align: start; }
.ficha-slide img { display: block; width: 100%; height: auto; }
.pro_image_nav {
    position: absolute; top: 25px; left: 25px; z-index: 5; display: inline-flex; align-items: center; gap: .6rem;
    padding: .3em .8em; border-radius: 50rem; background-color: rgba(0, 0, 0, .4); color: var(--da-claro); font-size: .85rem;
}
.pro_image_nav[hidden] { display: none; }
.pro_image_nav button { background: none; border: 0; padding: 0; color: var(--da-claro); line-height: 1; cursor: pointer; }
.pro_image_nav button:hover { color: var(--da-amarillo); }
.pro_image_nav button:disabled { opacity: .35; cursor: default; }
.single_product { position: relative; margin: 40px 0 20px 0; }
.single_product h1 { margin-bottom: .75rem; }
.single_product__texto p { margin-bottom: .75rem; }
.single_product__guia { font-size: .875rem; }
.ficha-precio { font-size: 1.1rem; margin: 1rem 0; }
.ficha-precio__desde { font-size: .85rem; font-style: italic; }
.ficha-compra .form-label { font-size: .875rem; margin-bottom: .2rem; }
.ficha-compra .form-select { font-size: .9rem; }
.ficha-compra .btn-tienda { width: 100%; margin-top: .5rem; font-size: .9rem; }
.ficha-aviso { font-size: .85rem; min-height: 1.3em; }
.related_content { margin: 20px 0; width: 100%; padding: 10px 0 60px 0; text-align: center; border-top: 1px solid #aaa; }
.related_content .relacionados { display: inline-block; margin: 0 0 3rem; }
.related_content .relacionados .ico { font-size: 1.4rem; }

/* Guías de tallas y tamaños */
.da-modal-lg .modal-title { margin: 0; }

/* ---------- Fichas especiales (Alex, cartel) ---------- */
body.tienda h1.big { font-size: 2.8rem; font-weight: 800; }
/* Arriba en el centro, como en la web (más abajo desde 768px, a la altura de la hamburguesa) */
.free_product_buy { position: fixed; left: 50%; top: 18px; z-index: 109; transform: translateX(-50%); }
.free_product_buy .btn-tienda { white-space: nowrap; }
.alex-video { position: relative; height: 75vh; background: #b02c20; overflow: hidden; }
.alex-video video { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; object-fit: cover; }
.alex-rosa { color: #ff00ff; }
.sf-rojo { color: #fff; background-color: #b02c20; }
.sf-kiliki { background: #b02c20 url("sf/kiliki.png") no-repeat center bottom / contain; height: 60vh; }

/* ---------- Páginas de texto ---------- */
.contenido h4 { margin-top: .5rem; }
.contenido .table { font-size: .95rem; }

/* ---------- Páginas del motor (bolsa, checkout, cuenta) ---------- */
/* Bolsa: cada línea con foto y nombre arriba y precio, cantidad y total debajo (sin tabla) */
.bolsa-lineas { margin: 0 0 1.5rem; padding: 0; list-style: none; border-top: 1px solid var(--bs-border-color); }
.bolsa-linea { padding: .9rem 0; border-bottom: 1px solid var(--bs-border-color); }
.bolsa-linea__cabecera { display: flex; align-items: center; gap: 15px; }
.bolsa-linea__cabecera img { flex: none; width: 60px; height: 60px; object-fit: cover; }
.bolsa-linea__nombre { flex: 1 1 auto; min-width: 0; }
.bolsa-linea__detalle { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0 0 75px; }
.bolsa-linea__total { margin-left: auto; }
.bolsa-cantidad { width: 3.6rem; }
body.tienda .accordion {
    --bs-accordion-active-color: var(--da-tinta);
    --bs-accordion-active-bg: #f3f3f3;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(120, 182, 87, .35);
}
.nav-tabs .nav-link { color: var(--da-gris); text-decoration: none !important; }
.nav-tabs .nav-link.active { color: var(--da-tinta); }

/* ---------- Aviso de cookies (esquina inferior izquierda) ---------- */
.aviso-cookies {
    position: fixed; left: 16px; bottom: 16px; z-index: 1090; width: 340px; max-width: calc(100% - 32px); padding: 1.25rem;
    color: var(--da-claro); background: rgba(0, 0, 0, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.aviso-cookies[hidden] { display: none; }
body.tienda .aviso-cookies a { color: var(--da-claro); }
body.tienda .aviso-cookies a:hover { color: var(--da-amarillo); }
.aviso-cookies__texto { font-size: .9rem; line-height: 1.5; margin-bottom: 1rem; }
.aviso-cookies__botones { display: flex; gap: .5rem; }
.aviso-cookies__botones > * { flex: 1 1 0; }
.aviso-cookies .btn-tienda-linea { color: var(--da-claro) !important; border-color: var(--da-claro); }

/* ---------- Pantallas medianas y grandes (mismos cortes que el tema de la web) ---------- */
@media (min-width: 576px) and (orientation: landscape) {
    .menu-pie li { display: inline; padding: 0 10px 0 0; }
}
@media (min-width: 768px) {
    .da-icono { top: 35px; left: 40px; bottom: auto; right: auto; }
    .hamburguer { top: 42px; right: 40px; }
    .menu-idiomas { right: 90px; top: 39px; }
    .header { padding: 100px 0 30px; }
    .menu-tienda, .menu-grande, .menu-web, .menu-pie { margin-left: 40px; }
    .menu-pagos { margin-left: 40px; font-size: 2.5em; }
    .menu-grande a { font-size: 3rem; }
    .menu-pie li { display: inline; padding: 0 10px 0 0; }
    .heading_long { text-align: center; margin: 35px auto 50px auto; }
    .product-container { padding-top: 0; }
    .single_product, .ficha-slider { margin-top: 40px; }
    .pro_image_nav { top: 45px; }
    .free_product_buy { top: 35px; }
    body.tienda.con-margen main { padding-top: 110px; }
}
@media (min-width: 768px) and (min-height: 700px) {
    .menu-pagos { position: fixed; left: 0; bottom: 60px; margin-bottom: 0; }
    .menu-pie { position: fixed; left: 0; bottom: 30px; }
    .header { padding-bottom: 150px; }
}
@media (min-width: 992px) {
    .menu-firma { display: block; position: fixed; right: 30px; bottom: 25px; width: 220px; }
    .menu-firma img { width: 100%; height: auto; }
    .related_content { margin: 40px 0; }
    body.tienda h1.title_section, body.tienda h1.big { font-size: 4rem; }
}
@media (min-width: 1200px) {
    .menu-grande a { font-size: 5rem; }
    .menu-firma { width: 240px; right: 35px; bottom: 30px; }
    body.tienda h1.title_section, body.tienda h1.big { font-size: 5rem; }
    body.tienda h3, body.tienda .h3 { font-size: 1.65rem; }
}
