/* ==========================================================================
   FortAlma Sportswear — hoja de estilos principal
   Paleta y tipografía extraídas del logo/catálogo oficial de la marca.
   ========================================================================== */

:root{
  /* Paleta oficial FortAlma (brand kit) */
  --terracota:#C85A2E;
  --terracota-dark:#A8481F;
  --ink:#3A1F15;      /* Cacao */
  --cream:#F4EBDC;    /* Crema oficial */
  --cream-2:#FAF6EF;  /* Crema secundaria, para alternar secciones */
  --line:#E4D8C4;
  --muted:#7A6653;
  --white:#FFFFFF;
  --error:#B3261E;
  --success:#3F6B4B;
}

/* -------------------------- Fuentes de marca (auto-hospedadas) -------------------------- */
@font-face{
  font-family:'Bricolage Grotesque';
  src:url('../fonts/BricolageGrotesque-800.woff2') format('woff2');
  font-weight:800;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Archivo';
  src:url('../fonts/Archivo-700.woff2') format('woff2');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

/* -------------------------- Reset básico -------------------------- */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  font-size:16px;
  line-height:1.5;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}
h1,h2,h3,h4,h5{font-family:'Bricolage Grotesque',sans-serif;margin:0;}
.wordmark{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;margin:0;}
p{margin:0 0 1em;}

.screen-reader-text{
  position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(1px,1px,1px,1px);white-space:nowrap;
}
.skip-link{position:absolute;top:-100px;left:0;background:var(--ink);color:var(--cream);padding:12px 20px;z-index:9999;}
.skip-link:focus{top:0;}

.italic-accent{font-family:'Fraunces',serif;font-style:italic;font-weight:500;color:var(--terracota);}
.eyebrow{
  font-family:'Archivo',sans-serif;letter-spacing:.16em;text-transform:uppercase;
  font-size:.72rem;color:var(--muted);font-weight:700;display:inline-block;margin-bottom:8px;
}
.wrap{max-width:1240px;margin:0 auto;padding:0 32px;}

/* -------------------------- Botones -------------------------- */
.btn,
a.button,
button.button,
input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--ink)!important;color:var(--cream)!important;
  padding:15px 30px;border-radius:2px;font-weight:600;font-size:.86rem;
  letter-spacing:.04em;text-transform:uppercase;
  transition:background .2s ease, transform .2s ease;
  width:fit-content;border:1px solid var(--ink)!important;
}
.btn:hover, a.button:hover, button.button:hover, input.button:hover{
  background:var(--terracota)!important;border-color:var(--terracota)!important;transform:translateY(-1px);
}
.btn-outline{background:transparent!important;color:var(--ink)!important;}
.btn-outline:hover{background:var(--ink)!important;color:var(--cream)!important;}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{position:sticky;top:0;z-index:50;background:rgba(253,251,249,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);}
.topbar{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  font-size:.72rem;letter-spacing:.04em;color:var(--muted);
  padding:8px 32px;border-bottom:1px solid var(--line);max-width:1240px;margin:0 auto;flex-wrap:wrap;
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:18px 32px;flex-wrap:wrap;gap:16px;}
.wordmark{font-size:1.6rem;letter-spacing:-.01em;min-width:0;}
.wordmark.small{font-size:1.3rem;}
.wordmark a{display:inline-block;max-width:100%;}
.wordmark small{
  display:block;font-family:'Archivo',sans-serif;font-weight:700;font-size:.58rem;
  letter-spacing:.5em;color:var(--muted);margin-top:4px;
}
/* El logo real se inserta inline (fortalma_inline_logo()); se controla el
   tamaño limitando el ancho del <svg> que trae el brand kit. */
.wordmark svg,
.wordmark img{width:150px;max-width:100%;height:auto;display:block;}
.wordmark.small svg,
.wordmark.small img{width:120px;}
@media (max-width:560px){
  .wordmark svg,.wordmark img{width:120px;}
}

.nav-links{display:flex;gap:32px;font-size:.86rem;font-weight:500;flex-wrap:wrap;}
.nav-links a{position:relative;padding-bottom:4px;}
.nav-links a::after{content:"";position:absolute;left:0;bottom:0;width:0;height:1px;background:var(--terracota);transition:width .25s ease;}
.nav-links a:hover::after{width:100%;}

.mobile-menu-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;padding:8px;}
.mobile-menu-toggle span{width:24px;height:2px;background:var(--ink);display:block;}

.nav-icons{display:flex;gap:20px;align-items:center;font-size:1.05rem;}
.cart-pill{
  display:flex;align-items:center;gap:6px;border:1px solid var(--ink);border-radius:999px;
  padding:6px 14px;font-size:.78rem;font-weight:600;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{display:grid;grid-template-columns:1.05fr .95fr;align-items:stretch;min-height:600px;border-bottom:1px solid var(--line);}
.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:60px 64px;}
.hero-copy h1{font-size:clamp(2.2rem,4.2vw,3.6rem);line-height:1.08;font-weight:700;margin:0 0 22px;letter-spacing:-.02em;}
.hero-copy p{font-size:1.05rem;color:var(--muted);max-width:480px;line-height:1.6;margin:0 0 32px;}
.hero-media{position:relative;overflow:hidden;background:var(--cream-2);min-height:340px;}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center 15%;}
.hero-media-placeholder{display:flex;align-items:center;justify-content:center;height:100%;padding:32px;text-align:center;color:var(--muted);}

.strip{background:var(--ink);color:var(--cream);padding:12px 0;overflow:hidden;white-space:nowrap;}
.strip-track{display:inline-block;animation:marquee 26s linear infinite;}
.strip-track span{display:inline-block;padding:0 32px;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;}
.strip-track span::after{content:"—";margin-left:32px;color:var(--terracota);}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion: reduce){.strip-track{animation:none;}}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
section{padding:88px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:44px;gap:24px;flex-wrap:wrap;}
.section-head h2{font-size:clamp(1.7rem,3vw,2.5rem);margin:8px 0 0;font-weight:700;letter-spacing:-.01em;}
.section-head p{color:var(--muted);max-width:420px;margin:0;line-height:1.6;font-size:.95rem;}

/* -------------------------- Colecciones -------------------------- */
.collections{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;background:var(--line);border:1px solid var(--line);}
.coll-card{
  background:var(--cream) center/cover no-repeat;position:relative;padding:32px 22px;min-height:380px;
  display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;transition:transform .35s ease;
}
.coll-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.55));z-index:0;}
.coll-card:hover{transform:translateY(-6px);}
.coll-card .num{position:relative;z-index:2;font-family:'Fraunces',serif;font-style:italic;color:#fff;font-size:1.05rem;opacity:.85;margin-bottom:auto;display:block;}
.coll-card h3{position:relative;font-size:1.3rem;margin:0 0 6px;color:var(--white);z-index:2;}
.coll-card p{position:relative;font-size:.78rem;color:rgba(255,255,255,.9);z-index:2;line-height:1.5;margin:0 0 14px;}
.coll-card a{position:relative;z-index:2;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--white);border-bottom:1px solid rgba(255,255,255,.6);padding-bottom:3px;width:fit-content;}
.swatch{position:absolute;inset:0;opacity:.92;z-index:0;}
.sw-blooming{background:linear-gradient(160deg,#C98A6E,#7A5C4A);}
.sw-serena{background:linear-gradient(160deg,#B7A48C,#4C4438);}
.sw-esencia{background:linear-gradient(160deg,#2E241D,#5C4433);}
.sw-aura{background:linear-gradient(160deg,#D97A4D,#B23B2E);}
.sw-esenciales{background:linear-gradient(160deg,#8C8378,#33261C);}

/* -------------------------- Grids de producto -------------------------- */
.products,
ul.products{
  display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:28px;
  list-style:none;margin:0;padding:0;
}
.product-card,
ul.products li.product-card{background:var(--white);border:1px solid var(--line);list-style:none;position:relative;}
.product-card-link{display:block;}
.product-thumb{aspect-ratio:3/4;position:relative;overflow:hidden;background:var(--cream-2);}
.product-thumb img{width:100%;height:100%;object-fit:cover;object-position:top center;}
.product-thumb .tag{
  position:absolute;top:12px;left:12px;background:var(--cream);
  font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;padding:5px 10px;font-weight:600;color:var(--terracota);border:1px solid var(--terracota);
}
.product-thumb .tag-sale{left:auto;right:12px;background:var(--terracota);color:var(--white);border-color:var(--terracota);}
.product-info{padding:16px 18px 6px;}
.product-info .coll{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:6px;}
.product-info h4{margin:0 0 8px;font-size:1rem;font-weight:600;}
.price-row,.price-row .price{display:flex;gap:10px;align-items:baseline;font-weight:700;font-size:1rem;flex-wrap:wrap;}
.price-row del{color:var(--muted);font-weight:400;font-size:.85rem;}
.price-row ins{text-decoration:none;}
.fortalma-usd-approx{font-size:.78rem;color:var(--muted);font-weight:400;}
.product-card-actions{padding:0 18px 18px;}
.product-card-actions .button{width:100%;justify-content:center;padding:11px 20px;font-size:.75rem;}

/* -------------------------- Sobre FortAlma -------------------------- */
.about{background:var(--cream-2);}
.about .wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px;align-items:center;}
.about img{width:100%;border-radius:2px;}
.about blockquote{
  font-family:'Fraunces',serif;font-style:italic;font-weight:500;margin:0 0 22px;
  font-size:clamp(1.4rem,2.4vw,2rem);line-height:1.45;color:var(--ink);
}
.about p.lead{color:var(--muted);line-height:1.7;font-size:.98rem;max-width:520px;}

/* -------------------------- Barra de confianza -------------------------- */
.trust{border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.trust .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:36px 32px;}
.trust-item{display:flex;gap:14px;align-items:flex-start;}
.trust-item .ic{font-size:1.3rem;color:var(--terracota);}
.trust-item h5{margin:0 0 4px;font-size:.86rem;font-weight:700;}
.trust-item p{margin:0;font-size:.78rem;color:var(--muted);line-height:1.5;}

.fortalma-unisize-note{
  font-size:.8rem;color:var(--muted);border:1px dashed var(--line);padding:10px 14px;margin:16px 0;display:inline-block;
}

/* -------------------------- Newsletter -------------------------- */
.newsletter{background:var(--ink);color:var(--cream);text-align:center;}
.newsletter h2{font-size:clamp(1.5rem,3vw,2.1rem);margin:0 0 12px;color:var(--cream);}
.newsletter p{color:#C9BEB2;margin:0 0 30px;font-size:.95rem;}
.nl-form{display:flex;justify-content:center;gap:0;max-width:440px;margin:0 auto;flex-wrap:wrap;}
.nl-form input{flex:1;min-width:200px;padding:15px 18px;border:1px solid #56473A;background:transparent;color:var(--cream);font-size:.9rem;}
.nl-form input::placeholder{color:#9C8F80;}
.nl-form button{padding:15px 26px;background:var(--terracota);color:var(--white);border:1px solid var(--terracota);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;}
.nl-status{min-height:1.2em;font-size:.82rem;margin-top:12px;}

/* -------------------------- Footer -------------------------- */
.site-footer{padding:60px 0 28px;}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;margin-bottom:52px;}
.foot-grid h5{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;margin:0 0 16px;color:var(--muted);}
.foot-grid ul{display:flex;flex-direction:column;gap:10px;font-size:.86rem;}
.foot-desc{color:var(--muted);font-size:.85rem;margin-top:14px;max-width:260px;line-height:1.6;}
.foot-bottom{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;
  border-top:1px solid var(--line);padding-top:22px;font-size:.75rem;color:var(--muted);
}
.pay-icons{display:flex;gap:10px;font-size:.7rem;flex-wrap:wrap;}
.pay-icons span{border:1px solid var(--line);padding:4px 9px;border-radius:3px;}

/* ==========================================================================
   PÁGINAS GENERALES / BLOG
   ========================================================================== */
.page-content{padding:64px 0;max-width:900px;}
.page-header h1{font-size:clamp(2rem,4vw,2.8rem);margin-bottom:24px;}
.entry-content{line-height:1.75;font-size:1.02rem;}
.entry-content h2{margin-top:2em;}
.simple-list-item{padding:24px 0;border-bottom:1px solid var(--line);}

/* ==========================================================================
   WOOCOMMERCE — tienda / categoría
   ========================================================================== */
.shop-header{padding:56px 0 24px;}
.shop-header h1{font-size:clamp(2rem,4vw,2.8rem);margin:6px 0 16px;}
.shop-description{color:var(--muted);max-width:640px;margin-bottom:16px;}
.fortalma-breadcrumb{font-size:.78rem;color:var(--muted);margin-bottom:8px;}
.fortalma-breadcrumb a{color:var(--terracota);}
.woo-wrap{padding:32px 0 88px;}

.woocommerce-ordering,
.woocommerce-result-count{font-size:.85rem;color:var(--muted);margin-bottom:24px;}
.woocommerce-pagination ul{display:flex;gap:8px;justify-content:center;margin-top:48px;}
.woocommerce-pagination a,.woocommerce-pagination span{
  display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--line);font-size:.85rem;
}
.woocommerce-pagination .current{background:var(--ink);color:var(--cream);border-color:var(--ink);}

/* ==========================================================================
   WOOCOMMERCE — producto individual
   ========================================================================== */
.single-product .woo-wrap{padding-top:56px;}
.woocommerce div.product{display:grid;grid-template-columns:1.1fr 1fr;gap:56px;}
.woocommerce div.product .woocommerce-product-gallery{border:1px solid var(--line);}
.woocommerce div.product .summary{padding-top:8px;}
.woocommerce div.product .product_title{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:12px;}
.woocommerce div.product p.price{font-size:1.4rem;font-weight:700;color:var(--ink);margin-bottom:20px;}
.woocommerce div.product p.price del{color:var(--muted);font-weight:400;font-size:1rem;margin-right:8px;}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--muted);line-height:1.7;margin-bottom:24px;}
.woocommerce div.product form.cart{margin-bottom:24px;}
.woocommerce div.product .variations{margin-bottom:20px;}
.woocommerce div.product .variations td.label{font-weight:600;font-size:.82rem;padding-bottom:8px;}
.woocommerce div.product .variations select{
  width:100%;padding:12px 14px;border:1px solid var(--line);background:var(--white);font-family:inherit;font-size:.9rem;
}
.woocommerce div.product .single_add_to_cart_button{width:100%;justify-content:center;padding:17px 20px;}
.woocommerce-tabs{margin-top:56px;border-top:1px solid var(--line);padding-top:32px;}
.woocommerce-tabs ul.tabs{display:flex;gap:28px;margin-bottom:24px;border-bottom:1px solid var(--line);}
.woocommerce-tabs ul.tabs li{padding-bottom:14px;font-size:.85rem;letter-spacing:.04em;text-transform:uppercase;font-weight:600;color:var(--muted);cursor:pointer;}
.woocommerce-tabs ul.tabs li.active{color:var(--ink);border-bottom:2px solid var(--terracota);}
.related.products{margin-top:80px;}
.related.products > h2{font-size:1.6rem;margin-bottom:32px;}

/* ==========================================================================
   WOOCOMMERCE — carrito / checkout
   ========================================================================== */
table.shop_table{width:100%;border-collapse:collapse;margin-bottom:32px;}
table.shop_table th{text-align:left;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:14px 12px;border-bottom:1px solid var(--line);}
table.shop_table td{padding:16px 12px;border-bottom:1px solid var(--line);font-size:.92rem;}
.woocommerce-cart-form .product-thumbnail img{width:72px;border:1px solid var(--line);}
.cart-collaterals .cart_totals{background:var(--cream-2);padding:28px;margin-top:24px;}
.cart_totals h2{font-size:1.2rem;margin-bottom:16px;}
#coupon_code{padding:12px 14px;border:1px solid var(--line);margin-right:10px;}
.woocommerce-checkout #payment{background:var(--cream-2);padding:24px;border-radius:2px;}
.woocommerce-checkout .form-row label{font-size:.82rem;font-weight:600;margin-bottom:6px;display:block;}
.woocommerce-checkout input.input-text,
.woocommerce-checkout select{width:100%;padding:12px 14px;border:1px solid var(--line);font-family:inherit;}
.woocommerce-checkout-review-order-table{background:var(--cream-2);padding:24px;}

/* ==========================================================================
   MI CUENTA
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation ul{border:1px solid var(--line);}
.woocommerce-account .woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--line);}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:14px 18px;font-size:.86rem;}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{color:var(--terracota);font-weight:600;}

/* ==========================================================================
   MENSAJES / NOTICES
   ========================================================================== */
.woocommerce-message,.woocommerce-info{
  background:var(--cream-2);border-left:3px solid var(--terracota);padding:16px 20px;margin-bottom:24px;list-style:none;font-size:.9rem;
}
.woocommerce-error{background:#FBEAE8;border-left:3px solid var(--error);padding:16px 20px;margin-bottom:24px;font-size:.9rem;}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px){
  .collections{grid-template-columns:repeat(3,1fr);}
  .products,ul.products{grid-template-columns:repeat(3,1fr)!important;}
  .woocommerce div.product{grid-template-columns:1fr;}
}
@media (max-width: 900px){
  .nav-links{position:fixed;top:0;right:-100%;height:100vh;width:min(320px,80vw);background:var(--cream);
    flex-direction:column;padding:100px 32px 32px;gap:24px;transition:right .3s ease;z-index:60;box-shadow:-8px 0 24px rgba(0,0,0,.08);}
  .nav-links.is-open{right:0;}
  .mobile-menu-toggle{display:flex;}
  .hero{grid-template-columns:1fr;}
  .about .wrap{grid-template-columns:1fr;}
  .trust .wrap{grid-template-columns:repeat(2,1fr);}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .collections{grid-template-columns:repeat(2,1fr);}
  .products,ul.products{grid-template-columns:repeat(2,1fr)!important;}
}
@media (max-width: 560px){
  .wrap{padding:0 20px;}
  .hero-copy{padding:44px 24px;}
  .collections{grid-template-columns:1fr;}
  .products,ul.products{grid-template-columns:1fr!important;}
  .foot-grid{grid-template-columns:1fr;}
  section{padding:56px 0;}
}
