/*
Theme Name: Yolanda Sánchez Orts
Theme URI: https://sanchezortsprocurador.com/
Author: Conversión desde Lovable
Description: Tema WordPress convertido desde el diseño original de Lovable para Yolanda Sánchez Orts, Procurador de los Tribunales.
Version: 1.1.0
Text Domain: yso
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --radius: .375rem;
  --background: oklch(0.985 0.006 85);
  --foreground: oklch(0.235 0.024 258);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.235 0.024 258);
  --primary: oklch(0.318 0.055 254);
  --primary-foreground: oklch(0.985 0.006 85);
  --secondary: oklch(0.945 0.012 85);
  --muted-foreground: oklch(0.44 0.02 258);
  --accent: oklch(0.93 0.02 85);
  --border: oklch(0.885 0.012 85);
  --input: oklch(0.855 0.014 85);
  --ring: oklch(0.318 0.055 254);
  --surface: oklch(0.262 0.038 256);
  --surface-foreground: oklch(0.97 0.008 85);
  --brass: oklch(0.53 0.085 75);
  --brass-foreground: oklch(0.99 0.004 85);
  --destructive: oklch(0.49 0.19 27);
  --shadow-card: 0 1px 2px oklch(0.235 0.024 258 / 8%), 0 12px 28px -18px oklch(0.235 0.024 258 / 30%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-family: var(--serif); letter-spacing: -.01em; margin-top: 0; }
p { margin-top: 0; }
button,input,textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.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; margin: 0; clip: auto; white-space: normal; left: 1rem; top: 1rem; z-index: 99999; background: var(--primary); color: var(--primary-foreground); padding: .6rem .9rem; border-radius: var(--radius); }

.container-page { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1.25rem; }
.site-main { padding-bottom: 3.5rem; }
.card-elevated { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); box-shadow: var(--shadow-card); border-radius: var(--radius); }
.muted { color: var(--muted-foreground); }
.brass { color: var(--brass); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--background) 95%, transparent); backdrop-filter: blur(8px); }
.topbar { background: var(--surface); color: var(--surface-foreground); }
.topbar-inner { min-height: 2.25rem; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .2rem 1.5rem; font-size: .875rem; font-weight: 600; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-brass { color: var(--brass); }
.header-main { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.brand-role { margin-top: .15rem; color: var(--muted-foreground); font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.primary-nav a { position: relative; display: inline-flex; padding: .65rem .75rem; text-decoration: none; color: var(--muted-foreground); font-size: .875rem; font-weight: 600; }
.primary-nav a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav .current_page_item>a { color: var(--foreground); }
.primary-nav a:hover::after,.primary-nav .current-menu-item>a::after,.primary-nav .current_page_item>a::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: transparent; color: var(--foreground); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--border); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem 0; }
.mobile-nav li { border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.mobile-nav a { min-height: 3rem; display: flex; align-items: center; color: var(--muted-foreground); text-decoration: none; font-weight: 500; }
.mobile-nav .current-menu-item a,.mobile-nav .current_page_item a { color: var(--foreground); font-weight: 700; }

/* Shared sections */
.page-hero { border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--secondary) 50%, transparent); padding: 3.5rem 0; }
.page-hero h1 { font-size: clamp(2rem,4vw,2.6rem); margin-bottom: 0; }
.page-hero p { max-width: 48rem; margin: 1.25rem 0 0; color: var(--muted-foreground); line-height: 1.7; }
.btn { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.5rem; border-radius: var(--radius); font-size: .875rem; font-weight: 700; text-decoration: none; transition: .2s; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); border: 1px solid var(--primary); }
.btn-primary:hover { opacity: .92; }
.btn-outline { border: 1px solid var(--input); background: transparent; color: var(--foreground); }
.btn-outline:hover { background: var(--accent); }
.btn-brass { background: var(--brass); color: var(--brass-foreground); border: 1px solid var(--brass); }
.btn-brass:hover { opacity: .9; }

/* Home */
.home-hero { border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--secondary) 50%, transparent); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 2.5rem; padding-top: 5rem; padding-bottom: 5rem; }
.home-hero h1 { font-size: clamp(2.3rem,5vw,3.2rem); margin-bottom: 0; }
.home-hero-name { margin: .75rem 0 0; font-family: var(--serif); font-size: 1.5rem; color: var(--brass); }
.home-hero-copy { max-width: 38rem; margin: 1.5rem 0 0; color: var(--muted-foreground); font-size: 1.08rem; line-height: 1.75; }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.college-note { margin: 2rem 0 0; border-left: 2px solid var(--brass); padding-left: 1rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.6; }
.college-note strong { display: block; color: var(--foreground); }
.hero-image { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hero-image img { width: 100%; aspect-ratio: 1.59/1; object-fit: cover; }
.section { padding: 4rem 0; }
.section-bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--secondary) 40%, transparent); }
.section h2 { font-size: clamp(1.6rem,3vw,2rem); margin-bottom: 0; }
.section-intro { max-width: 42rem; margin: .75rem 0 0; color: var(--muted-foreground); line-height: 1.65; }
.service-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.service-card { padding: 1.5rem; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.service-card p { margin: .6rem 0 0; color: var(--muted-foreground); font-size: .9rem; line-height: 1.65; }
.section-more { margin-top: 2rem; }
.contact-band { background: var(--surface); color: var(--surface-foreground); border-radius: var(--radius); padding: 2.5rem; }
.contact-band h2 { color: var(--surface-foreground); }
.contact-band-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; }
.contact-band-links a { display: inline-flex; gap: .7rem; align-items: center; font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.contact-band-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-band .btn { margin-top: 2rem; }

/* Partidos */
.partido-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.5rem; }
.partido-card { display: flex; flex-direction: column; overflow: hidden; }
.partido-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.partido-body { padding: 1.5rem; display: flex; flex: 1; flex-direction: column; }
.partido-body h3 { font-size: 1.12rem; margin-bottom: 0; }
.partido-kicker { margin: .35rem 0 0; color: var(--brass); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.partido-body p { margin: .75rem 0 0; color: var(--muted-foreground); font-size: .875rem; line-height: 1.65; flex: 1; }
.partido-body .btn { margin-top: 1.25rem; }

/* Services */
.services-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.services-page { padding: 3.5rem 0; }
.service-row { padding: 2rem; }
.service-number { margin: 0; font-family: var(--serif); font-size: .875rem; color: var(--brass); }
.service-row h2 { margin: .35rem 0 0; font-size: 1.55rem; }
.service-row .description { max-width: 48rem; margin: .75rem 0 0; color: var(--muted-foreground); line-height: 1.7; }
.services-cta { margin-top: 3rem; padding: 2rem; border: 1px solid var(--border); background: color-mix(in oklch, var(--secondary) 50%, transparent); border-radius: var(--radius); text-align: center; }
.services-cta p { max-width: 42rem; margin: 0 auto; color: var(--muted-foreground); font-size: .9rem; line-height: 1.6; }
.services-cta .btn { margin-top: 1.5rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 3rem; padding: 3.5rem 0; }
.contact-stack { display: grid; gap: 2rem; align-content: start; }
.contact-card { padding: 1.5rem; }
.contact-card h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; margin-bottom: 0; }
.contact-card .big-link { display: inline-block; margin-top: .75rem; color: var(--primary); font-size: 1.05rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; word-break: break-all; }
.contact-card ul { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .6rem; }
.contact-card li { display: flex; align-items: center; gap: .5rem; }
.contact-card address { margin-top: .75rem; font-style: normal; line-height: 1.7; }
.contact-card dl { margin: .75rem 0 0; font-size: .9rem; }
.contact-card dt { font-weight: 700; }
.contact-card dd { margin: .2rem 0 1rem; color: var(--muted-foreground); line-height: 1.55; }
.professional-card { padding: 1.5rem; border: 1px solid var(--border); background: color-mix(in oklch, var(--secondary) 50%, transparent); border-radius: var(--radius); }
.professional-card h2 { font-size: 1.15rem; }
.professional-card p { margin: .75rem 0 0; color: var(--muted-foreground); font-size: .9rem; line-height: 1.7; }
.professional-card strong { color: var(--foreground); }
.form-card { padding: 2rem; }
.form-card h2 { font-size: 1.55rem; margin-bottom: 0; }
.contact-form { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { display: block; font-size: .875rem; font-weight: 650; }
.field input,.field textarea { margin-top: .35rem; width: 100%; border: 1px solid var(--input); border-radius: var(--radius); background: var(--card); color: var(--foreground); padding: .7rem .8rem; font-size: 1rem; }
.field textarea { resize: vertical; min-height: 9rem; }
.short-input { max-width: 10rem; }
.checkbox-row { display: flex; gap: .75rem; align-items: flex-start; }
.checkbox-row input { width: 1.2rem; height: 1.2rem; margin-top: .1rem; accent-color: var(--primary); flex: 0 0 auto; }
.checkbox-row label { font-size: .875rem; line-height: 1.5; }
.checkbox-row a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.form-note { margin: 0; border-radius: var(--radius); background: var(--secondary); padding: 1rem; color: var(--muted-foreground); font-size: .875rem; line-height: 1.55; }
.form-status { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: var(--radius); font-size: .9rem; font-weight: 650; }
.form-status.success { background: #eaf6ee; color: #1e6537; border: 1px solid #b8dec4; }
.form-status.error { background: #fff0ef; color: #8d251f; border: 1px solid #efc0bc; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Legal */
.legal-wrap { padding: 3rem 0; }
.legal-content { max-width: 48rem; font-size: .975rem; line-height: 1.75; }
.legal-content h2 { margin: 2.5rem 0 .7rem; font-size: 1.3rem; }
.legal-content h3 { margin: 1.75rem 0 .6rem; font-size: 1.1rem; }
.legal-content p,.legal-content ul,.legal-content ol { color: var(--muted-foreground); }
.legal-content a { color: var(--foreground); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content li { margin: .25rem 0; }
.legal-content .plain-list { list-style: none; padding-left: 0; }
.notice-box { border: 1px solid var(--border); background: var(--secondary); border-radius: var(--radius); padding: 1rem; font-size: .875rem; }
.notice-box strong { color: var(--foreground); }
.table-wrap { overflow-x: auto; }
.legal-content table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
.legal-content caption { margin-bottom: .5rem; text-align: left; color: var(--muted-foreground); }
.legal-content th,.legal-content td { padding: .6rem 1rem .6rem 0; border-bottom: 1px solid var(--border); }

/* Footer */
.site-footer { margin-top: 5rem; border-top: 1px solid var(--border); background: var(--surface); color: var(--surface-foreground); }
.footer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.footer-title { margin: 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }
.footer-sub { margin: .2rem 0 0; color: color-mix(in oklch, var(--surface-foreground) 80%, transparent); font-size: .875rem; }
.footer-text { margin: 1rem 0 0; color: color-mix(in oklch, var(--surface-foreground) 82%, transparent); font-size: .875rem; line-height: 1.65; }
.footer-heading { margin: 0; font-size: 1rem; color: var(--surface-foreground); }
.footer-nav ul { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; }
.footer-nav a,.footer-contact a { color: color-mix(in oklch, var(--surface-foreground) 85%, transparent); text-decoration: none; }
.footer-nav a:hover,.footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact address { margin-top: .75rem; font-style: normal; font-size: .875rem; line-height: 1.7; color: color-mix(in oklch, var(--surface-foreground) 85%, transparent); }
.footer-contact .email { color: var(--brass); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid color-mix(in oklch, var(--surface-foreground) 15%, transparent); }
.footer-bottom p { margin: 0; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .75rem; color: color-mix(in oklch, var(--surface-foreground) 70%, transparent); }
.mobile-contact-bar { display: none; }

/* WordPress generic */
.wp-content { max-width: 48rem; padding-top: 3rem; padding-bottom: 3rem; line-height: 1.7; }
.wp-content p { color: var(--muted-foreground); }

@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .partido-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

@media (max-width: 640px) {
  .container-page { padding-inline: 1.1rem; }
  .site-main { padding-bottom: 3rem; }
  .topbar-inner { justify-content: center; }
  .topbar-email-text { display: none; }
  .brand-name { font-size: 1.1rem; }
  .brand-role { font-size: .66rem; }
  .home-hero h1 { font-size: 2.2rem; }
  .home-hero-name { font-size: 1.3rem; }
  .section { padding: 3.25rem 0; }
  .service-grid,.partido-grid,.footer-grid,.form-grid { grid-template-columns: 1fr; }
  .contact-band { padding: 2rem 1.5rem; }
  .contact-band-links { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .service-row,.form-card { padding: 1.5rem; }
  .page-hero { padding: 3rem 0; }
  .mobile-contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); background: color-mix(in oklch, var(--background) 96%, transparent); backdrop-filter: blur(8px); }
  .mobile-contact-bar a { min-height: 3rem; display: flex; justify-content: center; align-items: center; gap: .45rem; text-decoration: none; font-size: .875rem; font-weight: 650; }
  .mobile-contact-bar a + a { border-left: 1px solid var(--border); }
  .site-footer { margin-bottom: 3rem; }
}

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

/* ===== Logos Kit Digital / Next Generation EU (footer) ===== */

.footer-badges{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:1.25rem 2rem;
  margin-top:2rem;
  color:#fff;          /* los SVG usan fill="currentColor" */
}

.footer-badge{
  height:42px;
  width:auto;
  max-width:100%;
  opacity:.9;
}

@media (max-width:640px){
  .footer-badge{height:34px}
}
