/* ============================================================================
   marca2026.css — La marca de Rodrigo: blancos y negros, el verde del LOGO (#00a64e) solo en detalles.
   ----------------------------------------------------------------------------
   Rodrigo (13/11/2026): «El fondo verde de la web no gusta, soy de blancos y negros y verde el del logo
   pero muy sutiles». «Ahí [arriba de la portada] fotos de la farmacia sobre fondo blanco, el logo siempre
   presente para hacer marca». «Ese fondo verde es muy típico».
   Se carga DESPUÉS de home2026.css y tienda2026.css y solo pisa colores: para volver al verde de antes,
   basta con quitar su <link> en templates/header.php.
   ========================================================================== */

:root {
    --ft-logo:       #00a64e;              /* el verde del recuadro «24H» del logo */
    --ft-green:      #111111;              /* botones y acentos: negro */
    --ft-green-dark: #00a64e;              /* al pasar el ratón: el verde del logo */
    --ft-green-deep: #111111;              /* bloques oscuros: negro */
    --ft-green-soft: #f4f4f4;
    --ft-mint:       #00a64e;
    --ft-ink:        #111111;
    --ft-body:       #4b4b4b;
    --ft-muted:      #8a8a8a;
    --ft-cream:      #f6f6f6;
    --ft-line:       #e8e8e8;
    --ft-shadow:     0 4px 24px rgba(0,0,0,.06);
    --ft-shadow-lg:  0 18px 48px rgba(0,0,0,.12);
}

/* Estilo «Lujo» (Rodrigo, 13/11/2026), fijo para toda la web. Las letras salen de los ajustes de Diseño del CMS
   (títulos: Cormorant Garamond 600; texto, menú y pie: Jost). Aquí solo se asegura que los títulos de la portada
   y la tienda (que traen su propio peso) usen también la de títulos, igual que en el panel donde lo eligió. */
:root h1, :root h2, :root h3, :root .ft-h2 { font-family: var(--t-titulo-font, var(--font-heading)); font-weight: var(--t-titulo-weight, 600); }
:root { --ft-green-dark: #000000; }   /* en «Lujo» los botones pasan a negro puro al pasar el ratón */

/* Ninguna palabra partida con guion («TORRE-VIEJA»): tienda2026.css ponía hyphens:auto en los títulos.
   Las líneas se reparten equilibradas y en móvil el título grande baja un poco para que quepa entero. */
h1, h2, h3, .ft-hero__title, .ft-listhead__title, .ft-h2, .ft-cta__title {
    hyphens: none !important; -webkit-hyphens: none !important; overflow-wrap: normal !important; word-break: normal !important; text-wrap: balance;
}
@media (max-width: 480px) {
    .ft-hero__title { font-size: 1.75rem; }
    .ft-listhead__title, .ft-cta__title { font-size: 1.55rem; }
    .ft-h2 { font-size: 1.6rem; }
}

/* Fuera las manchas verdes del fondo */
.ft-blob { display: none !important; }

/* Detalles en el verde del logo */
.ft-eyebrow, .ft-h2 em, .ft-cta__title em { color: var(--ft-logo); }
.ft-btn--green:hover { box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* ── Arriba de la portada: blanco, con el logo grande ─────────────────── */
.ft-hero { background: #fff !important; color: #111; padding: 64px 0 76px; border-bottom: 1px solid var(--ft-line); }
.ft-hero__veil { background: rgba(255,255,255,.9) !important; }   /* si algún día lleva foto de fondo, el texto se sigue leyendo */
.ft-hero__logo { display: block; width: min(340px, 72vw); height: auto; margin: 0 auto 30px; }
.ft-hero__badge { background: #fff; border-color: #e3e3e3; color: #111; backdrop-filter: none; }
.ft-hero__dot { background: var(--ft-logo); box-shadow: 0 0 0 0 rgba(0,166,78,.45); animation: ft-pulso-logo 2.4s infinite; }
@keyframes ft-pulso-logo { 70% { box-shadow: 0 0 0 10px rgba(0,166,78,0); } 100% { box-shadow: 0 0 0 0 rgba(0,166,78,0); } }
.ft-hero__title { color: #111; }
.ft-hero__title em { color: var(--ft-logo); }
.ft-hero__sub { color: #4b4b4b; }
.ft-search__form { border: 1px solid #e3e3e3; box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.ft-search__form:focus-within { border-color: #cfcfcf; box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.ft-search__ico { color: var(--ft-logo); }
.ft-search__input { text-overflow: ellipsis; }   /* el texto de ayuda acaba en «…» en vez de cortarse */
.ft-search__input::placeholder { color: #9a9a9a; }
.ft-search__btn { background: #111; }
.ft-search__btn:hover { background: var(--ft-logo); }
.ft-chips__label { color: #8a8a8a; }
.ft-chip { background: #fff; border-color: #e3e3e3; color: #111; backdrop-filter: none; }
.ft-chip:hover { background: #111; border-color: #111; color: #fff; }
.ft-hero__trust span { color: #4b4b4b; }
.ft-hero__trust svg { color: var(--ft-logo); }
/* ── Galería de fotos de la portada (search_hero.php; carpeta assets/img/farmacia/, por orden de nombre) ──────────
   Pasan solas cada 6 s: la nueva entra barrida por un haz de luz (como el latido de la intro) y se acerca despacio.
   Barras de progreso arriba, flechas propias abajo a la derecha, la tarjeta «Nuestra farmacia» abajo a la izquierda,
   y al tocar una foto se abre el carrusel a pantalla completa (.ft-visor, más abajo). JS: assets/js/ft-galeria.js.
   Se para con el ratón encima y mientras sale la intro. Con «reducir movimiento», sin pase automático ni efectos. */
.ft-hero__media { position: relative; max-width: 680px; margin: 52px auto 0; }
.ft-gal { position: relative; margin: 0; }
.ft-gal__marco { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #ececec; box-shadow: 0 26px 60px rgba(0,0,0,.14); isolation: isolate; }
.ft-gal--varias .ft-gal__marco::before { content: ""; position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 84px; pointer-events: none; background: linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,0)); }
.ft-gal__foto { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; font: inherit; cursor: zoom-in; overflow: hidden; transform: translateX(-100%); will-change: transform; }
.ft-gal__foto.is-on { z-index: 2; transform: none; }
.ft-gal__foto:focus-visible { outline: 3px solid var(--ft-logo); outline-offset: -3px; }
.ft-gal__dentro { position: absolute; inset: 0; transform: translateX(100%); will-change: transform; }
.ft-gal__foto.is-on .ft-gal__dentro { transform: none; }
.ft-gal__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ft-gal--mueve .ft-gal__foto.is-on .ft-gal__img, .ft-gal__foto.is-entra .ft-gal__img { animation: ft-gal-acerca 9s cubic-bezier(.2,.5,.3,1) forwards; }
@keyframes ft-gal-acerca { from { transform: scale(1.08); } to { transform: scale(1); } }
/* la que entra: una ventana que se abre de lado a lado con el haz de luz en el borde */
.ft-gal__foto.is-entra { z-index: 3; animation: ft-gal-ventana 1.15s cubic-bezier(.75,0,.25,1) forwards; }
.ft-gal__foto.is-entra .ft-gal__dentro { animation: ft-gal-dentro 1.15s cubic-bezier(.75,0,.25,1) forwards; }
.ft-gal__foto.is-entra.desde-dcha { animation-name: ft-gal-ventana-d; }
.ft-gal__foto.is-entra.desde-dcha .ft-gal__dentro { animation-name: ft-gal-dentro-d; }
@keyframes ft-gal-ventana { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes ft-gal-dentro { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ft-gal-ventana-d { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ft-gal-dentro-d { from { transform: translateX(-100%); } to { transform: none; } }
.ft-gal__foto::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; right: 0; width: 2px; background: #fff; opacity: 0; pointer-events: none;
    box-shadow: 0 0 14px 3px rgba(255,255,255,.85), 0 0 46px 12px rgba(0,166,78,.45); }
.ft-gal__foto.desde-dcha::after { right: auto; left: 0; }
.ft-gal__foto.is-entra::after { animation: ft-gal-haz 1.15s ease forwards; }
@keyframes ft-gal-haz { 0%, 78% { opacity: 1; } 100% { opacity: 0; } }
/* barras de progreso (la activa se llena en 6 s; al llenarse, pasa la foto) */
.ft-gal__barras { position: absolute; z-index: 5; left: 18px; right: 18px; top: 16px; display: flex; gap: 6px; pointer-events: none; }
.ft-gal__barras i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.38); overflow: hidden; }
.ft-gal__barras b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.ft-gal__barras .is-hecha b { transform: none; }
.ft-gal__barras .is-on b { animation: ft-gal-progreso 6s linear forwards; }
@keyframes ft-gal-progreso { to { transform: none; } }
.ft-gal--quieta .ft-gal__barras .is-on b { animation: none; transform: none; }
.ft-gal.is-pausa .ft-gal__barras b, .ft-gal.is-pausa .ft-gal__img,
.intro-activa .ft-gal__barras b, .intro-activa .ft-gal__img { animation-play-state: paused; }
/* flechas e icono de ampliar, con nuestro estilo: círculos finos de cristal oscuro que al pasar el ratón se vuelven blancos */
.ft-gal__flechas { position: absolute; z-index: 5; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.ft-gal__btn { width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); background: rgba(17,17,17,.34); color: #fff;
    display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.ft-gal__btn svg, .ft-gal__ampliar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ft-gal__btn:hover { background: #fff; color: #111; border-color: #fff; transform: scale(1.06); }
.ft-gal__btn:focus-visible { outline: 2px solid var(--ft-logo); outline-offset: 2px; }
.ft-gal__ampliar { position: absolute; z-index: 5; right: 16px; top: 30px; width: 36px; height: 36px; border-radius: 50%; background: rgba(17,17,17,.34); color: #fff;
    display: grid; place-items: center; pointer-events: none; opacity: .85; transition: opacity .25s, transform .25s; }
.ft-gal:not(.ft-gal--varias) .ft-gal__ampliar { top: 16px; }
.ft-gal__marco:hover .ft-gal__ampliar { opacity: 1; transform: scale(1.08); }
.ft-hero__nota {
    position: absolute; z-index: 6; left: 18px; bottom: -22px; display: flex; align-items: center; gap: 11px;
    padding: 11px 18px 11px 14px; background: #fff; border: 1px solid #ececec; border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0,0,0,.12); text-align: left; font-size: .8rem; line-height: 1.35; color: #6b6b6b;
}
.ft-hero__nota strong { display: block; color: #111; font-size: .92rem; font-weight: 700; }
.ft-hero__nota .ft-hero__dot { flex: none; }

/* Ordenador: texto y buscador a la izquierda, galería a la derecha */
@media (min-width: 1025px) {
    .ft-hero--fotos { padding: 72px 0 84px; }
    .ft-hero--fotos .ft-hero__inner { max-width: none; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; align-items: center; text-align: left; }
    .ft-hero--fotos .ft-hero__logo { width: 280px; margin: 0 0 30px; transform: translateX(-9%); }   /* el PNG trae aire a la izquierda: así la F cae en línea con el texto */
    .ft-hero--fotos .ft-hero__title { font-size: clamp(2.2rem, 3.3vw, 3.1rem); }
    .ft-hero--fotos .ft-hero__sub { margin-left: 0; }
    .ft-hero--fotos .ft-search { max-width: none; margin: 0; }
    .ft-hero--fotos .ft-search__input { font-size: 1rem; }
    .ft-hero--fotos .ft-chips, .ft-hero--fotos .ft-hero__trust { justify-content: flex-start; }
    .ft-hero--fotos .ft-hero__media { max-width: none; margin: 0; }
    .ft-hero--fotos .ft-hero__nota { left: -28px; bottom: -24px; }
}
@media (max-width: 480px) {
    .ft-hero__media { margin-top: 40px; }
    .ft-gal__marco { border-radius: 16px; }
    .ft-gal__barras { left: 14px; right: 14px; top: 12px; }
    .ft-gal__flechas { right: 12px; bottom: 12px; gap: 6px; }
    .ft-gal__btn { width: 36px; height: 36px; }
    .ft-gal__ampliar { right: 12px; top: 24px; width: 32px; height: 32px; }
    .ft-hero__nota { left: 12px; bottom: -26px; padding: 9px 14px 9px 12px; font-size: .76rem; }
    .ft-hero__nota strong { font-size: .86rem; }
}

/* ── Carrusel a pantalla completa (al tocar una foto de la galería) ─────────────────────────────────────────
   Se desliza con el dedo (o con las flechas, el teclado o las miniaturas); Esc, la X, tocar fuera o «atrás» lo cierran. */
.ft-visor { position: fixed; inset: 0; z-index: 9995; display: flex; flex-direction: column; background: rgba(6,6,6,.96); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.ft-visor.is-abierto { opacity: 1; visibility: visible; }
.ft-visor svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ft-visor__arriba { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px 22px; }
.ft-visor__cuenta { font-size: .78rem; letter-spacing: .32em; color: rgba(255,255,255,.55); }
.ft-visor__cuenta b { color: #fff; font-weight: 600; }
.ft-visor__cerrar, .ft-visor__flecha { padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.06); color: #fff;
    display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s, opacity .25s; }
.ft-visor__cerrar { width: 46px; height: 46px; }
.ft-visor__cerrar:hover, .ft-visor__flecha:hover { background: #fff; color: #111; border-color: #fff; }
.ft-visor__cerrar:hover { transform: rotate(90deg); }
.ft-visor__cerrar:focus-visible, .ft-visor__flecha:focus-visible, .ft-visor__mini:focus-visible { outline: 2px solid var(--ft-logo); outline-offset: 3px; }
.ft-visor__pista { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.ft-visor__pista::-webkit-scrollbar { display: none; }
.ft-visor__item { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 6px clamp(14px, 8vw, 120px); }
.ft-visor__item img { display: block; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: 14px;
    box-shadow: 0 30px 90px rgba(0,0,0,.65); transform: scale(.95); opacity: 0; transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .45s ease; }
.ft-visor.is-abierto .ft-visor__item img.is-lista { transform: none; opacity: 1; }
.ft-visor__flecha { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; }
.ft-visor__flecha--ant { left: 22px; }
.ft-visor__flecha--sig { right: 22px; }
.ft-visor__flecha--ant:hover { transform: translateX(-3px); }
.ft-visor__flecha--sig:hover { transform: translateX(3px); }
.ft-visor__flecha[disabled] { opacity: 0; pointer-events: none; }
.ft-visor__miniaturas { display: flex; justify-content: center; gap: 10px; padding: 12px 16px 22px; overflow-x: auto; scrollbar-width: none; }
.ft-visor__miniaturas::-webkit-scrollbar { display: none; }
.ft-visor__mini { flex: none; width: 70px; height: 46px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: pointer; background: #222;
    opacity: .4; outline: 1px solid rgba(255,255,255,.18); transition: opacity .25s, outline-color .25s, transform .25s; }
.ft-visor__mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ft-visor__mini:hover { opacity: .8; }
.ft-visor__mini.is-on { opacity: 1; outline: 2px solid var(--ft-logo); outline-offset: 3px; transform: translateY(-2px); }
@media (max-width: 640px) {
    .ft-visor__flecha { display: none; }   /* en el móvil se desliza con el dedo */
    .ft-visor__item { padding: 6px 10px; }
    .ft-visor__mini { width: 58px; height: 40px; }
}
.ft-stickysearch { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.ft-stickysearch__form svg, .ft-listhead__search svg { color: var(--ft-logo); }

/* ── Cabecera de categorías y marcas: también en blanco ───────────────── */
.ft-listhead { background: #fff !important; color: #111; border-bottom: 1px solid var(--ft-line); }
.ft-migas { color: #8a8a8a; }
.ft-migas a { color: #4b4b4b; }
.ft-migas a:hover { color: #111; }
.ft-migas__actual { color: #111; }
.ft-listhead__title { color: #111; }
.ft-listhead__desc { color: #4b4b4b; }
.ft-listhead__logo { border: 1px solid var(--ft-line); }
.ft-listhead__search { border: 1px solid #e3e3e3; box-shadow: 0 10px 28px rgba(0,0,0,.07); }

/* ── Tarjetas de categoría con foto: velo negro, no verde ─────────────── */
.ft-cat--tall .ft-cat__img::after { background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.48) 38%, rgba(0,0,0,.1) 70%, transparent 100%); }
.ft-cat--tall .ft-cat__img { background: linear-gradient(150deg, #1a1a1a, #3a3a3a); }
