/*
Theme Name: Óptica Lazo
Theme URI: https://opticalazo.cl
Author: T-KREA
Description: Tema dinámico para Óptica Lazo, con catálogo, promociones, servicios y contacto por WhatsApp.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: optica-lazo
*/

:root {
  --navy: #151515;
  --navy-soft: #323232;
  --teal: #00a6ad;
  --aqua: #ebfafa;
  --aqua-2: #d5f3f3;
  --coral: #00a6ad;
  --muted: #626262;
  --line: #dce7e7;
  --white: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: #fff; font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 110px 0; }
.eyebrow { display: inline-block; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 22px; font-family: var(--serif); font-size: clamp(38px, 4vw, 60px); line-height: 1.02; letter-spacing: -.035em; }
p { color: var(--muted); line-height: 1.75; }

.topbar { min-height: 36px; padding: 8px max(24px, calc((100vw - 1180px)/2)); display: flex; justify-content: space-between; gap: 24px; align-items: center; background: var(--teal); color: #fff; font-size: 12px; }
.topbar p { margin: 0; color: #fff; line-height: 1.5; }
.topbar a { font-weight: 700; color: #a9efec; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(7,27,73,.07); backdrop-filter: blur(16px); }
.nav-wrap { height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; width: max-content; }
.brand img { width: 190px; height: auto; object-fit: contain; }
.nav { display: flex; gap: 30px; align-items: center; font-size: 14px; font-weight: 700; }
.nav li { list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; padding: 12px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 3px; border-radius: 2px; background: var(--teal); transition: .25s ease; }
.nav a:hover::after { right: 0; }
.header-whatsapp { justify-self: end; padding: 12px 17px; border: 1px solid #abd9dd; border-radius: 999px; font-size: 14px; font-weight: 800; }
.whatsapp-dot { color: #20c66b; margin-right: 5px; }
.menu-button { display: none; border: 0; background: transparent; padding: 10px; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--navy); }

.hero { position: relative; min-height: 790px; overflow: hidden; background: linear-gradient(105deg,#fff 0%,#fff 45%,#ecf9f9 100%); }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 68%; height: 100%; object-fit: cover; object-position: center; }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg,#fff 3%,#fff 35%,rgba(255,255,255,.92) 47%,rgba(255,255,255,.2) 66%,transparent 80%); }
.hero-content { position: relative; z-index: 2; min-height: 790px; padding-top: 95px; }
.hero-copy { width: min(590px,52%); }
.hero h1 { margin: 16px 0 30px; font-family: var(--serif); font-size: clamp(62px,6.3vw,91px); line-height: .94; letter-spacing: -.055em; font-weight: 700; }
.hero h1 em { color: var(--coral); font-weight: 400; }
.hero-copy > p { max-width: 560px; color: var(--navy-soft); font-size: 19px; line-height: 1.62; }
.hero-actions { display: flex; gap: 16px; margin: 34px 0 42px; }
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; border: 1.5px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(7,27,73,.12); }
.button.primary { background: var(--teal); color: #fff; box-shadow: 0 12px 30px rgba(0,166,173,.2); }
.button.secondary { border-color: var(--teal); color: var(--teal); background: rgba(255,255,255,.65); }
.button.white { background: #fff; color: var(--navy); }
.hero-benefits { display: flex; gap: 42px; }
.hero-benefits > div { display: flex; gap: 11px; align-items: center; }
.mini-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--aqua); font-size: 22px; }
.hero-benefits p { margin: 0; color: var(--navy); font-size: 12px; line-height: 1.35; }
.location-card { position: absolute; left: 0; bottom: 55px; width: 390px; padding: 19px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; background: rgba(255,255,255,.94); border: 1px solid rgba(7,142,152,.15); border-radius: 20px; box-shadow: 0 14px 40px rgba(7,27,73,.12); }
.location-card > span:first-child { width: 46px; height: 46px; display: grid; place-items: center; background: var(--aqua); border-radius: 50%; color: var(--teal); font-size: 24px; }
.location-card small { display: block; color: var(--muted); margin-bottom: 3px; }
.location-card strong { display: block; font-size: 15px; }
.location-card p { margin: 3px 0 0; font-size: 11px; line-height: 1.3; }
.hero-curve { position: absolute; z-index: 3; left: -5%; right: -5%; bottom: -68px; height: 120px; border-radius: 50% 50% 0 0; background: #fff; }

.intro { padding-top: 85px; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 11%; align-items: end; }
.intro h2 { max-width: 620px; margin: 14px 0 0; }
.intro-copy { padding-bottom: 7px; }
.intro-copy p { font-size: 18px; }
.text-link { display: inline-flex; gap: 12px; color: var(--teal); font-size: 14px; font-weight: 800; border-bottom: 1px solid #9bd1d5; padding-bottom: 7px; }
.collection { background: #f6fbfb; }
.section-heading { max-width: 750px; margin-bottom: 46px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-top: 13px; }
.section-heading p { max-width: 620px; margin: 0 auto; }
.catalog-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 25px; }
.catalog-tabs button { padding: 12px 21px; border: 1px solid #c8dfe2; border-radius: 999px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 800; cursor: pointer; }
.catalog-tabs button.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.catalog-feature { min-height: 500px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: #fff; border-radius: 30px; box-shadow: 0 24px 60px rgba(7,27,73,.09); }
.catalog-photo { position: relative; min-height: 500px; overflow: hidden; }
.catalog-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, object-position .4s ease; }
.catalog-feature:hover .catalog-photo img { transform: scale(1.025); }
.catalog-photo.crop-one img { object-position: 55% center; }
.catalog-photo.crop-two img { object-position: 27% center; }
.catalog-photo.crop-three img { object-position: 83% center; }
.photo-label { position: absolute; left: 24px; bottom: 24px; padding: 10px 14px; color: var(--navy); background: rgba(255,255,255,.92); border-radius: 999px; font-size: 11px; font-weight: 800; }
.catalog-copy { padding: 63px; align-self: center; animation: fadeUp .35s ease both; }
.catalog-copy h3 { margin: 13px 0 18px; font: 700 42px/1.04 var(--serif); letter-spacing: -.035em; }
.catalog-copy ul { list-style: none; padding: 0; margin: 24px 0 31px; }
.catalog-copy li { position: relative; margin: 13px 0; padding-left: 25px; color: var(--navy-soft); font-size: 14px; }
.catalog-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.wp-product-grid { margin-top: 35px; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.wp-product-grid article { overflow: hidden; background: #fff; border-radius: 20px; box-shadow: 0 12px 30px rgba(7,27,73,.07); }
.wp-product-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.wp-product-grid h3 { margin: 22px 22px 9px; font: 700 23px/1.2 var(--serif); }
.wp-product-grid p { margin: 0 22px 24px; font-size: 13px; }

.services-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 9%; align-items: center; }
.services-copy > p { max-width: 530px; font-size: 17px; }
.services-copy h2 { margin-top: 14px; }
.service-list { margin-top: 38px; }
.service-list article { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.service-list article > span { color: var(--teal); font-size: 12px; font-weight: 900; }
.service-list h3 { margin: -3px 0 6px; font: 700 22px/1.2 var(--serif); }
.service-list p { margin: 0; font-size: 14px; line-height: 1.6; }
.service-visual { position: relative; }
.service-visual img { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; border-radius: 34px 34px 120px 34px; background: var(--aqua); }
.service-badge { position: absolute; left: -35px; bottom: 34px; padding: 21px 25px; display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(7,27,73,.14); }
.service-badge strong { font-size: 14px; }
.service-badge span { margin-top: 4px; color: var(--teal); font-size: 12px; }

.process { background: var(--aqua); }
.section-heading.compact { max-width: 650px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.steps article { position: relative; padding: 35px; background: #fff; border-radius: 24px; }
.steps article > span { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 800; }
.steps h3 { margin-bottom: 9px; font: 700 25px/1.2 var(--serif); }
.steps p { margin: 0; font-size: 14px; }
.cta-band { padding: 75px 0; background: linear-gradient(120deg,#008e95,#00aeb5); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.cta-inner h2 { margin: 12px 0; font-size: clamp(38px,4vw,55px); }
.cta-inner p { max-width: 660px; margin: 0; color: #ced9eb; }
.eyebrow.light { color: #72d7d3; }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10%; }
.faq-grid h2 { margin-top: 14px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 25px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--navy); font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--teal); font-size: 22px; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -7px 45px 24px 0; font-size: 14px; }
.contact { padding-top: 35px; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; background: #f4fafa; border-radius: 32px; overflow: hidden; }
.contact-main { padding: 65px; }
.contact-main h2 { margin-top: 13px; }
.contact-details { padding: 56px; display: grid; align-content: center; background: var(--aqua-2); }
.contact-details div { padding: 20px 0; border-bottom: 1px solid rgba(7,27,73,.12); }
.contact-details div:last-child { border-bottom: 0; }
.contact-details small { display: block; margin-bottom: 7px; color: var(--teal); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.contact-details strong { display: block; font-size: 16px; }
.contact-details p { margin: 5px 0 0; font-size: 13px; }

footer { padding: 65px 0 20px; background: #111; color: #fff; border-top: 5px solid var(--teal); }
footer .brand { padding: 4px 12px; background: #fff; border-radius: 10px; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 48px; }
.footer-main p { max-width: 300px; color: #aaa; font-size: 13px; }
.footer-nav > strong, .footer-social > strong { display: block; margin-bottom: 17px; color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; color: #d9e1ee; font-size: 13px; }
.footer-social > div { display: flex; gap: 12px; }
.footer-social a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; font-size: 13px; }
.footer-social a:hover { border-color: var(--teal); background: var(--teal); }
.footer-social a span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; font-weight: 900; }
.footer-bottom { padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); color: #888; font-size: 11px; }
.floating-whatsapp { position: fixed; z-index: 60; right: 23px; bottom: 23px; width: 58px; height: 58px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; background: #20c66b; color: #fff; box-shadow: 0 10px 30px rgba(7,27,73,.22); font-size: 25px; }
.floating-whatsapp span { position: absolute; right: 52px; padding: 7px 10px; border-radius: 7px; background: var(--navy); font-size: 11px; font-weight: 700; opacity: 0; transform: translateX(5px); transition: .2s ease; }
.floating-whatsapp:hover span { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .shell { width: min(100% - 34px,760px); }
  .section { padding: 80px 0; }
  .nav-wrap { height: 72px; grid-template-columns: 1fr auto; }
  .menu-button { display: block; }
  .header-whatsapp { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; padding: 20px 24px 28px; display: none; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 35px rgba(7,27,73,.08); }
  .nav.open { display: flex; }
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-photo { position: relative; width: 100%; height: 480px; margin-top: 520px; object-position: 68% center; border-radius: 90px 0 0 0; }
  .hero-wash { background: linear-gradient(180deg,#fff 0,#fff 50%,rgba(255,255,255,.2) 67%,transparent); }
  .hero-content { position: absolute; inset: 0; min-height: auto; padding-top: 70px; }
  .hero-copy { width: 100%; }
  .hero-copy > p { max-width: 590px; }
  .location-card { display: none; }
  .hero-curve { display: none; }
  .intro-grid, .catalog-feature, .services-layout, .faq-grid, .contact-card { grid-template-columns: 1fr; }
  .catalog-photo { min-height: 430px; }
  .services-layout { gap: 55px; }
  .service-visual { max-width: 650px; margin: auto; }
  .steps { gap: 14px; }
  .contact-details { grid-template-columns: repeat(3,1fr); gap: 22px; padding: 40px; }
  .contact-details div { border-bottom: 0; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px,560px); }
  .topbar { justify-content: center; min-height: 32px; text-align: center; }
  .topbar a { display: none; }
  .brand { font-size: 14px; letter-spacing: .12em; }
  .brand-mark { width: 37px; height: 37px; border-width: 3px; }
  .brand-mark i { font-size: 20px; }
  .hero { padding-bottom: 0; }
  .hero-content { padding-top: 48px; }
  .hero h1 { font-size: clamp(52px,16vw,72px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-bottom: 30px; }
  .hero-benefits { gap: 14px; justify-content: space-between; }
  .hero-benefits > div { flex-direction: column; align-items: flex-start; gap: 7px; }
  .mini-icon { width: 38px; height: 38px; }
  .hero-photo { margin-top: 580px; height: 420px; object-position: 68% center; border-radius: 55px 0 0; }
  .intro { padding-top: 70px; }
  h2 { font-size: 41px; }
  .intro-grid { gap: 30px; }
  .catalog-tabs { overflow-x: auto; justify-content: flex-start; padding-bottom: 7px; }
  .catalog-tabs button { white-space: nowrap; }
  .catalog-feature { border-radius: 22px; }
  .catalog-photo { min-height: 300px; }
  .catalog-copy { padding: 36px 25px 42px; }
  .catalog-copy h3 { font-size: 35px; }
  .service-badge { left: 15px; bottom: 15px; }
  .steps { grid-template-columns: 1fr; }
  .wp-product-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .contact-main, .contact-details { padding: 37px 25px; }
  .contact-details { grid-template-columns: 1fr; gap: 0; }
  .contact-details div { border-bottom: 1px solid rgba(7,27,73,.12); }
  .footer-main, .footer-bottom { flex-direction: column; }
  .footer-links { gap: 18px; }
  .floating-whatsapp span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.admin-bar .site-header { top: 32px; }
.wp-content { min-height: 45vh; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
