/*
Theme Name: BarberOS
Theme URI: https://tubarberos.app
Author: BarberOS
Author URI: https://tubarberos.app
Description: Tema oficial de presentacion para BarberOS, el sistema operativo para barberias en Latinoamerica.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: barberos
*/

:root {
  --graphite: #151515;
  --ink: #242220;
  --smoke: #f7f4ef;
  --paper: #fffaf2;
  --red: #c7352b;
  --red-dark: #98241f;
  --blue: #1f5e8c;
  --steel: #6d7378;
  --green: #2f8f5b;
  --line: rgba(21, 21, 21, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--smoke); color: var(--ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.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; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: 12px 16px; margin: 8px; background: #fff; color: #111; z-index: 99999; }

.hero { min-height: 94svh; position: relative; overflow: hidden; color: #fff; background-color: #111; background-size: cover; background-position: center; padding: 22px clamp(18px, 4vw, 60px) 54px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,12,.93), rgba(12,12,12,.7) 48%, rgba(12,12,12,.34)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(180deg, rgba(247,244,239,0), var(--smoke)); pointer-events: none; }
.site-header { width: min(1180px, 100%); margin: 0 auto; position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.72); background: var(--red); font-weight: 900; }
.custom-logo { display: block; max-height: 48px; width: auto; }
.site-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.8); font-size: .95rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.2); color: #fff; cursor: pointer; font-size: 1.35rem; }

.button, .nav-cta { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; padding: 0 18px; font-weight: 800; transition: transform .18s ease, background-color .18s ease; }
.button:hover, .nav-cta:hover { transform: translateY(-2px); }
.button-primary, .nav-cta { background: var(--red); color: #fff; }
.button-secondary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }

.hero-content { width: min(1180px, 100%); min-height: calc(94svh - 92px); margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.02fr) minmax(360px,.78fr); align-items: center; gap: clamp(28px,5vw,72px); }
.hero-copy { max-width: 760px; padding: 70px 0 38px; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.04; letter-spacing: 0; }
.hero h1 { max-width: 790px; font-size: clamp(3.1rem,7vw,5.9rem); }
.lead { max-width: 660px; margin: 24px 0 0; color: rgba(255,255,255,.84); font-size: clamp(1.05rem,2vw,1.28rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.product-mockup { border: 1px solid rgba(255,255,255,.24); background: rgba(247,244,239,.94); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.34); padding: 18px; }
.mockup-top, .metric-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mockup-top { padding: 8px 4px 16px; border-bottom: 1px solid var(--line); }
.mockup-top span, .metric-row span { color: var(--steel); font-size: .82rem; font-weight: 700; }
.mockup-top strong { color: var(--green); font-size: 1.25rem; }
.calendar-grid { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 18px 0; }
.calendar-grid > span { color: var(--steel); font-size: .82rem; padding-top: 13px; }
.appointment { min-height: 44px; display: flex; align-items: center; border-left: 4px solid var(--green); background: #fff; padding: 0 12px; font-size: .92rem; font-weight: 800; }
.appointment.red { border-color: var(--red); }
.appointment.blue { border-color: var(--blue); }
.metric-row { border-top: 1px solid var(--line); padding-top: 16px; }
.metric-row div { flex: 1; background: #fff; padding: 12px; }
.metric-row strong { display: block; margin-top: 5px; font-size: 1rem; }

.proof-band { width: min(1180px,calc(100% - 36px)); margin: -28px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr); background: var(--graphite); color: #fff; border-top: 4px solid var(--red); }
.proof-band div { padding: 24px; border-right: 1px solid rgba(255,255,255,.13); }
.proof-band strong, .proof-band span { display: block; }
.proof-band span { margin-top: 6px; color: rgba(255,255,255,.62); font-size: .9rem; }
.section, .pricing { width: min(1180px,calc(100% - 36px)); margin: 0 auto; padding: 94px 0 0; }
.section-header { max-width: 720px; }
.section h2, .pricing h2, .architecture h2, .launch h2 { font-size: clamp(2rem,4vw,3.45rem); }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 34px; }
.feature, .phase, .plan { background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.feature h3, .phase h3, .plan h3 { margin: 0; font-size: 1.08rem; }
.feature p, .phase p, .plan p, .arch-text p, .launch p { color: #5c5751; line-height: 1.65; }
.module-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.module-strip span { border: 1px solid var(--line); background: #fff; padding: 10px 14px; font-size: .92rem; font-weight: 800; }

.architecture { width: min(1180px,calc(100% - 36px)); margin: 94px auto 0; display: grid; grid-template-columns: minmax(0,.8fr) minmax(340px,1fr); align-items: center; gap: 40px; background: var(--graphite); color: #fff; padding: clamp(28px,5vw,54px); }
.architecture p { max-width: 550px; }
.core-diagram { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); padding: 24px; }
.core { display: grid; place-items: center; min-height: 86px; background: var(--smoke); color: var(--graphite); font-size: 1.35rem; font-weight: 900; }
.verticals { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 14px; }
.verticals span { min-height: 62px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: rgba(255,255,255,.74); font-weight: 800; text-align: center; }
.verticals .active { background: var(--red); color: #fff; }
.phase-grid, .pricing-grid { display: grid; gap: 14px; margin-top: 34px; }
.phase-grid, .pricing-grid { grid-template-columns: repeat(3,1fr); }
.phase > span { display: block; color: var(--red); font-weight: 900; margin-bottom: 52px; }
.plan { min-height: 410px; display: flex; flex-direction: column; }
.plan.featured { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.plan.featured p, .plan.featured li, .plan.featured .plan-header span { color: rgba(255,255,255,.72); }
.plan-header strong { display: block; margin-top: 22px; font-size: 2.3rem; color: var(--red); }
.plan-header span { color: var(--steel); }
.plan ul { margin: auto 0 0; padding: 0; list-style: none; }
.plan li { border-top: 1px solid var(--line); padding: 11px 0; color: #4c4742; font-weight: 700; }
.plan.featured li { border-color: rgba(255,255,255,.15); }
.launch { width: min(1180px,calc(100% - 36px)); margin: 94px auto 54px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--red); color: #fff; padding: clamp(26px,5vw,50px); }
.launch .eyebrow { color: #fff; }
.launch p { max-width: 740px; color: rgba(255,255,255,.84); }
.launch .button-primary { background: #fff; color: var(--red-dark); flex: 0 0 auto; }
.site-footer { background: var(--graphite); color: rgba(255,255,255,.7); padding: 30px 18px; }
.footer-inner { width: min(1180px,100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; }

.content-page { width: min(900px,calc(100% - 36px)); margin: 0 auto; padding: 80px 0; line-height: 1.7; }
.content-page h1 { font-size: clamp(2.5rem,6vw,4.5rem); }

@media (max-width: 980px) {
  .hero-content, .architecture { grid-template-columns: 1fr; }
  .hero-content { align-items: end; }
  .product-mockup { max-width: 560px; }
  .proof-band, .feature-grid, .phase-grid, .pricing-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: grid; place-items: center; }
  .site-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--graphite); padding: 18px; box-shadow: 0 18px 35px rgba(0,0,0,.28); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 12px 0; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding-bottom: 34px; }
  .site-header { gap: 10px; }
  .nav-cta { display: none; }
  .hero-content { min-height: 0; }
  .hero h1 { font-size: 2.7rem; }
  .lead { font-size: 1rem; }
  .proof-band, .feature-grid, .phase-grid, .pricing-grid, .verticals { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: 1fr; }
  .calendar-grid > span { padding-top: 0; }
  .metric-row { flex-direction: column; align-items: stretch; }
  .launch, .footer-inner { align-items: flex-start; flex-direction: column; }
}

