/*
Theme Name: PIO Abogados Laboralistas
Theme URI: https://www.pioabogadoslaboralistas.es/
Author: PIO Abogados Laboralistas
Description: Tema propio, ligero y orientado a captación para PIO Abogados Laboralistas.
Version: 1.2.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: pio-laboralistas
*/

:root {
  --navy: #0d1b31;
  --navy-2: #132743;
  --ink: #152033;
  --gold: #cba15e;
  --gold-light: #e7c98e;
  --cream: #f7f3eb;
  --paper: #fffdfa;
  --white: #ffffff;
  --muted: #5f6875;
  --line: #e3ded4;
  --success: #176b48;
  --danger: #9a2f2f;
  --shadow: 0 18px 50px rgba(13, 27, 49, .12);
  --radius: 18px;
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; padding: 12px 18px; background: var(--white); }
.skip-link:focus { left: 12px; top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .55em; color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.2em; }
.lead { color: #334056; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.55; }
.muted { color: var(--muted); }
.section { padding: 96px 0; }
.section-sm { padding: 68px 0; }
.section-cream { background: var(--cream); }
.section-navy { color: rgba(255,255,255,.84); background: var(--navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--gold-light); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--navy); background: var(--gold-light); box-shadow: 0 10px 24px rgba(203,161,94,.25); }
.button-gold:hover { background: #f0d9a7; }
.button-outline { color: var(--white); border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.05); }
.button-navy { color: var(--white); background: var(--navy); }
.button-white { color: var(--navy); background: var(--white); }

.site-header { position: sticky; top: 0; z-index: 80; color: var(--white); background: rgba(13,27,49,.97); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; height: 58px; border-radius: 50%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 600; letter-spacing: .01em; }
.brand-copy span { margin-top: 4px; color: var(--gold-light); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: rgba(255,255,255,.9); font-size: .94rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--gold-light); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 800; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; color: var(--white); border: 0; background: transparent; font-weight: 800; }

.hero { position: relative; overflow: hidden; color: var(--ink); background: #efe6d8; }
.hero::before { position: absolute; inset: 0; content: ""; pointer-events: none; background: radial-gradient(circle at 18% 8%, rgba(203,161,94,.18), transparent 38%); }
.hero-grid { position: relative; display: grid; min-height: 680px; grid-template-columns: 1.02fr .98fr; align-items: stretch; }
.hero-mobile-photo { display: none; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 82px max(40px, 5vw) 82px max(20px, calc((100vw - 1160px)/2)); background: linear-gradient(135deg, rgba(255,253,250,.96), rgba(239,230,216,.92)); }
.hero h1 { color: var(--navy); }
.hero .lead { max-width: 670px; color: #425064; }
.hero-free { display: inline-flex; width: fit-content; margin: 8px 0 4px; padding: 8px 13px; color: var(--navy); border-radius: 999px; background: var(--gold-light); font-size: .78rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.hero-alert { display: flex; max-width: 690px; gap: 13px; margin: 22px 0 28px; padding: 15px 17px; color: #35445a; border: 1px solid rgba(203,161,94,.58); border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 10px 26px rgba(13,27,49,.06); font-size: .95rem; line-height: 1.45; }
.hero-alert strong { color: #815d25; }
.hero-copy .button-outline { color: var(--navy); border-color: rgba(13,27,49,.25); background: rgba(255,255,255,.72); }
.hero-copy .button-outline:hover { border-color: var(--gold); background: var(--white); }
.hero-media { position: relative; min-height: 560px; }
.hero-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, var(--navy) 0%, transparent 25%), linear-gradient(0deg, rgba(13,27,49,.28), transparent 45%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero-action { position: relative; display: grid; min-height: 680px; align-content: start; overflow: hidden; padding: 0 max(28px, calc((100vw - 1160px)/2)) 38px 32px; background: #e8ddcd; }
.hero-side-bg { position: relative; min-height: 325px; margin: 0 min(-28px, calc((1160px - 100vw)/2)) 0 -32px; overflow: hidden; }
.hero-side-bg::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 58%, rgba(13,27,49,.18) 100%); }
.hero-side-bg picture { display: block; width: 100%; height: 100%; }
.hero-side-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.hero-form-layer { position: relative; z-index: 2; width: min(100%, 520px); margin: -52px auto 0; }
.hero-form-layer .contact-card { background: rgba(255,253,250,.97); backdrop-filter: blur(10px); }
.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px 20px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item span { display: block; color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.trust-item strong { display: block; margin-top: 2px; color: var(--navy); }

.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 26px rgba(13,27,49,.05); }
.card-number { display: inline-grid; width: 42px; height: 42px; margin-bottom: 18px; place-items: center; color: var(--navy); border-radius: 50%; background: var(--gold-light); font-weight: 900; }
.check-list { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { position: absolute; left: 0; top: .08em; content: "✓"; color: var(--gold); font-weight: 900; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.service-card p { margin-bottom: 0; color: var(--muted); }
.deadline-panel { padding: 44px; border-radius: 24px; background: var(--navy); box-shadow: var(--shadow); }
.deadline-panel .big { display: block; margin-bottom: 10px; color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 8vw, 7rem); line-height: .9; }
.deadline-panel strong { color: var(--white); font-size: 1.15rem; }
.deadline-panel p { margin-top: 14px; color: rgba(255,255,255,.76); }

.contact-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact-card { padding: clamp(26px, 4vw, 44px); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.contact-card h2, .contact-card h3 { color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .9rem; font-weight: 800; }
.field input, .field textarea { width: 100%; padding: 13px 14px; color: var(--ink); border: 1px solid #cfd4dc; border-radius: 10px; background: var(--white); }
.field textarea { min-height: 116px; resize: vertical; }
.privacy-check { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; color: var(--muted); font-size: .88rem; }
.privacy-check input { margin-top: 5px; }
.privacy-check a { color: var(--navy); font-weight: 800; }
.form-note { color: var(--muted); font-size: .82rem; }
.fast-response { grid-column: 1 / -1; margin: 2px 0 0; padding: 12px 14px; color: var(--navy); border-radius: 10px; background: var(--cream); font-weight: 850; text-align: center; }
.form-status { margin-bottom: 22px; padding: 13px 15px; border-radius: 10px; font-weight: 700; }
.form-status-ok { color: var(--success); background: #e9f7f0; }
.form-status-error { color: var(--danger); background: #fbeded; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; }
.contact-list { display: grid; gap: 18px; margin: 30px 0; }
.contact-row { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; }
.contact-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy); border-radius: 50%; background: var(--gold-light); font-weight: 900; }
.contact-row a { font-weight: 800; text-decoration: none; }

.faq-list { display: grid; gap: 12px; max-width: 880px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.faq-list summary { padding: 20px 56px 20px 22px; color: var(--navy); font-weight: 850; cursor: pointer; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 22px; content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 20px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.page-hero { padding: 88px 0 72px; color: var(--white); background: var(--navy); }
.page-hero h1 { max-width: 930px; color: var(--white); }
.page-hero .lead { max-width: 770px; color: rgba(255,255,255,.8); }
.legal { max-width: 850px; }
.legal h2 { margin-top: 1.4em; font-size: 1.8rem; }
.legal h3 { margin-top: 1.25em; font-size: 1.3rem; }
.legal ul { padding-left: 1.2em; }
.legal a { color: #244d7f; }
.notice { padding: 18px 20px; border-left: 4px solid var(--gold); background: var(--cream); }

.site-footer { padding: 70px 0 34px; color: rgba(255,255,255,.75); background: #081426; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 70px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer h3 { font-family: inherit; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: rgba(255,255,255,.84); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { display: grid; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 50px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.mobile-actions { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 9px; }
.mobile-actions a { display: grid; width: 58px; min-height: 58px; place-items: center; padding: 0; color: var(--white); border: 2px solid rgba(255,255,255,.82); border-radius: 50%; box-shadow: 0 10px 28px rgba(13,27,49,.28); font-size: 0; font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.mobile-actions a::before { font-size: 1.25rem; line-height: 1; }
.mobile-actions .call::before { content: "☎"; }
.mobile-actions .whatsapp::before { content: "W"; font-family: Arial, sans-serif; }
.mobile-actions .call { background: var(--navy); }
.mobile-actions .whatsapp { background: #176b48; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 74px; padding: 20px; flex-direction: column; align-items: stretch; border-radius: 14px; background: var(--navy-2); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav .button { width: 100%; }
  .menu-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 70px max(20px, 6vw); }
  .hero-action { min-height: 0; padding: 0 max(20px, 6vw) 42px; }
  .hero-side-bg { min-height: 360px; margin: 0 max(-20px, -6vw); }
  .hero-form-layer { margin-top: -44px; }
  .hero-media { min-height: 420px; }
  .hero-media::after { background: linear-gradient(180deg, var(--navy) 0%, transparent 26%); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-2, .contact-shell { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --wrap: min(100% - 28px, 1160px); }
  body { padding-bottom: 68px; font-size: 16px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 54px 0; }
  .brand-copy strong { font-size: 1.02rem; }
  .brand-copy span { font-size: .58rem; }
  .brand img { width: 50px; height: 50px; }
  .header-inner { min-height: 70px; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-mobile-photo { display: block; min-height: 255px; background: #d8c9b4 url("assets/images/pio-consulta-laboral-hero-mobile.jpg") center center / cover no-repeat; }
  .hero-copy { padding: 38px 18px 34px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 10vw, 3rem); }
  .hero-copy .hero-alert, .hero-copy .button-row { display: none; }
  .hero-action { min-height: 0; padding: 0 14px 30px; }
  .hero-side-bg { display: none; }
  .hero-form-layer { margin-top: 0; }
  .hero-media { min-height: 320px; }
  .button-row .button { width: 100%; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 17px 12px; }
  .trust-item strong { font-size: .9rem; }
  .service-grid, .form-grid { grid-template-columns: 1fr; }
  .deadline-panel { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .mobile-actions { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); box-shadow: 0 -10px 30px rgba(13,27,49,.16); }
  .mobile-actions a { width: auto; min-height: 62px; padding: 8px 12px; border: 0; border-radius: 0; box-shadow: none; font-size: .84rem; }
  .mobile-actions a::before { content: none; }
  .mobile-actions .call { background: var(--navy); }
  .mobile-actions .whatsapp { background: #176b48; }
}

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