/* Farmacia Carreño — estilos que theme.json no cubre. Mantener corto. */

:root { --fc-radio: 16px; --fc-linea: var(--wp--preset--color--linea); }
body { -webkit-font-smoothing: antialiased; }
.screen-reader-text { border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; width:1px; word-wrap:normal!important; }
:where(a,button,input,select,textarea,summary):focus-visible { outline:2px solid var(--wp--preset--color--accion); outline-offset:3px; }

/* Barra superior y aviso */
.fc-topbar { gap:.35rem 1.25rem; text-align:center; }
.fc-topbar p { margin:0; }
.fc-topbar a { color:inherit; text-decoration:none; font-weight:600; }
.fc-aviso { background:var(--wp--preset--color--melocoton); color:var(--wp--preset--color--tinta); text-align:center; padding:.6rem 1rem; font-size:.875rem; font-weight:500; }
.fc-aviso a { color:var(--wp--preset--color--tinta); }

/* Cabecera */
.fc-cabecera { gap:1rem 1.5rem; }
.fc-logo { display:flex; align-items:center; gap:.75rem; text-decoration:none; color:var(--wp--preset--color--tinta); flex:0 0 auto; }
.fc-logo img { width:40px; height:40px; }
.fc-logo__texto { display:flex; flex-direction:column; }
.fc-logo__nombre { font-family:var(--wp--preset--font-family--fraunces); font-weight:600; font-size:1.3rem; line-height:1.05; }
.fc-logo__lugar { font-size:.625rem; letter-spacing:.14em; text-transform:uppercase; font-weight:600; color:var(--wp--preset--color--gris); margin-top:.2rem; }
.fc-buscador { flex:1 1 360px; min-width:220px; margin:0; }
.fc-buscador .wp-block-search__inside-wrapper { border:1.5px solid var(--fc-linea)!important; border-radius:999px; background:var(--wp--preset--color--papel); padding:.25rem .35rem .25rem 1.1rem; }
.fc-buscador .wp-block-search__input { border:0; background:transparent; font-size:1rem; min-height:44px; color:var(--wp--preset--color--tinta); }
.fc-buscador .wp-block-search__input::placeholder { color:var(--wp--preset--color--gris); opacity:1; }
.fc-buscador .wp-block-search__button { border-radius:999px; min-width:44px; min-height:44px; margin:0; }
.fc-cabecera__acciones { align-items:center; }
.fc-enlace-whatsapp { display:inline-flex; align-items:center; gap:.4rem; color:var(--wp--preset--color--whatsapp); font-weight:600; font-size:.875rem; text-decoration:none; min-height:44px; }
.fc-cabecera .wc-block-mini-cart__button, .fc-cabecera .wc-block-customer-account a { min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; color:var(--wp--preset--color--tinta); }

/* Menú y desplegable de categorías (solo texto, en columnas) */
.fc-menu { position:relative; }
.fc-nav .wp-block-navigation-item__content { padding:.65rem 0; }
.fc-nav .fc-nav-destacado > a { color:var(--wp--preset--color--accion)!important; }
@media (min-width:782px){
  .fc-nav .fc-categorias { position:static; }
  .fc-nav .fc-categorias > .wp-block-navigation__submenu-container {
    left:0!important; right:0; width:auto!important; max-width:1280px; margin:0 auto;
    display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:2rem;
    padding:1.75rem 2.25rem!important; border:1px solid var(--fc-linea)!important; border-radius:var(--fc-radio);
    box-shadow:var(--wp--preset--shadow--menu); background:#fff!important; text-transform:none; letter-spacing:0; z-index:50;
  }
  .fc-nav .fc-categorias .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size:.95rem; font-weight:600; padding:.7rem 0!important; border-bottom:1px solid #f3ece7; }
  .fc-nav .fc-categorias .fc-ver-todo .wp-block-navigation-item__content { color:var(--wp--preset--color--accion); border-bottom:0; }
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size:1.05rem; text-transform:none; letter-spacing:0; padding:.6rem 0; }

/* Separador botánico */
.fc-separador { display:flex; align-items:center; justify-content:center; gap:.65rem; color:var(--wp--preset--color--accion); padding:2.25rem 1rem 0; margin:0; }
.fc-separador span { flex:1; max-width:160px; height:1px; background:#e3b6a4; }

/* Portada */
.fc-antetitulo { text-transform:uppercase; letter-spacing:.09em; font-weight:600; font-size:.75rem; }
.fc-hero__foto { aspect-ratio:4/3.4; border-radius:20px; background:var(--wp--preset--color--arena); display:flex; align-items:center; justify-content:center; color:#a9794a; background-size:cover; background-position:center; }
.fc-confianza { list-style:none; margin:0 auto; padding:1.5rem 1rem .5rem; display:flex; flex-wrap:wrap; gap:.75rem 1.75rem; justify-content:center; font-size:.875rem; color:var(--wp--preset--color--tinta-suave); }
.fc-confianza li { display:flex; align-items:center; gap:.45rem; }
.fc-confianza svg { color:var(--wp--preset--color--tinta); }
.fc-seccion-cabecera { gap:.5rem 1rem; margin-bottom:1.5rem; }
.fc-seccion-cabecera h2 { margin:0; }
.fc-ver-mas { margin:0; font-size:.8125rem; font-weight:600; text-transform:uppercase; letter-spacing:.07em; }
.fc-ver-mas a { text-decoration:none; }
.fc-areas { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1.1rem; }
.fc-areas a { display:flex; flex-direction:column; height:100%; background:#fff; border:1px solid var(--fc-linea); border-radius:var(--fc-radio); overflow:hidden; color:var(--wp--preset--color--tinta); text-decoration:none; transition:box-shadow .15s; }
.fc-areas a:hover { box-shadow:var(--wp--preset--shadow--menu); }
.fc-areas__foto { display:block; aspect-ratio:16/10; background-size:cover; background-position:center; }
.fc-areas__nombre { padding:.85rem 1rem; font-weight:600; font-size:.9375rem; }
@media (max-width:1000px){ .fc-areas { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:600px){ .fc-areas { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; } }
.fc-tarjeta-blanca { gap:1.5rem; }

/* Tarjetas de producto */
.fc-coleccion .wc-block-product { background:#fff; border:1px solid var(--fc-linea); border-radius:var(--fc-radio); overflow:hidden; display:flex; flex-direction:column; }
.fc-coleccion .wc-block-components-product-image { background:#fff; margin:0!important; }
.fc-coleccion .wc-block-components-product-image img { padding:.75rem; }
.fc-tarjeta__cuerpo { padding:0 1rem 1rem; flex:1; }
.fc-tarjeta__cuerpo > * { margin:0!important; }
.fc-tarjeta__marca, .fc-ficha__marca { font-size:.8125rem; color:var(--wp--preset--color--gris); font-weight:600; }
.fc-tarjeta__marca a, .fc-ficha__marca a { color:inherit; text-decoration:none; }
.fc-tarjeta__nombre { font-family:var(--wp--preset--font-family--montserrat)!important; font-size:.9375rem!important; font-weight:600!important; line-height:1.3!important; }
.fc-tarjeta__stock { font-size:.75rem; font-weight:600; }
.fc-tarjeta__pie { margin-top:auto!important; padding-top:.35rem; width:100%; gap:.5rem; align-items:center; }
.fc-tarjeta__pie .wc-block-components-product-price { font-size:1rem; }
.fc-tarjeta__boton .wp-block-button__link, .fc-tarjeta__boton .wc-block-components-product-button__button { padding:.55rem 1.1rem!important; font-size:.8125rem!important; min-height:40px; border-radius:999px!important; }
.wc-block-components-product-sale-badge { background:var(--wp--preset--color--accion)!important; color:#fff!important; border:0!important; border-radius:999px!important; font-size:.75rem!important; font-weight:700; padding:.3rem .7rem!important; }
.wc-block-components-product-price del { color:var(--wp--preset--color--gris); font-weight:400; }
.wc-block-components-product-price ins { color:var(--wp--preset--color--accion); text-decoration:none; }
.wc-block-components-product-stock-indicator.wc-block-components-product-stock-indicator--in-stock,
.wc-block-components-product-stock-indicator--in-stock { color:var(--wp--preset--color--whatsapp); }
.wc-block-components-product-stock-indicator--available-on-backorder { color:var(--wp--preset--color--accion); }
.fc-sin-resultados { background:#fff; border:1px dashed var(--fc-linea); border-radius:var(--fc-radio); padding:1.5rem; color:var(--wp--preset--color--tinta-suave); text-align:center; }
.fc-barra-orden { margin:1rem 0 1.25rem; font-size:.875rem; }

/* Ficha */
.fc-ficha .woocommerce-product-gallery, .fc-ficha .wc-block-product-gallery { border-radius:var(--fc-radio); overflow:hidden; background:#fff; }
.fc-ficha__info h1 { margin:0; }
.fc-consejo { display:flex; gap:.75rem; align-items:flex-start; background:var(--wp--preset--color--blush); border-radius:var(--fc-radio); padding:1rem 1.1rem; }
.fc-consejo svg { flex:0 0 auto; margin-top:.15rem; color:var(--wp--preset--color--accion); }
.fc-consejo p { margin:0; font-size:.9rem; line-height:1.6; color:var(--wp--preset--color--tinta-suave); }
.fc-consejo .fc-consejo__titulo { font-weight:700; color:var(--wp--preset--color--tinta); margin-bottom:.25rem; }
.fc-ficha .wp-block-add-to-cart-form .single_add_to_cart_button { flex:1; border-radius:999px; min-height:52px; font-size:1rem; }
.fc-ficha .wp-block-add-to-cart-form form.cart { display:flex; gap:.75rem; align-items:stretch; flex-wrap:wrap; }
.fc-ficha .quantity input.qty { min-height:52px; border:1.5px solid var(--fc-linea); border-radius:999px; text-align:center; width:5rem; font-size:1rem; }
.fc-boton-whatsapp, .fc-boton-consulta { display:flex; align-items:center; justify-content:center; gap:.5rem; padding:.85rem 1rem; border-radius:999px; font-weight:600; font-size:.9rem; text-decoration:none; min-height:48px; }
.fc-boton-whatsapp { border:1.5px solid var(--wp--preset--color--whatsapp); color:var(--wp--preset--color--whatsapp); }
.fc-boton-consulta { border:1.5px solid var(--fc-linea); color:var(--wp--preset--color--tinta); }
.fc-boton-whatsapp:hover { background:var(--wp--preset--color--whatsapp); color:#fff; }
.fc-ficha__pestanas { margin-top:var(--wp--preset--spacing--50)!important; }
.fc-ficha__pestanas .wc-tabs li a { color:var(--wp--preset--color--tinta); }

/* Botón contorno */
.wp-block-button.is-style-outline > .wp-block-button__link { border:1.5px solid currentColor; background:transparent; color:var(--wp--preset--color--tinta); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background:var(--wp--preset--color--tinta); color:#fff; }

/* Pie */
.fc-pie p, .fc-pie li { color:#e6e2ec; }
.fc-pie a { text-decoration:none; }
.fc-pie a:hover { text-decoration:underline; }
.fc-lista-limpia { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.45rem; }
.fc-pie__copy { font-size:.8125rem; margin-top:2rem!important; padding-top:1.25rem; border-top:1px solid rgba(255,255,255,.15); }

/* Barra inferior móvil */
.fc-barra-movil { display:none; }
@media (max-width:781px){
  .fc-barra-movil { display:flex; justify-content:space-around; position:fixed; left:0; right:0; bottom:0; z-index:60; background:#fff; border-top:1px solid var(--fc-linea); padding:.35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
  .fc-barra-movil a { display:flex; flex-direction:column; align-items:center; gap:.2rem; font-size:.75rem; font-weight:600; color:var(--wp--preset--color--tinta); text-decoration:none; min-width:64px; min-height:48px; justify-content:center; }
  .fc-barra-movil__whatsapp { color:var(--wp--preset--color--whatsapp)!important; }
  body { padding-bottom:72px; }
  .fc-topbar__dir { display:none; }
  .fc-enlace-whatsapp span { display:none; }
  .fc-buscador { order:3; flex-basis:100%; }
}

/* Carrito y pago (bloques de WooCommerce) */
.wc-block-cart, .wc-block-checkout { --fc-x:0; }
.wc-block-components-checkout-step__title { font-family:var(--wp--preset--font-family--fraunces); }
.wc-block-components-checkout-step__container::after, .wc-block-checkout__form .wc-block-components-checkout-step::after { border-color:var(--fc-linea)!important; }
.wc-block-components-button:not(.is-link) { border-radius:999px!important; }
.wc-block-components-sidebar .wc-block-components-panel, .wc-block-components-sidebar-layout .wc-block-components-sidebar { background:transparent; }
.wc-block-components-radio-control__option--checked-option-highlighted, .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow:inset 0 0 0 1.5px var(--wp--preset--color--tinta)!important; }

@media (prefers-reduced-motion:reduce){ *{ transition:none!important; animation:none!important; } }

/* Carrusel de marcas */
.fc-marcas { position:relative; }
.fc-marcas__pista { list-style:none; margin:0; padding:.25rem 0 .75rem; display:flex; gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; }
.fc-marcas__pista li { flex:0 0 auto; scroll-snap-align:start; }
.fc-marcas__pista a { display:flex; align-items:center; justify-content:center; width:168px; height:96px; padding:1rem; background:#fff; border:1px solid var(--fc-linea); border-radius:var(--fc-radio); text-decoration:none; transition:box-shadow .15s; }
.fc-marcas__pista a:hover { box-shadow:var(--wp--preset--shadow--menu); }
.fc-marcas__logo { max-width:100%; max-height:60px; width:auto; height:auto; object-fit:contain; filter:grayscale(1); opacity:.85; transition:filter .15s, opacity .15s; }
.fc-marcas__pista a:hover .fc-marcas__logo, .fc-marcas__pista a:focus-visible .fc-marcas__logo { filter:none; opacity:1; }
.fc-marcas__nombre { font-weight:700; color:var(--wp--preset--color--tinta); text-align:center; font-size:.95rem; }
.fc-marcas__flecha { position:absolute; top:calc(50% - 30px); width:44px; height:44px; border-radius:50%; border:1px solid var(--fc-linea); background:#fff; color:var(--wp--preset--color--tinta); display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:var(--wp--preset--shadow--menu); z-index:2; }
.fc-marcas__flecha[hidden] { display:none; }
.fc-marcas__flecha--ant { left:-12px; transform:rotate(180deg); }
.fc-marcas__flecha--sig { right:-12px; }
@media (max-width:781px){ .fc-marcas__flecha { display:none; } .fc-marcas__pista a { width:136px; height:80px; } }

/* Marcadores de foto (hasta tener fotos reales) */
.fc-hero__foto { color:#b07d4f; }
.fc-hero__foto svg { width:38%; height:auto; opacity:.8; }

/* Solo en el editor */
.editor-styles-wrapper .fc-barra-movil { position:static!important; display:flex!important; justify-content:space-around; }
.editor-styles-wrapper [class*="fc-hueco-"] { border:1.5px dashed var(--fc-linea); border-radius:12px; padding:.5rem .9rem; margin:.5rem 0; background:rgba(255,255,255,.6); }
.editor-styles-wrapper body, .editor-styles-wrapper { padding-bottom:0!important; }
