/*
Theme Name: Anfibio Tienda Scout
Description: Tema para la Tienda Oficial de la Federación Scouts Católicos en la Argentina. Replica el diseño de la tienda anterior en Tiendanube, adaptado a WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: anfibio
WC requires at least: 8.0
*/

:root {
  --azul: #082c62;
  --azul-claro: rgba(8, 44, 98, .1);
  --rojo: #e12712;
  --rojo-osc: #b21f0e;
  --texto: #434343;
  --texto-suave: rgba(67, 67, 67, .6);
  --borde: rgba(67, 67, 67, .2);
  --fondo-gris: #f7f7f7;
  --ancho: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--texto);
  font: 400 14px/1.5 Lato, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--rojo); }
h1, h2, h3, h4 { font-family: "Roboto Condensed", sans-serif; font-weight: 400; color: var(--texto); line-height: 1.2; }
.container { max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--azul); color: #fff; font-size: 11px; text-transform: uppercase; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar a { color: #fff; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-search { display: flex; align-items: center; background: rgba(255, 255, 255, .4); border: 1px solid rgba(255,255,255,.6); width: 220px; max-width: 50%; }
.topbar .topbar-search input { background: transparent; border: 0; color: #fff; padding: 6px 8px; font: inherit; text-transform: none; font-size: 13px; width: 100%; outline: none; }
.topbar-search input::placeholder { color: #fff; }
.topbar-search button { background: none; border: 0; color: #fff; padding: 0 8px; cursor: pointer; }
.topbar-account { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.topbar-account .sep { opacity: .7; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--borde); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: stretch; justify-content: space-between; min-height: 100px; padding-right: 0; }
.site-logo { display: flex; align-items: center; padding: 12px 0; }
.site-logo img { max-height: 70px; width: auto; }
.site-logo .logo-texto { font: 700 28px "Roboto Condensed", sans-serif; color: var(--azul); }
.main-nav { display: flex; align-items: center; margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li + li::before { content: "•"; color: var(--borde); padding: 0 6px; }
.main-nav a { display: inline-block; padding: 10px 6px; font-size: 13px; text-transform: uppercase; color: var(--texto); letter-spacing: .02em; }
.main-nav .current-menu-item > a, .main-nav a:hover { color: var(--rojo); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--borde); list-style: none; margin: 0; padding: 8px 0; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.main-nav .sub-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 12px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: 6px 16px; font-size: 12px; display: block; }
.header-cart { background: var(--rojo); color: #fff; min-width: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-left: 24px; padding: 10px; position: relative; }
.header-cart:hover { background: var(--rojo-osc); color: #fff; }
.header-cart svg { width: 34px; height: 34px; fill: #fff; }
.header-cart .cart-count { position: absolute; top: 22px; left: calc(50% + 8px); background: #fff; color: var(--rojo); border-radius: 50%; width: 22px; height: 22px; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.header-cart .cart-total { font-size: 12px; font-weight: 700; margin-top: 4px; }
.nav-toggle { display: none; background: none; border: 0; padding: 0 16px; cursor: pointer; color: var(--azul); }
.nav-toggle svg { width: 28px; height: 28px; }
.adbar { background: var(--rojo); color: #fff; text-align: center; font-size: 11px; text-transform: uppercase; padding: 6px 16px; letter-spacing: .03em; }

/* ---------- Slider ---------- */
.hero { position: relative; overflow: hidden; background: #eee; }
.hero-track { display: flex; transition: transform .6s ease; }
.hero-slide { flex: 0 0 100%; }
.hero-slide img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.hero-prev, .hero-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 48px; cursor: pointer; text-shadow: 0 1px 6px rgba(0,0,0,.4); padding: 0 16px; line-height: 1; }
.hero-prev { left: 0; } .hero-next { right: 0; }
.hero-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0; background: #fff; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--azul); padding: 0; cursor: pointer; }
.hero-dots button.is-active { background: var(--rojo); }

/* ---------- Secciones de portada ---------- */
.home-cats { background: var(--fondo-gris); text-align: center; padding: 22px 0 30px; }
.home-cats h3 { margin: 0 0 14px; font: 400 22px Lato, sans-serif; }
.home-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.home-cats a { display: inline-block; background: var(--azul); color: #fff; text-transform: uppercase; font-size: 12px; padding: 8px 12px; }
.home-cats a:hover { background: var(--rojo); color: #fff; }
.home-banner { background: var(--azul); color: #fff; text-align: center; padding: 36px 16px; margin-top: 40px; }
.home-banner h2 { color: #fff; font-weight: 300; text-transform: uppercase; font-size: 40px; margin: 0; max-width: 820px; margin-inline: auto; }
.home-banner h2::before, .home-banner h2::after { content: "◆"; display: block; font-size: 10px; margin: 8px 0; }
.home-section { padding: 36px 0 10px; }
.section-title { text-align: center; font: 400 20px "Roboto Condensed", sans-serif; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--borde); padding-bottom: 14px; margin: 0 0 28px; }
.section-sub { text-align: center; margin: -18px 0 24px; }
.ver-todos { text-align: center; margin: 10px 0 30px; }
.btn, .button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-block; background: var(--rojo); color: #fff; border: 0; border-radius: 0;
  font: 300 14px Lato, sans-serif; text-transform: uppercase; padding: 12px 22px; cursor: pointer; line-height: 1.2;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--rojo-osc); color: #fff; }
.btn-azul { background: var(--azul); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--rojo); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--rojo-osc); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled, .woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt.disabled:hover { background: var(--texto-suave); color: #fff; opacity: .8; }

/* ---------- Grilla de productos ---------- */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
ul.products::before, ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: center; position: relative; }
ul.products li.product img { aspect-ratio: 1; object-fit: cover; width: 100%; margin: 0 0 10px !important; background: #eee; }
ul.products li.product .woocommerce-loop-product__title { font: 400 13px Lato, sans-serif !important; text-transform: uppercase; color: var(--texto); padding: 0 !important; margin: 0 0 4px; }
ul.products li.product .price { color: var(--rojo) !important; font-size: 14px !important; display: block; }
ul.products li.product .price del { color: var(--texto-suave); opacity: 1; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .price del::after { content: " •"; color: var(--texto-suave); }
ul.products li.product .button { margin-top: 10px; font-size: 12px; padding: 8px 14px; }
.badges { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; gap: 2px; z-index: 2; }
.badge { background: var(--rojo); color: #fff; font-size: 10px; text-transform: uppercase; padding: 4px 8px; }
.badge-envio { background: #fff; color: var(--rojo); border: 1px solid var(--rojo); }
.badge-sinstock { background: var(--texto); }
.woocommerce span.onsale { display: none; }
.single-product div.product > .badges { right: auto; left: 0; }

/* ---------- Páginas internas ---------- */
.page-head { text-align: center; padding: 30px 0 10px; }
.page-head h1 { text-transform: uppercase; font-size: 28px; margin: 0; }
.woocommerce-breadcrumb { font-size: 12px; text-align: center; color: var(--texto-suave) !important; margin: 0 0 20px !important; }
.site-main { padding-bottom: 50px; }
.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 36px; }
.shop-sidebar h4 { text-transform: uppercase; font-size: 14px; border-bottom: 1px solid var(--borde); padding-bottom: 8px; }
.shop-sidebar ul { list-style: none; margin: 0 0 24px; padding: 0; }
.shop-sidebar li { padding: 4px 0; }
.shop-sidebar .children { padding-left: 14px; margin: 4px 0 0; }
.shop-sidebar .current-cat > a { color: var(--rojo); font-weight: 700; }
.woocommerce .woocommerce-ordering select, select, input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], textarea {
  border: 1px solid var(--borde); padding: 10px; font: inherit; color: var(--texto); background: #fff; border-radius: 0; max-width: 100%;
}
.woocommerce-result-count { font-size: 12px; color: var(--texto-suave); }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 2px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--azul); color: #fff; }

/* Ficha de producto */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .product_title { text-transform: uppercase; font-size: 26px; margin-top: 0; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rojo); font-size: 26px; }
.woocommerce div.product p.price del { color: var(--texto-suave); font-size: 18px; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product form.cart .variations select { min-width: 220px; }
.woocommerce div.product form.cart .button { padding: 14px 30px; font-size: 15px; }
.woocommerce .quantity .qty { padding: 12px 6px; width: 64px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: #fff; }
.info-compra { margin-top: 20px; border-top: 1px solid var(--borde); padding-top: 14px; font-size: 13px; }
.info-compra p { margin: 6px 0; display: flex; gap: 8px; align-items: center; }
.info-compra svg { width: 18px; height: 18px; fill: var(--azul); flex: 0 0 auto; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--azul) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--azul) !important; }

/* Contenido / formularios */
.entry-content { max-width: 820px; margin: 0 auto; font-size: 15px; }
.form-anfibio p { margin: 0 0 14px; }
.form-anfibio label { display: block; font-size: 13px; margin-bottom: 4px; }
.form-anfibio input, .form-anfibio textarea { width: 100%; }
.form-anfibio .hp { position: absolute; left: -9999px; }
.aviso { padding: 12px 16px; background: var(--azul-claro); border-left: 4px solid var(--azul); margin-bottom: 20px; }
.aviso.error { background: #fdecea; border-color: var(--rojo); }

/* ---------- Footer ---------- */
.site-footer { background: var(--fondo-gris); border-top: 1px solid var(--borde); margin-top: 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 36px 16px; }
.footer-cols h4 { text-transform: uppercase; font-size: 14px; margin: 0 0 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.footer-cols svg { width: 18px; height: 18px; fill: var(--azul); flex: 0 0 auto; margin-top: 1px; }
.redes { display: flex; gap: 10px; }
.redes a { width: 36px; height: 36px; border-radius: 50%; background: var(--azul); display: flex; align-items: center; justify-content: center; }
.redes a:hover { background: var(--rojo); }
.redes svg { width: 18px; height: 18px; fill: #fff; margin: 0; }
.newsletter { display: flex; }
.newsletter input { flex: 1; min-width: 0; }
.newsletter button { padding: 10px 14px; }
.footer-nav { border-top: 1px solid var(--borde); text-align: center; padding: 16px; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 0; padding: 0; }
.footer-nav a { color: var(--texto); text-transform: uppercase; font-size: 12px; }
.pagos { text-align: center; padding: 0 16px 16px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagos span { border: 1px solid var(--borde); background: #fff; font-size: 11px; padding: 3px 8px; border-radius: 3px; }
.legal { background: var(--azul); color: #fff; font-size: 12px; text-align: center; padding: 14px 16px; }
.legal a { color: #fff; text-decoration: underline; }
.legal p { margin: 4px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  ul.products { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { order: 2; }
}
@media (max-width: 767px) {
  .topbar-account { font-size: 10px; }
  .site-header .container { min-height: 70px; padding-left: 0; }
  .nav-toggle { display: flex; align-items: center; }
  .site-logo img { max-height: 48px; }
  .site-logo { margin-right: auto; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--borde); }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav > ul > li + li::before { display: none; }
  .main-nav > ul > li { border-top: 1px solid var(--borde); }
  .main-nav a { padding: 12px 16px; display: block; }
  .main-nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 8px 16px; }
  .header-cart { min-width: 76px; margin-left: 0; }
  .header-cart .cart-count { top: 12px; }
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .home-banner h2 { font-size: 26px; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-prev, .hero-next { font-size: 32px; }
}
