/*
Theme Name: Ópticas Losada
Author: Ópticas Losada
Version: 0.5.0
Description: Tienda óptica WooCommerce inspirada en una experiencia internacional, limpia y directa.
*/
:root{--ink:#171717;--muted:#666;--line:#d7d7d7;--soft:#f5f5f5;--cream:#f3eee6;--blue:#0d3154;--green:#16713b;--max:1440px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.45}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.container{width:min(calc(100% - 40px),var(--max));margin:auto}.announcement-bar{padding:8px 20px;background:#1b1b1b;color:#fff;text-align:center;font-size:12px;font-weight:700;letter-spacing:.03em}.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}.site-header__top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:72px;gap:24px}.brand{text-align:center}.brand__name{display:block;font-family:Georgia,serif;font-size:27px;letter-spacing:.08em}.brand__since{display:block;margin-top:2px;font-size:9px;letter-spacing:.22em;color:#777}.header-links{display:flex;gap:22px;align-items:center;font-size:13px;font-weight:700}.header-links--right{justify-content:flex-end}.site-nav{border-top:1px solid #eee}.site-nav ul{display:flex;justify-content:center;gap:42px;list-style:none;margin:0;padding:13px 10px}.site-nav a{font-size:14px;font-weight:700}.site-nav a:hover{text-decoration:underline}.hero{min-height:560px;display:grid;grid-template-columns:1.05fr .95fr;background:var(--cream)}.hero__copy{display:flex;flex-direction:column;justify-content:center;padding:70px max(36px,8vw)}.eyebrow{margin:0 0 14px;font-size:12px;font-weight:800;letter-spacing:.17em;text-transform:uppercase}.hero h1{max-width:680px;margin:0 0 20px;font-family:Georgia,serif;font-size:clamp(48px,6vw,88px);font-weight:400;letter-spacing:-.05em;line-height:.95}.hero p{max-width:540px;margin:0 0 30px;color:#414141;font-size:18px}.hero__visual{min-height:560px;background:linear-gradient(135deg,#d9c8b0,#f7f2ea);display:flex;align-items:center;justify-content:center;overflow:hidden}.hero__visual img{width:100%;height:100%;object-fit:cover}.btn,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:12px 25px!important;border:2px solid #1c1c1c!important;border-radius:0!important;background:#1c1c1c!important;color:#fff!important;font-weight:800!important;text-transform:none!important;box-shadow:none!important}.btn--light{background:#fff!important;color:#171717!important}.btn:hover,.button:hover{background:#444!important;color:#fff!important}.benefits{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line)}.benefit{padding:25px;text-align:center;border-right:1px solid var(--line)}.benefit:last-child{border-right:0}.benefit strong{display:block;font-size:15px}.benefit span{font-size:13px;color:var(--muted)}.section{padding:70px 0}.section__head{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.section h2{margin:0;font-family:Georgia,serif;font-size:clamp(34px,4vw,54px);font-weight:400}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.category-card{position:relative;min-height:430px;padding:32px;background:#eee;display:flex;align-items:flex-end;overflow:hidden}.category-card:nth-child(1){background:#e8e4df}.category-card:nth-child(2){background:#dce8ee}.category-card:nth-child(3){background:#e9dfd7}.category-card h3{position:relative;z-index:2;margin:0 0 8px;font-family:Georgia,serif;font-size:34px;font-weight:400}.category-card p{position:relative;z-index:2;margin:0 0 18px}.shop-strip{padding:70px 0;background:#f6f6f6}.shop-strip h2{margin:0 0 30px;text-align:center;font-family:Georgia,serif;font-size:48px;font-weight:400}.site-main,.content-area{width:min(calc(100% - 40px),var(--max));margin:auto;padding:42px 0}.woocommerce .woocommerce-breadcrumb{font-size:12px;color:#777}.woocommerce-products-header__title,.woocommerce .page-title{margin:20px 0 30px;font-family:Georgia,serif;font-size:50px;font-weight:400}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px;margin:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product{width:auto!important;margin:0!important;padding:0!important}.woocommerce ul.products li.product a img{aspect-ratio:1/1;object-fit:contain;margin:0 0 16px!important;background:#f3f3f3}.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0!important;font-size:16px;font-weight:700}.woocommerce ul.products li.product .price{color:#171717!important;font-size:15px;font-weight:700}.woocommerce ul.products li.product .button{width:100%;margin-top:8px!important}.single-product div.product{display:grid;grid-template-columns:minmax(0,58%) minmax(420px,42%);gap:0;align-items:start}.single-product .woocommerce-product-gallery{width:100%!important;float:none!important;position:sticky;top:122px;background:#f5f5f5;min-height:calc(100vh - 122px);display:flex;align-items:center}.single-product .woocommerce-product-gallery__wrapper{width:100%}.single-product .woocommerce-product-gallery img{width:100%!important;max-height:70vh;object-fit:contain}.single-product .summary{width:100%!important;float:none!important;padding:35px 40px;border-left:1px solid var(--line)}.single-product .product_title{font-family:Georgia,serif;font-size:36px;font-weight:400}.single-product .price{color:#171717!important;font-size:20px!important}.lls-configurator{margin:20px -40px -35px!important;padding:30px 40px!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}.lls-brand-row{display:none!important}.lls-intro-grid{grid-template-columns:1fr auto!important}.lls-intro h2{font-family:Georgia,serif!important;font-size:32px!important}.lls-progress{grid-template-columns:repeat(4,1fr)!important}.lls-choice,.lls-rx-modes span{border-radius:0!important;border:1px solid var(--line)!important}.lls-choice:has(input:checked),.lls-rx-modes label:has(input:checked) span{border-color:#111!important;box-shadow:inset 0 0 0 1px #111!important}.lls-next{width:100%;border-radius:999px!important;background:#222!important}.lls-navigation{background:#fff!important}.woocommerce-cart .cart_totals,.woocommerce-cart-form,.woocommerce-checkout-review-order,.woocommerce-checkout form.checkout{border:1px solid var(--line);padding:25px}.site-footer{padding:55px 0;background:#202020;color:#fff}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:45px}.footer-grid h3{font-family:Georgia,serif;font-size:24px;font-weight:400}.footer-grid h4{font-size:13px;text-transform:uppercase;letter-spacing:.1em}.footer-grid ul{list-style:none;margin:0;padding:0}.footer-grid li{margin:9px 0;color:#ddd;font-size:14px}.copyright{margin-top:40px;padding-top:20px;border-top:1px solid #444;color:#aaa;font-size:12px}
@media(max-width:980px){.site-header__top{grid-template-columns:1fr auto}.header-links--left{display:none}.brand{text-align:left}.site-nav ul{overflow:auto;justify-content:flex-start}.hero{grid-template-columns:1fr}.hero__visual{min-height:380px;order:-1}.category-grid{grid-template-columns:1fr}.category-card{min-height:280px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.single-product div.product{grid-template-columns:1fr}.single-product .woocommerce-product-gallery{position:static;min-height:auto}.single-product .summary{border-left:0;padding:25px 0}.lls-configurator{margin:20px 0 0!important;padding:25px 0!important}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.container,.site-main,.content-area{width:min(calc(100% - 24px),var(--max))}.site-header__top{min-height:58px}.brand__name{font-size:21px}.header-links{gap:12px;font-size:11px}.hero__copy{padding:45px 22px}.hero__visual{min-height:310px}.benefits{grid-template-columns:1fr}.benefit{border-right:0;border-bottom:1px solid var(--line)}.section{padding:45px 0}.woocommerce ul.products{gap:14px}.woocommerce-products-header__title,.woocommerce .page-title{font-size:38px}.lls-intro-grid{grid-template-columns:1fr!important}.footer-grid{grid-template-columns:1fr}}


/* Óptica Providencia — experiencia inspirada en Warby Parker */
:root{--wp-blue:#414bdb;--wp-navy:#252b5c;--wp-sky:#dfe9ff;--wp-mint:#dcefe5;--wp-yellow:#f3e6a8;--wp-pink:#f2d9df}
body{font-family:Arial,Helvetica,sans-serif;color:#252525}
.announcement-bar{background:var(--wp-blue);font-weight:600}
.site-header{position:relative;border-bottom:1px solid #d8d8d8}
.site-header__top{min-height:66px}
.brand__name{font-family:Arial,Helvetica,sans-serif;font-size:25px;font-weight:800;letter-spacing:-.035em;color:var(--wp-blue)}
.brand__since{font-size:9px;color:#555}
.site-nav ul{gap:34px;padding:12px 10px}
.site-nav a{font-weight:500}
.site-nav a:hover{color:var(--wp-blue);text-decoration:none}
.hero{min-height:610px;background:var(--wp-sky)}
.hero__copy{padding:72px max(34px,7vw)}
.hero h1{font-family:Arial,Helvetica,sans-serif;font-weight:500;font-size:clamp(52px,6.5vw,96px);line-height:.93;letter-spacing:-.065em}
.hero__visual{min-height:610px;background:var(--wp-yellow)}
.hero__visual>div{max-width:620px}
.hero__visual>div>div{font-family:Arial,Helvetica,sans-serif!important;font-weight:500;letter-spacing:-.055em}
.btn,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border-color:var(--wp-blue)!important;background:var(--wp-blue)!important;border-radius:2px!important}
.btn--light{background:#fff!important;color:var(--wp-blue)!important}
.benefits{background:#fff}
.section h2,.shop-strip h2,.woocommerce-products-header__title,.woocommerce .page-title{font-family:Arial,Helvetica,sans-serif;font-weight:500;letter-spacing:-.05em}
.category-grid{gap:16px}
.category-card{min-height:460px;border-radius:2px}
.category-card:nth-child(1){background:var(--wp-mint)}
.category-card:nth-child(2){background:var(--wp-pink)}
.category-card:nth-child(3){background:var(--wp-sky)}
.category-card h3{font-family:Arial,Helvetica,sans-serif;font-weight:500;letter-spacing:-.04em}
.shop-strip{background:#fff}
.woocommerce ul.products{gap:22px 16px}
.woocommerce ul.products li.product a img{background:#f6f6f4}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-weight:500;font-size:17px}
.woocommerce ul.products li.product .price{font-weight:500;color:#555!important}
.single-product .woocommerce-product-gallery{background:#f6f6f4}
.single-product .summary{padding-top:26px}
.single-product .product_title{font-family:Arial,Helvetica,sans-serif;font-weight:500;font-size:34px}
.lls-configurator{font-family:Arial,Helvetica,sans-serif}
.lls-intro h2{font-family:Arial,Helvetica,sans-serif!important;font-weight:500!important;letter-spacing:-.045em}
.lls-progress li.is-active span,.lls-progress li.is-complete span{background:var(--wp-blue)!important;border-color:var(--wp-blue)!important}
.lls-choice:has(input:checked),.lls-rx-modes label:has(input:checked) span{border-color:var(--wp-blue)!important;box-shadow:inset 0 0 0 1px var(--wp-blue)!important}
.lls-next{background:var(--wp-blue)!important;border-color:var(--wp-blue)!important}
.lls-choice{transition:.15s ease}
.lls-choice:hover{transform:translateY(-1px);border-color:#888!important}
.site-footer{background:var(--wp-navy)}
@media(max-width:980px){.hero{min-height:0}.hero__visual{min-height:360px}.category-card{min-height:320px}}


/* Ficha de producto compacta — escritorio, tablet y celular */
.single-product .woocommerce-product-gallery{
  min-height:min(58vh,560px);
  padding:clamp(10px,2vw,24px);
}
.single-product .woocommerce-product-gallery img{
  max-height:52vh;
}
.single-product .summary{
  padding:22px 30px;
}
.single-product .product_title{
  margin:0 0 8px;
  font-size:30px;
  line-height:1.08;
}
.single-product .summary > .price,
.single-product .summary > p,
.single-product .summary > .stock{
  margin-top:6px;
  margin-bottom:10px;
}
.single-product .lls-configurator{
  margin:14px -30px -22px!important;
  padding:18px 30px!important;
}
.single-product .lls-intro-grid{
  gap:.75rem;
  align-items:center;
  margin-bottom:.7rem;
}
.single-product .lls-intro h2{
  margin-bottom:.25rem!important;
  font-size:26px!important;
  line-height:1!important;
}
.single-product .lls-intro p{
  font-size:.78rem;
  line-height:1.35;
}
.single-product .lls-live-total{
  min-width:130px;
  padding:.5rem .7rem;
}
.single-product .lls-live-total strong{
  font-size:1.05rem;
}
.single-product .lls-progress{
  margin-bottom:.85rem!important;
}
.single-product .lls-step-heading{
  margin-bottom:.7rem;
}

@media(max-width:980px){
  .single-product .woocommerce-product-gallery{
    min-height:0;
    padding:10px;
  }
  .single-product .woocommerce-product-gallery img{
    max-height:32vh;
  }
  .single-product .summary{
    padding:14px 0;
  }
  .single-product .product_title{
    font-size:27px;
  }
  .single-product .summary > .price{
    font-size:18px!important;
  }
  .single-product .summary > p,
  .single-product .summary > .stock{
    margin:5px 0 8px;
    font-size:14px;
  }
  .single-product .lls-configurator{
    margin:10px 0 0!important;
    padding:14px 0!important;
  }
  .single-product .lls-intro-grid{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px;
  }
  .single-product .lls-intro h2{
    white-space:nowrap;
    font-size:24px!important;
  }
  .single-product .lls-intro p,
  .single-product .lls-live-total small{
    display:none;
  }
  .single-product .lls-live-total{
    min-width:116px;
    padding:.42rem .6rem;
  }
  .single-product .lls-progress li{
    font-size:.62rem;
  }
}

@media(max-width:480px){
  .single-product .woocommerce-product-gallery img{
    max-height:26vh;
  }
  .single-product .product_title{
    font-size:24px;
  }
  .single-product .lls-intro h2{
    font-size:21px!important;
  }
  .single-product .lls-live-total{
    min-width:108px;
  }
  .single-product .lls-live-total span{
    font-size:.55rem;
  }
  .single-product .lls-live-total strong{
    font-size:.95rem;
  }
  .single-product .lls-progress li{
    font-size:.56rem;
  }
}


/* v0.4.2 site fixes */
html,body{overflow-x:hidden}
.menu-toggle{display:none;border:0;background:transparent;color:var(--wp-navy);font-size:0;line-height:1;cursor:pointer;padding:10px}
.menu-toggle__icon{font-size:26px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.woocommerce ul.products li.product .op-photo-frame{aspect-ratio:1/1;height:auto!important;min-height:0!important;background:#fff!important}
.woocommerce ul.products li.product .op-photo-frame img,.single-product .woocommerce-product-gallery__image img,.op-catalog-color img,.op-color-swatch img{transform:none!important;object-fit:contain!important;background:#fff!important}
.single-product .woocommerce-product-gallery .flex-control-thumbs{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;list-style:none!important;margin:10px 0 0!important;padding:0!important}
.single-product .woocommerce-product-gallery .flex-control-thumbs li{flex:0 0 76px!important;width:76px!important;margin:0!important}
.single-product .woocommerce-product-gallery .flex-control-thumbs img{display:block!important;width:76px!important;height:76px!important;object-fit:contain!important;background:#fff!important;border:1px solid #d8d8d8!important}
.gt_float_switcher,#gt_float_wrapper{position:fixed!important;top:auto!important;right:12px!important;bottom:12px!important;z-index:45!important;max-width:calc(100vw - 24px)!important}
@media(max-width:980px){
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  .site-nav{position:relative}
  .site-nav ul{display:none!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;overflow:visible!important;padding:8px 12px!important;background:#fff}
  .site-nav.is-open ul{display:flex!important}
  .site-nav ul li{border-bottom:1px solid #eee}
  .site-nav ul a{display:block;padding:12px 6px}
  .site-nav.is-open{box-shadow:0 8px 20px rgba(37,43,92,.12)}
}
@media(max-width:600px){
  .site-nav ul{max-height:calc(100vh - 160px);overflow-y:auto!important}
  .gt_float_switcher,#gt_float_wrapper{right:8px!important;bottom:8px!important;max-width:calc(100vw - 16px)!important}
  .single-product .woocommerce-product-gallery .flex-control-thumbs li,.single-product .woocommerce-product-gallery .flex-control-thumbs img{flex-basis:64px!important;width:64px!important;height:64px!important}
}

/* v0.4.2 language flow */
#gt_float_wrapper{position:static!important;top:auto!important;right:auto!important;bottom:auto!important;width:100%!important;height:auto!important;display:flex!important;justify-content:flex-end!important;box-sizing:border-box!important;padding:8px 12px!important;z-index:1!important}
#gt_float_wrapper .gt_float_switcher{position:static!important;top:auto!important;right:auto!important;bottom:auto!important;max-width:100%!important}
@media(max-width:600px){#gt_float_wrapper{padding:8px 12px!important;justify-content:flex-end!important}}


/* 2026-10: encabezado compacto en celular */
@media (max-width: 860px) {
  .announcement-bar { display: none !important; }
  .site-header { position: relative; }
  .site-header .site-header__top { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 8px 14px 8px 56px !important; }
  .site-header .header-links--left { display: none !important; }
  .site-header .brand { text-align: left; }
  .site-header .brand__name { font-size: 19px !important; line-height: 1.1 !important; letter-spacing: 0; white-space: nowrap; }
  .site-header .brand__since { display: none !important; }
  .site-header .header-links--right { display: flex; gap: 12px; font-size: 13px; white-space: nowrap; }
  .site-header .site-nav { position: static; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
  .site-header .menu-toggle { position: absolute; left: 10px; top: 9px; width: 40px; height: 40px; margin: 0 !important; display: grid; place-items: center; }
  .site-header #primary-navigation { border-top: 1px solid #e3e5ee; }
}
@media (max-width: 380px) {
  .site-header .brand__name { font-size: 16px !important; }
  .site-header .header-links--right { gap: 8px; font-size: 12px; }
}

@media (max-width: 860px) {
  .site-header .site-header__top { padding-right: 12px !important; }
  .site-header .header-links--right a[href*="mi-cuenta"] { display: none !important; }
  .site-header .header-links--right { margin-left: auto; }
  .site-header .brand__name { font-size: 17px !important; }
}
@media (max-width: 360px) { .site-header .brand__name { font-size: 15px !important; } }


/* 2026-10-27: portada más corta */
@media (min-width:901px){.hero{min-height:440px}.hero__visual{min-height:440px}.hero__copy{padding:48px max(34px,6vw)}.hero h1{font-size:clamp(44px,4.6vw,68px);margin-bottom:16px}.hero p{margin-bottom:24px}}
@media (max-width:900px){.hero__visual{min-height:240px}.hero__copy{padding:32px 22px}.hero h1{font-size:clamp(38px,10vw,52px)}}


/* 2026-10-29: isotipo Graduable */
.woocommerce ul.products li.product,ul.products li.product{position:relative}
.op-rx-badge{position:absolute;top:12px;left:12px;z-index:4;display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 8px;border-radius:999px;background:var(--wp-blue,#414bdb);color:#fff;font:700 12px/1 Arial,Helvetica,sans-serif;letter-spacing:.02em;box-shadow:0 4px 12px rgba(37,43,92,.22);pointer-events:none}
.op-rx-badge svg{width:18px;height:18px;flex:none}
.op-rx-badge--long{position:static;margin:0 0 14px;padding:8px 14px 8px 10px;font-size:13px}
.op-rx-badge--long svg{width:20px;height:20px}


/* 2026-10-29: foto en "Tu receta merece atención humana" */
.op-trust__grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;max-width:1180px}
.op-trust__img img{width:100%;height:100%;max-height:440px;object-fit:cover;object-position:center 30%;border-radius:14px;display:block}
.op-trust__copy{text-align:left}
.op-trust__copy p{margin:18px 0 28px}
@media (max-width:900px){.op-trust__grid{grid-template-columns:1fr;gap:24px}.op-trust__img img{max-height:280px}.op-trust__copy{text-align:center}}

/* 2026-10-29: fondo del bloque de confianza con el dominio nuevo (el CSS adicional apunta al dominio viejo) */
.home .site-main > .section.op-trust:last-child{background-image:linear-gradient(90deg,#1b2430,#4d5f6b)!important}
@media (max-width:782px){.home .site-main > .section.op-trust:last-child{background-image:linear-gradient(180deg,#1b2430,#4d5f6b)!important}}


/* 2026-10-29: submenú Marcas */
@media (min-width:981px){
  .site-nav #primary-navigation{overflow:visible}
  .site-nav .op-has-sub{position:relative}
  .site-nav ul.op-sub{display:none;position:absolute;top:100%;left:50%;transform:translateX(-50%);z-index:60;flex-direction:column;gap:0;min-width:200px;padding:10px;margin-top:8px;background:#fff;border:1px solid #e6e8f0;border-radius:12px;box-shadow:0 12px 30px rgba(37,43,92,.14);overflow:visible}
  .site-nav ul.op-sub::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
  .site-nav .op-has-sub:hover > ul.op-sub,.site-nav .op-has-sub:focus-within > ul.op-sub,.site-nav .op-has-sub.is-open > ul.op-sub{display:flex}
  .site-nav ul.op-sub a{display:block;padding:9px 14px;border-radius:8px;white-space:nowrap}
  .site-nav ul.op-sub a:hover{background:var(--wp-sky,#dfe9ff)}
}
@media (max-width:980px){
  .site-nav.is-open ul.op-sub{display:none!important;padding:0 0 6px 16px!important;box-shadow:none}
  .site-nav.is-open .op-has-sub.is-open > ul.op-sub{display:flex!important}
  .site-nav ul.op-sub li{border-bottom:0}
  .site-nav ul.op-sub a{padding:9px 6px;font-size:14px}
}
