/*
Theme Name: Cerrajería Lock Astra
Theme URI: https://lasvarascerrajerialock.com
Author: Cerrajería y Servicios Lock
Description: Tema hijo de Astra, moderno y adaptable, para Cerrajería y Servicios Lock en Las Varas, Nayarit.
Template: astra
Version: 2.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cerrajeria-lock
*/

:root {
  --lock-black: #042444;
  --lock-ink: #17191d;
  --lock-gold: #f2b91f;
  --lock-gold-soft: #ffd861;
  --lock-red: #e20e17;
  --lock-blue: #0875ec;
  --lock-silver: #c8cdd3;
  --lock-cream: #fff9e9;
  --lock-white: #ffffff;
  --lock-muted: #666a73;
  --lock-border: rgba(9, 10, 12, .11);
  --lock-radius: 24px;
  --lock-shadow: 0 18px 50px rgba(9, 10, 12, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--lock-ink);
  background: var(--lock-white);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6, .btn, .main-nav { font-family: Sora, Poppins, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--lock-red); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-title { margin: 0; max-width: 780px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -.045em; }
.section-copy { max-width: 720px; margin: 18px 0 0; color: var(--lock-muted); font-size: 1.04rem; }
.section-head { margin-bottom: 42px; }

.topbar { padding: 8px 0; color: #fff; background: var(--lock-black); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 24px; }
.topbar a { color: var(--lock-gold-soft); font-weight: 700; }
.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.96); border-bottom: 3px solid var(--lock-red); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(4,36,68,.08); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 248px; }
.brand-mark { width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; padding: 5px; overflow: hidden; border-radius: 18px; background: var(--lock-black); box-shadow: 0 9px 22px rgba(4,36,68,.20); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy small { margin-bottom: 5px; color: #9b7420; font-family: Sora, sans-serif; font-size: .57rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand-copy strong { display: flex; font-family: Sora, sans-serif; font-size: 1.65rem; font-weight: 800; letter-spacing: -.07em; }
.brand-copy i, .brand-copy em { font-style: normal; }
.brand-copy i { color: var(--lock-blue); }
.brand-copy em { color: var(--lock-red); }
.brand-text strong { display: block; line-height: 1.05; font-size: 1rem; }
.brand-text span { display: block; margin-top: 4px; color: var(--lock-muted); font-size: .72rem; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: .88rem; font-weight: 700; }
.main-nav a { color: var(--lock-black); transition: color .2s ease; }
.main-nav a:hover { color: var(--lock-red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--lock-black); background: var(--lock-gold); box-shadow: 0 10px 25px rgba(244,189,34,.28); }
.btn-dark { color: #fff; background: var(--lock-black); }
.btn-outline { color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.07); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--lock-black); color: #fff; font-size: 1.2rem; }

.hero { position: relative; overflow: hidden; min-height: 720px; color: #fff; background: var(--lock-black); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .47; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,36,68,.97) 0%, rgba(4,36,68,.82) 48%, rgba(4,36,68,.30) 100%), linear-gradient(0deg, rgba(4,36,68,.88), transparent 48%); }
.hero-inner { position: relative; z-index: 2; min-height: 720px; display: grid; align-items: center; grid-template-columns: 1.15fr .55fr; gap: 60px; padding: 100px 0 82px; }
.hero-copy { max-width: 790px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 8px 13px; color: var(--lock-gold-soft); border: 1px solid rgba(255,216,97,.35); border-radius: 999px; background: rgba(0,0,0,.26); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.75rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--lock-gold); text-shadow: 0 3px 22px rgba(242,185,31,.14); }
.hero p { max-width: 690px; margin: 24px 0 32px; color: rgba(255,255,255,.82); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-card { align-self: end; padding: 26px; border: 1px solid rgba(255,255,255,.18); border-top: 4px solid var(--lock-red); border-radius: var(--lock-radius); background: rgba(4,36,68,.78); backdrop-filter: blur(12px); box-shadow: var(--lock-shadow); }
.hero-card strong { display: block; color: var(--lock-gold); font-size: 2.35rem; line-height: 1; }
.hero-card span { display: block; margin-top: 7px; color: rgba(255,255,255,.7); font-size: .85rem; }
.hero-card hr { margin: 20px 0; border: 0; border-top: 1px solid rgba(255,255,255,.14); }

.trust-strip { position: relative; z-index: 3; margin-top: -38px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 22px; background: #fff; border-bottom: 4px solid var(--lock-blue); box-shadow: var(--lock-shadow); }
.trust-item { padding: 26px 24px; border-right: 1px solid var(--lock-border); }
.trust-item:last-child { border-right: 0; }
.trust-item b { display: block; font-size: .96rem; }
.trust-item span { color: var(--lock-muted); font-size: .8rem; }

.services { padding: 120px 0 92px; background: linear-gradient(180deg, #fff 0%, var(--lock-cream) 100%); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; overflow: hidden; min-height: 390px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; border-radius: var(--lock-radius); box-shadow: var(--lock-shadow); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.08); transition: transform .45s ease; }
.service-card:hover img { transform: scale(1.045); }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,20,39,1) 0%, rgba(4,36,68,.94) 42%, rgba(4,36,68,.25) 78%, rgba(4,36,68,.10) 100%); }
.service-card > div { position: relative; z-index: 2; }
.service-num { color: var(--lock-gold); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.service-card h3 { margin: 9px 0 8px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); font-size: 1.5rem; line-height: 1.15; }
.service-card p { margin: 0; color: rgba(255,255,255,.94); text-shadow: 0 1px 8px rgba(0,0,0,.55); font-size: .88rem; }
.service-detail-intro { margin-top: 92px; }
.service-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.service-detail { position: relative; overflow: hidden; padding: 32px; border: 1px solid rgba(4,36,68,.10); border-top: 5px solid var(--lock-blue); border-radius: 24px; background: #fff; box-shadow: 0 16px 42px rgba(4,36,68,.09); }
.service-detail::after { content: ""; position: absolute; width: 150px; height: 150px; right: -70px; top: -70px; border-radius: 50%; background: rgba(8,117,236,.06); }
.service-detail-electric { border-top-color: var(--lock-gold); }
.service-detail-electric::after { background: rgba(242,185,31,.10); }
.service-detail-weld { border-top-color: var(--lock-red); }
.service-detail-weld::after { background: rgba(226,14,23,.06); }
.detail-media { height: 205px; margin: -32px -32px 26px; overflow: hidden; background: var(--lock-black); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-detail:hover .detail-media img { transform: scale(1.04); }
.detail-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 24px; color: #fff; border-radius: 16px; background: var(--lock-black); font-size: 1.55rem; font-weight: 800; }
.detail-label { color: var(--lock-red); font-size: .68rem; font-weight: 800; letter-spacing: .11em; }
.service-detail h3 { margin: 8px 0 12px; color: var(--lock-black); font-size: 1.35rem; line-height: 1.16; }
.service-detail p { margin: 0 0 20px; color: var(--lock-muted); font-size: .86rem; }
.service-detail ul { display: grid; gap: 10px; margin: 0 0 25px; padding: 0; list-style: none; }
.service-detail li { position: relative; padding-left: 22px; color: #424650; font-size: .82rem; line-height: 1.45; }
.service-detail li::before { content: "✓"; position: absolute; left: 0; color: var(--lock-red); font-weight: 900; }
.service-detail > a { color: var(--lock-blue); font-family: Sora, sans-serif; font-size: .78rem; font-weight: 800; }

.about { padding: 108px 0; }
.about-grid { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-media { position: relative; }
.about-media img { width: 100%; min-height: 550px; object-fit: cover; border-radius: var(--lock-radius); box-shadow: var(--lock-shadow); }
.experience-badge { position: absolute; right: -24px; bottom: 32px; width: 172px; padding: 24px; color: #fff; border-radius: 20px; background: var(--lock-red); box-shadow: 0 18px 40px rgba(215,25,32,.25); }
.experience-badge strong { display: block; font-size: 2.6rem; line-height: 1; }
.experience-badge span { font-size: .78rem; }
.check-list { display: grid; gap: 13px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--lock-red); font-weight: 900; }

.gallery { padding: 100px 0; color: #fff; background: radial-gradient(circle at 90% 10%, #0b4c7c 0%, var(--lock-black) 42%, #03192f 100%); }
.gallery .section-copy { color: rgba(255,255,255,.65); }
.gallery .section-title { color: #fff; }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-auto-rows: 230px; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 18px; }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(2,20,39,.92)); }
.gallery-item span { position: absolute; z-index: 2; left: 16px; bottom: 14px; padding: 7px 10px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(2,20,39,.86); font-size: .72rem; font-weight: 700; }

.coffee-corner { padding: 105px 0; background: #fff8ec; }
.coffee-shell { position: relative; overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; padding: 58px; border: 1px solid rgba(90,49,26,.12); border-radius: 32px; background: linear-gradient(135deg, #fffdf8 0%, #f7ead6 100%); box-shadow: 0 24px 65px rgba(72,42,24,.12); }
.coffee-shell::before { content: ""; position: absolute; width: 210px; height: 210px; right: -80px; top: -90px; border-radius: 50%; background: rgba(226,14,23,.08); }
.coffee-copy { position: relative; z-index: 1; }
.coffee-copy .eyebrow { color: #a6532e; }
.coffee-copy p:not(.eyebrow) { margin: 20px 0 26px; color: #5f5148; font-size: 1.03rem; }
.coffee-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-instagram { color: #fff; background: linear-gradient(100deg, #833ab4, #e1306c 48%, #f77737); box-shadow: 0 12px 28px rgba(225,48,108,.24); }
.btn-facebook { color: #fff; background: #1877f2; box-shadow: 0 12px 28px rgba(24,119,242,.22); }
.coffee-note { display: block; margin-top: 16px; color: #796b62; font-size: .78rem; }
.instagram-panel { position: relative; z-index: 1; overflow: hidden; padding: 22px; border-radius: 24px; background: #fff; box-shadow: 0 18px 45px rgba(72,42,24,.14); }
.instagram-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.instagram-mark { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 14px; background: linear-gradient(135deg, #833ab4, #e1306c, #fcb045); font-size: 1.7rem; font-weight: 700; }
.instagram-head div { flex: 1; line-height: 1.25; }
.instagram-head strong, .instagram-head small { display: block; }
.instagram-head strong { color: #2b2521; font-family: Sora, sans-serif; font-size: .9rem; }
.instagram-head small { margin-top: 3px; color: #8b7b70; font-size: .72rem; }
.instagram-head > a { color: #0875ec; font-size: .78rem; font-weight: 800; }
.instagram-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.instagram-preview a { aspect-ratio: 1; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: #fff; border-radius: 16px; background: linear-gradient(145deg, #6b3e28, #bf7042); transition: transform .2s ease; }
.instagram-preview a:nth-child(2) { background: linear-gradient(145deg, #e1306c, #f77737); }
.instagram-preview a:nth-child(3) { background: linear-gradient(145deg, #042444, #0875ec); }
.instagram-preview a:hover { transform: translateY(-3px); }
.instagram-preview span { font-size: 2rem; line-height: 1; }
.instagram-preview b { font-family: Sora, sans-serif; font-size: .72rem; line-height: 1.25; }
.instagram-help { margin: 13px 0 0; color: #8b7b70; text-align: center; font-size: .72rem; }
.instagram-live { max-height: 560px; overflow: auto; }
.coffee-extras { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 8px; }
.flavor-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 27px; color: #fff; border-radius: 22px; box-shadow: 0 15px 35px rgba(72,42,24,.13); }
.flavor-card-barra { background: linear-gradient(135deg, #6b3e28, #a95e35); }
.flavor-card-promesa { background: linear-gradient(135deg, #075985, #0ea5e9); }
.flavor-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.16); font-size: 1.65rem; }
.flavor-card small { color: rgba(255,255,255,.72); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.flavor-card h3 { margin: 5px 0 8px; color: #fff; font-size: 1.2rem; }
.flavor-card p { margin: 0 0 18px; color: rgba(255,255,255,.88); font-size: .82rem; }
.flavor-card > a { grid-column: 2; color: #fff; font-family: Sora, sans-serif; font-size: .78rem; font-weight: 800; }

.location { padding: 108px 0; background: #fff; }
.location-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 58px; align-items: center; }
.location-copy > p:not(.eyebrow) { margin: 20px 0 25px; color: var(--lock-muted); }
.location-details { display: grid; gap: 13px; margin: 0 0 28px; }
.location-details span { display: flex; flex-direction: column; padding-left: 16px; border-left: 4px solid var(--lock-red); }
.location-details b { color: var(--lock-black); font-family: Sora, sans-serif; font-size: .78rem; }
.location-details a { color: var(--lock-blue); font-weight: 700; }
.map-frame { overflow: hidden; min-height: 480px; border: 8px solid #fff; border-radius: 28px; background: #e8edf2; box-shadow: var(--lock-shadow); }
.map-frame iframe { display: block; width: 100%; height: 480px; border: 0; }

.contact { padding: 100px 0; background: linear-gradient(120deg, var(--lock-gold), #ffd75f); border-top: 8px solid var(--lock-red); }
.contact-grid { display: grid; align-items: center; grid-template-columns: 1fr auto; gap: 44px; }
.contact h2 { margin: 0; max-width: 750px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.05em; }
.contact p { margin: 16px 0 0; max-width: 670px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; min-width: 230px; }

.site-footer { padding: 65px 0 25px; color: rgba(255,255,255,.72); background: #03192f; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .95fr; gap: 70px; }
.footer-logo { width: 290px; max-width: 100%; height: auto; }
.site-footer h3 { margin: 0 0 14px; color: #fff; font-size: 1rem; }
.site-footer p, .site-footer li { font-size: .86rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; }

.whatsapp-float { position: fixed; z-index: 55; right: 22px; bottom: 22px; width: 60px; height: 60px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #22c55e; box-shadow: 0 15px 35px rgba(34,197,94,.32); font-size: 1.55rem; font-weight: 900; }
.inner-page { padding: 90px 0; min-height: 55vh; }
.inner-page h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; }
.entry-content { max-width: 850px; }

@media (max-width: 980px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 82px; left: 20px; right: 20px; padding: 22px; display: none; align-items: stretch; flex-direction: column; border-radius: 18px; background: #fff; box-shadow: var(--lock-shadow); }
  .main-nav.is-open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 350px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 50px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .coffee-shell { grid-template-columns: 1fr; gap: 38px; padding: 42px; }
  .coffee-extras { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner span:first-child { display: none; }
  .brand { min-width: 0; }
  .brand { gap: 9px; }
  .brand-mark { width: 52px; height: 52px; flex-basis: 52px; border-radius: 15px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 1.35rem; }
  .site-header, .header-inner { min-height: 78px; }
  .main-nav { top: 78px; }
  .hero, .hero-inner { min-height: 680px; }
  .hero-inner { padding: 85px 0 70px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .hero-card { display: none; }
  .trust-strip { margin-top: 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; border-radius: 0; box-shadow: none; }
  .trust-item { border-bottom: 1px solid var(--lock-border); }
  .services { padding-top: 78px; }
  .service-grid, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 350px; }
  .about { padding: 80px 0; }
  .about-media img { min-height: 430px; }
  .experience-badge { right: 12px; bottom: 12px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item:first-child { grid-row: span 1; }
  .coffee-corner { padding: 75px 0; }
  .coffee-shell { padding: 28px 20px; border-radius: 24px; }
  .instagram-preview { grid-template-columns: 1fr; }
  .instagram-preview a { min-height: 150px; aspect-ratio: auto; }
  .flavor-card { grid-template-columns: 1fr; }
  .flavor-card > a { grid-column: 1; }
  .location { padding: 75px 0; }
  .map-frame, .map-frame iframe { min-height: 380px; height: 380px; }
  .contact-actions { min-width: 0; }
  .footer-bottom { flex-direction: column; }
}
