/*
Theme Name: DomínGlez
Theme URI: https://dominglez.com
Author: José Manuel Domínguez González
Description: Tema personalizado para DomínGlez — Abogado en Madrid
Version: 2.13.1
Text Domain: dominglez
*/

/* ============================================
   RESET & BASE
   ============================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'DM Sans',sans-serif;font-size:16px;line-height:1.7;color:#4B4F58;background:#faf9f6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button{cursor:pointer;border:none;background:none;font-family:inherit}
input,select,textarea{font-family:inherit;font-size:inherit}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root{
  --navy:#182434;
  --navy-mid:#1e2d40;
  --navy-light:#243448;
  --gold:#CBA557;
  --gold-dark:#b8943e;
  --gold-light:rgba(203,165,87,0.06);
  --gold-glow:rgba(203,165,87,0.1);
  --ink:#1a1a1a;
  --body:#4B4F58;
  --body-light:#6b6f78;
  --cream:#faf9f6;
  --stone:#f3f0eb;
  --white:#ffffff;
  --rule:rgba(24,36,52,0.1);
  --rule-light:rgba(24,36,52,0.06);
  --shadow-sm:0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:0 8px 32px rgba(0,0,0,0.08);
  --radius-sm:4px;
  --radius-md:8px;
  --radius-lg:12px;
  --transition:0.3s ease;
  --max-width:1200px;
  --nav-height:72px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,h2,h3,h4,h5,h6{font-family:'DM Serif Display',serif;font-weight:400;color:var(--navy);line-height:1.2}
h1{font-size:clamp(2rem,4vw,3rem)}
h2{font-size:clamp(1.5rem,3vw,2.25rem)}
h3{font-size:clamp(1.2rem,2.5vw,1.5rem)}
h4{font-size:1.125rem}
p{margin-bottom:1rem}
p:last-child{margin-bottom:0}
.text-gold{color:var(--gold)}
.text-navy{color:var(--navy)}
em,.accent{font-family:'DM Serif Display',serif;color:var(--gold);font-style:italic}

/* ============================================
   LAYOUT
   ============================================ */
.container{width:100%;max-width:var(--max-width);margin:0 auto;padding:0 2rem}
.section{padding:5rem 0}
.section--stone{background:var(--stone)}
.section--navy{background:var(--navy);color:var(--cream)}

/* ============================================
   SECTION LABEL
   ============================================ */
.section-label{font-size:0.6875rem;letter-spacing:3px;text-transform:uppercase;color:var(--gold-dark);margin-bottom:1.5rem;display:flex;align-items:center;gap:10px;font-family:'DM Sans',sans-serif;font-weight:500}
.section-label::before{content:'';width:20px;height:2px;background:var(--gold);display:inline-block}
.section-label--light{color:rgba(203,165,87,0.7)}
.section-label--light::before{background:rgba(203,165,87,0.5)}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header{position:sticky;top:0;z-index:100;background:var(--white);border-bottom:1px solid var(--rule);transition:all var(--transition)}
.site-header.scrolled{box-shadow:var(--shadow-sm)}
.site-nav{display:flex;align-items:center;justify-content:space-between;height:var(--nav-height);max-width:var(--max-width);margin:0 auto;padding:0 2rem}
.site-logo{font-family:Georgia,'Times New Roman',serif;font-size:1.7rem;color:var(--navy);font-weight:400}
.site-logo span{color:var(--gold);font-weight:700;font-style:italic}
.site-logo a{display:flex;align-items:center;gap:0}
.nav-menu{display:flex;align-items:center;gap:2rem}
.nav-menu a{font-size:0.6875rem;letter-spacing:1.5px;text-transform:uppercase;color:var(--body);transition:color var(--transition);font-weight:500}
.nav-menu a:hover,.nav-menu a.current{color:var(--navy)}
.nav-cta{display:inline-block;padding:0.5rem 1.25rem;background:var(--gold);color:var(--navy);font-size:0.6875rem;letter-spacing:1.5px;text-transform:uppercase;border-radius:var(--radius-sm);font-weight:600;transition:background var(--transition)}
.nav-cta:hover{background:var(--gold-dark)}
.nav-cta-primary{background:#fff;color:var(--navy);margin-left:.5rem}.nav-cta-primary:hover{background:var(--cream)}

/* Hamburger */
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:28px;height:28px;cursor:pointer;z-index:110}
.nav-toggle span{display:block;height:2px;background:var(--navy);border-radius:2px;transition:all var(--transition)}
.nav-toggle span:nth-child(3){width:60%}
.nav-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.nav-toggle.active span:nth-child(2){opacity:0}
.nav-toggle.active span:nth-child(3){width:100%;transform:rotate(-45deg) translate(5px,-5px)}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb{font-size:0.75rem;color:var(--body);margin-bottom:1.5rem}
.breadcrumb a{color:var(--body);transition:color var(--transition)}
.breadcrumb a:hover{color:var(--gold-dark)}
.breadcrumb .current{color:var(--gold-dark);font-weight:500}
.breadcrumb .sep{margin:0 0.5rem;opacity:0.4}

/* ============================================
   BUTTONS
   ============================================ */
.btn{display:inline-flex;align-items:center;gap:0.5rem;font-size:0.75rem;letter-spacing:2px;text-transform:uppercase;padding:0.875rem 2rem;border-radius:var(--radius-sm);font-weight:500;transition:all var(--transition);font-family:'DM Sans',sans-serif}
.btn--primary{background:var(--navy);color:var(--cream)}
.btn--primary:hover{background:var(--navy-mid)}
.btn--gold{background:var(--gold);color:var(--navy)}
.btn--gold:hover{background:var(--gold-dark)}
.btn--outline{border:1px solid var(--rule);color:var(--navy);background:transparent}
.btn--outline:hover{border-color:var(--gold);color:var(--gold-dark)}
.btn--outline-light{border:1px solid rgba(255,255,255,0.2);color:var(--cream)}
.btn--outline-light:hover{border-color:var(--gold);color:var(--gold)}
.btn--sm{padding:0.625rem 1.25rem;font-size:0.6875rem}
.btn--arrow::after{content:'\2192';transition:transform var(--transition)}
.btn--arrow:hover::after{transform:translateX(3px)}

/* ============================================
   HERO
   ============================================ */
.hero{position:relative;min-height:75vh;display:flex;align-items:center;overflow:hidden;background:var(--navy)}
.hero::before{content:'';position:absolute;inset:0;background:
    linear-gradient(135deg, rgba(24,36,52,0.97) 0%, rgba(30,45,64,0.95) 50%, rgba(24,36,52,0.98) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(203,165,87,0.03) 80px, rgba(203,165,87,0.03) 81px),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(203,165,87,0.03) 80px, rgba(203,165,87,0.03) 81px),
    linear-gradient(135deg, rgba(203,165,87,0.04) 25%, transparent 25%, transparent 50%, rgba(203,165,87,0.04) 50%, rgba(203,165,87,0.04) 75%, transparent 75%);
    background-size: 100% 100%, 81px 81px, 81px 81px, 160px 160px}
.hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(203,165,87,0.15),transparent)}
.hero__content{position:relative;z-index:1;max-width:600px}
.hero__content .section-label{color:rgba(203,165,87,0.6)}
.hero__content .section-label::before{background:rgba(203,165,87,0.4)}
.hero__title{margin-bottom:1.5rem;color:var(--cream);font-size:clamp(2.25rem,4.5vw,3.25rem);line-height:1.15}
.hero__title em{color:var(--gold)}
.hero__subtitle{font-size:1rem;color:rgba(255,255,255,0.55);line-height:1.8;margin-bottom:2.5rem;max-width:480px;font-weight:300}
.hero__actions{display:flex;gap:1rem;flex-wrap:wrap}
.hero__actions .btn--outline{border-color:rgba(255,255,255,0.15);color:rgba(255,255,255,0.7)}
.hero__actions .btn--outline:hover{border-color:var(--gold);color:var(--gold)}
.hero__badge{margin-top:2rem;font-size:0.625rem;letter-spacing:2.5px;text-transform:uppercase;color:rgba(255,255,255,0.25)}

/* ============================================
   ABOUT PREVIEW (homepage)
   ============================================ */
.about-preview{display:grid;grid-template-columns:140px 1fr;gap:2.5rem;align-items:start;padding:4rem 0;max-width:720px}
.about-preview__photo{width:140px;height:140px;border-radius:50%;overflow:hidden;border:3px solid var(--rule-light);flex-shrink:0;margin-top:0.5rem}
.about-preview__photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
.about-preview__text h2{margin-bottom:1rem;font-size:clamp(1.25rem,2.5vw,1.75rem)}
.about-preview__text p{color:var(--body);margin-bottom:1rem;font-size:0.9375rem;line-height:1.7}
.about-preview__text .btn{margin-top:0.25rem}

/* ============================================
   AREAS GRID
   ============================================ */
.areas-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:2.5rem}
.area-card{background:var(--white);border-radius:var(--radius-md);padding:2rem;border:1px solid var(--rule-light);position:relative;overflow:hidden;transition:all var(--transition)}
.area-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform 0.4s ease}
.area-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.area-card:hover::before{transform:scaleX(1)}
.area-card__icon{width:48px;height:48px;border-radius:50%;background:var(--gold-light);display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;font-size:1.25rem;color:var(--gold-dark)}
.area-card__title{font-size:1.25rem;margin-bottom:0.75rem}
.area-card__desc{font-size:0.875rem;color:var(--body);line-height:1.6;margin-bottom:1.25rem}
.area-card__link{font-size:0.75rem;letter-spacing:1.5px;text-transform:uppercase;color:var(--gold-dark);font-weight:500;display:inline-flex;align-items:center;gap:0.5rem;transition:gap var(--transition)}
.area-card__link:hover{gap:0.75rem}

/* ============================================
   AREAS LIST (editorial style)
   ============================================ */
.areas-list{margin-top:2.5rem;border-top:1px solid var(--rule)}
.area-item{display:flex;align-items:center;justify-content:space-between;padding:1.75rem 0;border-bottom:1px solid var(--rule);transition:all var(--transition);gap:2rem}
.area-item:hover{padding-left:0.75rem}
.area-item__text{flex:1}
.area-item__title{font-size:1.25rem;margin-bottom:0.25rem;transition:color var(--transition)}
.area-item:hover .area-item__title{color:var(--gold-dark)}
.area-item__desc{font-size:0.875rem;color:var(--body);line-height:1.6;margin-bottom:0}
.area-item__arrow{font-size:1.25rem;color:var(--gold);opacity:0;transition:all var(--transition);flex-shrink:0}
.area-item:hover .area-item__arrow{opacity:1;transform:translateX(4px)}

/* ============================================
   CIFRAS / STATS
   ============================================ */
.cifras{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;padding:3.5rem 0;text-align:center}
.cifra__number{font-family:'DM Serif Display',serif;font-size:2.5rem;color:var(--gold);line-height:1}
.cifra__label{font-size:0.6875rem;letter-spacing:1.5px;text-transform:uppercase;color:rgba(255,255,255,0.45);margin-top:0.5rem}

/* ============================================
   CTA SECTION
   ============================================ */

/* About - Experiencia */
.about-experience {
    margin-top: 3rem;
}
.about-experience h2 {
    color: var(--navy);
    margin-bottom: 1.5rem;
}
.about-experience p {
    color: var(--navy);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 72ch;
}

.cta-section{text-align:center;max-width:600px;margin:0 auto;padding:4rem 2rem}
.cta-section h2{margin-bottom:1rem}
.cta-section p{margin-bottom:2rem;color:var(--body)}
.cta-section--dark h2{color:var(--cream)}
.cta-section--dark h2 em{color:var(--gold)}
.cta-section--dark p{color:rgba(255,255,255,0.55)}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:2.5rem}
.blog-card{background:var(--white);border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--rule-light);transition:all var(--transition)}
.blog-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.blog-card__image{height:200px;background:var(--stone);overflow:hidden}
.blog-card__image img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s ease}
.blog-card:hover .blog-card__image img{transform:scale(1.05)}
.blog-card__body{padding:1.5rem}
.blog-card__cat{font-size:0.625rem;letter-spacing:2px;text-transform:uppercase;color:var(--gold-dark);font-weight:500;margin-bottom:0.75rem;display:inline-block}
.blog-card__title{font-size:1.125rem;margin-bottom:0.75rem;line-height:1.3}
.blog-card__title a{transition:color var(--transition)}
.blog-card__title a:hover{color:var(--gold-dark)}
.blog-card__excerpt{font-size:0.875rem;color:var(--body);line-height:1.6;margin-bottom:1rem}
.blog-card__meta{font-size:0.75rem;color:var(--body-light)}

/* ============================================
   FOOTER
   ============================================ */
.site-footer{background:var(--navy);color:rgba(255,255,255,0.6);padding:4rem 0 0}
.footer-grid { display:grid;grid-template-columns:1.5fr repeat(4, 1fr);gap:3rem;margin-bottom:3rem}
.footer-col h4{font-family:'DM Sans',sans-serif;font-size:0.6875rem;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,0.3);margin-bottom:1.25rem;font-weight:500}
.footer-col p{font-size:0.875rem;line-height:1.7}
.footer-col a{font-size:0.875rem;display:block;margin-bottom:0.625rem;transition:color var(--transition)}
.footer-col a:hover{color:var(--gold)}
.footer-brand{font-family:Georgia,'Times New Roman',serif;font-size:1.25rem;color:var(--cream);margin-bottom:1rem;font-weight:400}
.footer-brand span{color:var(--gold);font-weight:700;font-style:italic}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.08);padding:1.5rem 0;display:flex;justify-content:space-between;align-items:center;font-size:0.75rem}
.footer-bottom a{margin-left:1.5rem;transition:color var(--transition)}
.footer-bottom a:hover{color:var(--gold)}

/* ============================================
   SERVICE LANDING
   ============================================ */
.service-hero{padding:3rem 0 2rem}
.service-hero h1{margin-bottom:1rem}
.service-hero p{font-size:1.0625rem;max-width:600px;line-height:1.7}
.service-content{display:grid;grid-template-columns:1fr 320px;gap:3rem;padding:3rem 0}
.service-main h2{margin:2rem 0 1rem}
.service-main p{line-height:1.8}
.service-main ul{margin:1rem 0;padding-left:0}
.service-main ul li{padding:0.5rem 0 0.5rem 1.5rem;position:relative;font-size:0.9375rem;border-bottom:1px solid var(--rule-light)}
.service-main ul li::before{content:'';position:absolute;left:0;top:50%;width:6px;height:6px;border-radius:50%;background:var(--gold);transform:translateY(-50%)}

/* Service Sidebar */
.service-sidebar{position:sticky;top:calc(var(--nav-height) + 2rem);align-self:start}
.sidebar-card{background:var(--white);border:1px solid var(--rule-light);border-radius:var(--radius-md);padding:1.5rem;margin-bottom:1.5rem}
.sidebar-card h3{font-size:1.125rem;margin-bottom:1rem}
.sidebar-areas a{display:flex;justify-content:space-between;align-items:center;padding:0.75rem 0;border-bottom:1px solid var(--rule-light);font-size:0.875rem;transition:color var(--transition)}
.sidebar-areas a:last-child{border-bottom:none}
.sidebar-areas a:hover{color:var(--gold-dark)}
.sidebar-areas a.current{color:var(--gold-dark);font-weight:500}
.sidebar-areas a span{color:var(--gold);font-size:0.875rem}
.sidebar-cta{background:var(--navy);border-radius:var(--radius-md);padding:2rem 1.5rem;text-align:center;color:var(--cream)}
.sidebar-cta h3{color:var(--cream);margin-bottom:0.75rem}
.sidebar-cta p{font-size:0.875rem;color:rgba(255,255,255,0.6);margin-bottom:1.25rem}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section{padding:4rem 0;border-top:1px solid var(--rule)}
.faq-list{max-width:720px;margin-top:2rem}
.faq-item{border-bottom:1px solid var(--rule)}
.faq-question{width:100%;text-align:left;padding:1.25rem 0;font-family:'DM Serif Display',serif;font-size:1.0625rem;color:var(--navy);display:flex;justify-content:space-between;align-items:center;cursor:pointer;transition:color var(--transition)}
.faq-question:hover{color:var(--gold-dark)}
.faq-question .faq-icon{font-family:'DM Sans',sans-serif;font-size:1.25rem;color:var(--gold);transition:transform var(--transition)}
.faq-item.active .faq-icon{transform:rotate(45deg)}
.faq-answer{max-height:0;overflow:hidden;transition:max-height 0.4s ease}
.faq-answer p{padding-bottom:1.25rem;font-size:0.9375rem;line-height:1.7;color:var(--body)}

/* ============================================
   SINGLE POST
   ============================================ */
.post-header{text-align:center;padding:3rem 0;max-width:720px;margin:0 auto}
.post-header__cat{font-size:0.625rem;letter-spacing:2px;text-transform:uppercase;color:var(--cream);background:var(--gold);padding:0.375rem 1rem;border-radius:var(--radius-sm);display:inline-block;margin-bottom:1.25rem;font-weight:500}
.post-header__title{margin-bottom:1rem}
.post-header__meta{font-size:0.8125rem;color:var(--body-light);display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap}
.post-content{display:grid;grid-template-columns:1fr 280px;gap:3rem;max-width:1000px;margin:0 auto;padding:3rem 2rem}
.post-body{font-size:1rem;line-height:1.85}
.post-body h2{margin:2.5rem 0 1rem;font-size:1.5rem}
.post-body h3{margin:2rem 0 0.75rem;font-size:1.25rem}
.post-body blockquote{border-left:3px solid var(--gold);padding:1rem 1.5rem;margin:2rem 0;background:var(--gold-light);border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-family:'DM Serif Display',serif;font-size:1.0625rem;font-style:italic;color:var(--navy)}
.post-body ul,.post-body ol{margin:1rem 0;padding-left:1.5rem}
.post-body ul li,.post-body ol li{margin-bottom:0.5rem}
.post-body ul li{list-style:disc}
.post-body ol li{list-style:decimal}

/* TOC Sidebar */
.toc{position:sticky;top:calc(var(--nav-height) + 2rem);align-self:start;background:var(--white);border:1px solid var(--rule-light);border-radius:var(--radius-md);padding:1.5rem}
.toc h4{font-family:'DM Sans',sans-serif;font-size:0.6875rem;letter-spacing:2px;text-transform:uppercase;color:var(--gold-dark);margin-bottom:1rem;font-weight:500}
.toc a{display:block;padding:0.5rem 0;font-size:0.8125rem;color:var(--body);border-bottom:1px solid var(--rule-light);transition:color var(--transition)}
.toc a:last-child{border-bottom:none}
.toc a:hover,.toc a.active{color:var(--gold-dark)}

/* Author Card */
.author-card{display:flex;gap:1.5rem;padding:2rem;background:var(--stone);border-radius:var(--radius-md);margin:3rem 0;align-items:center}
.author-card__avatar{width:80px;height:80px;border-radius:50%;background:var(--rule);flex-shrink:0;overflow:hidden}
.author-card__avatar img{width:100%;height:100%;object-fit:cover}
.author-card__info h4{font-size:1.125rem;margin-bottom:0.375rem}
.author-card__info p{font-size:0.8125rem;color:var(--body);line-height:1.5}
.author-card__info .tag{font-size:0.6875rem;color:var(--gold-dark);font-weight:500;margin-top:0.375rem;display:inline-block}

/* Related Posts */
.related-posts{padding:4rem 0;border-top:1px solid var(--rule)}

/* ============================================
   ARCHIVE
   ============================================ */
.archive-header{padding:3rem 0 2rem}
.archive-header h1{margin-bottom:0.75rem}
.archive-header p{font-size:1.0625rem;color:var(--body);max-width:500px}
.archive-filters{display:flex;gap:0.5rem;flex-wrap:wrap;margin-bottom:2.5rem}
.filter-pill{padding:0.5rem 1.25rem;border:1px solid var(--rule);border-radius:2rem;font-size:0.75rem;letter-spacing:1px;text-transform:uppercase;color:var(--body);cursor:pointer;transition:all var(--transition);background:transparent;text-decoration:none}
.filter-pill:hover,.filter-pill.active{background:var(--navy);color:var(--cream);border-color:var(--navy)}
.archive-layout{display:grid;grid-template-columns:1fr 320px;gap:3rem}
.archive-list{display:flex;flex-direction:column;gap:1.5rem}
.archive-item{display:grid;grid-template-columns:200px 1fr;gap:1.5rem;background:var(--white);border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--rule-light);transition:all var(--transition)}
.archive-item:hover{box-shadow:var(--shadow-md)}
.archive-item__image{background:var(--stone);min-height:160px;overflow:hidden}
.archive-item__image img{width:100%;height:100%;object-fit:cover}
.archive-item__body{padding:1.25rem 1.25rem 1.25rem 0;display:flex;flex-direction:column;justify-content:center}
.archive-item__cat{font-size:0.625rem;letter-spacing:2px;text-transform:uppercase;color:var(--gold-dark);font-weight:500;margin-bottom:0.5rem}
.archive-item__title{font-size:1.125rem;margin-bottom:0.5rem;line-height:1.3}
.archive-item__title a:hover{color:var(--gold-dark)}
.archive-item__excerpt{font-size:0.8125rem;color:var(--body);line-height:1.6;margin-bottom:0.75rem}
.archive-item__meta{font-size:0.75rem;color:var(--body-light)}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:0.5rem;padding:3rem 0}
.pagination a,.pagination span{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid var(--rule);border-radius:var(--radius-sm);font-size:0.8125rem;color:var(--body);transition:all var(--transition)}
.pagination a:hover{border-color:var(--gold);color:var(--gold-dark)}
.pagination .current{background:var(--navy);color:var(--cream);border-color:var(--navy)}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page{padding:3rem 0}
.contact-page h1{margin-bottom:0.5rem}
.contact-intro{font-size:1.0625rem;color:var(--body);margin-bottom:2.5rem;max-width:420px;line-height:1.6}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
.form{display:flex;flex-direction:column;gap:1.25rem}
.field{display:flex;flex-direction:column;gap:0.375rem}
.field label{font-size:0.6875rem;letter-spacing:1px;text-transform:uppercase;color:var(--body);font-weight:500}
.field input,.field select,.field textarea{background:var(--white);border:1px solid #e0ddd8;border-radius:var(--radius-md);padding:0.8125rem 1rem;font-size:0.875rem;color:var(--ink);outline:none;transition:border-color var(--transition),box-shadow var(--transition);-webkit-appearance:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-glow)}
.field input::placeholder,.field textarea::placeholder{color:#b5b2ad}
.field textarea{min-height:120px;resize:vertical}
.field select{color:var(--body);cursor:pointer;background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%234B4F58' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-legal{font-size:0.6875rem;color:var(--body);opacity:0.5;line-height:1.5}
.contact-info-side{display:flex;flex-direction:column;gap:1.25rem}
.info-card{padding:1.5rem;background:var(--white);border-radius:var(--radius-md);border:1px solid #e8e5e0}
.info-card h3{font-size:1rem;margin-bottom:1rem}
.info-detail{display:flex;align-items:center;gap:0.75rem;font-size:0.875rem;color:var(--body);margin-bottom:0.75rem}
.info-detail:last-child{margin-bottom:0}
.info-icon{width:36px;height:36px;border-radius:50%;background:var(--stone);display:flex;align-items:center;justify-content:center;font-size:0.875rem;color:var(--gold-dark);flex-shrink:0}
.map-embed{height:180px;border-radius:var(--radius-md);overflow:hidden;border:1px solid #e8e5e0}
.map-embed iframe{width:100%;height:100%;border:0}
.horario-card{padding:1.5rem;background:var(--white);border-radius:var(--radius-md);border:1px solid #e8e5e0}
.horario-card h3{font-size:1rem;margin-bottom:1rem}
.horario-row{display:flex;justify-content:space-between;padding:0.5rem 0;font-size:0.875rem;border-bottom:1px solid var(--rule-light)}
.horario-row:last-child{border-bottom:none}
.horario-row .dia{color:var(--navy);font-weight:500}
.horario-row .hora{color:var(--body)}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero{display:grid;grid-template-columns:0.8fr 1.2fr;gap:3rem;align-items:end;padding:3rem 0 0}
.about-photo{height:400px;background:var(--stone);border-radius:var(--radius-sm) var(--radius-sm) 0 0;overflow:hidden}
.about-photo img{width:100%;height:100%;object-fit:cover}
.about-hero-text{padding-bottom:2rem}
.about-hero-text h1{margin-bottom:1rem}
.about-hero-text p{font-size:0.9375rem;line-height:1.7;margin-bottom:1rem}
.about-tag{display:inline-block;padding:0.375rem 1rem;border:1px solid var(--gold);font-size:0.625rem;letter-spacing:2px;text-transform:uppercase;color:var(--gold-dark);border-radius:var(--radius-sm)}
.about-body{display:grid;grid-template-columns:1fr 1fr;gap:3rem;padding:3rem 0}
.about-block h2{margin-bottom:1rem}
.about-block p{font-size:0.9375rem;line-height:1.7}
.timeline{padding:3rem 0;border-top:1px solid var(--rule)}
.timeline h2{margin-bottom:1.5rem}
.tl-item{display:grid;grid-template-columns:80px 1fr;gap:1.25rem;padding:1.25rem 0;border-bottom:1px solid var(--rule)}
.tl-item:first-child{border-top:1px solid var(--rule)}
.tl-year{font-family:'DM Serif Display',serif;font-size:1.25rem;color:var(--gold-dark)}
/* ——— RGPD Consent Checkbox ——— */
.form__consent { margin: 1.5rem 0; }
.form__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--navy); opacity: 0.65;
    line-height: 1.5;
    cursor: pointer;
}
.form__consent-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--gold);
}
.form__consent-label a { color: var(--gold); text-decoration: underline; }
.form__consent-label a:hover { color: #b8953e; }
.form__alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.form__alert--success {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
}
.form__alert--error {
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: #e74c3c;
}
.form__alert p { margin: 0; }

/* ——— Generic Page Content ——— */
.container--narrow { max-width: 800px; }
.page-content { color: var(--stone); line-height: 1.8; font-size: 0.95rem; }
.page-content h2 { color: var(--white); font-size: 1.25rem; margin: 2.5rem 0 1rem; font-weight: 600; }
.page-content h3 { color: var(--gold); font-size: 1.05rem; margin: 2rem 0 0.75rem; font-weight: 600; }
.page-content p { margin-bottom: 1rem; }
.page-content ul { margin: 0 0 1.5rem 1.25rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content a { color: var(--gold); text-decoration: underline; }
.page-content a:hover { color: var(--white); }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.85rem; }
.page-content th { background: rgba(203,165,87,0.1); color: var(--gold); text-align: left; padding: 0.75rem; border-bottom: 2px solid rgba(203,165,87,0.3); font-weight: 600; }
.page-content td { padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--stone); }
.page-content em { color: rgba(243,240,235,0.5); font-style: italic; }
.page-content strong { color: var(--white); }

/* ============================================
   RESPONSIVE — TABLET & MOBILE
   ============================================ */

@media (max-width: 768px) {
  /* Nav: show hamburger, overlay menu */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
    border-top: 1px solid var(--rule);
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { font-size: 0.9375rem; letter-spacing: 2px; }
  .nav-cta { margin-top: 0.5rem; }

  /* Sections */
  .section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }

  /* Hero */
  .hero { min-height: 60vh; }
  .hero__content { padding: 0 0.5rem; }
  .hero__title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero__subtitle { font-size: 0.9375rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Blog grid → 1 col */
  .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Areas grid → 1 col */
  .areas-grid { grid-template-columns: 1fr; }

  /* Areas list items */
  .area-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .area-item__arrow { display: none; }

  /* Cifras → 2x2 */
  .cifras { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 2.5rem 0; }
  .cifra__number { font-size: 2rem; }

  /* About preview */
  .about-preview {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom a { margin-left: 0; margin: 0 0.5rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Service */
  .service-content { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }

  /* Post */
  .post-content { grid-template-columns: 1fr; padding: 2rem 1.25rem; }
  .toc { position: static; margin-bottom: 2rem; }

  /* Archive */
  .archive-layout { grid-template-columns: 1fr; }
  .archive-item { grid-template-columns: 1fr; }
  .archive-item__image { min-height: 180px; }
  .archive-item__body { padding: 1.25rem; }

  /* About page */
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { height: 280px; }
  .about-body { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 60px 1fr; gap: 1rem; }

  /* CTA */
  .cta-section { padding: 3rem 1.25rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .hero { min-height: 55vh; }
  .hero__title { font-size: 1.625rem; margin-bottom: 1rem; }
  .hero__subtitle { font-size: 0.875rem; margin-bottom: 1.5rem; }
  .hero__badge { font-size: 0.5625rem; }
  .blog-card__image { height: 160px; }
  .author-card { flex-direction: column; text-align: center; }
  .post-header { padding: 2rem 0; }
  .post-header__meta { flex-direction: column; gap: 0.5rem; }
  .nav-menu a { font-size: 1rem; }
  .site-nav { padding: 0 1rem; }
}


/* -- Nav Dropdown -- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    background: none; border: none; color: #4b4f58;
    font-family: inherit; font-size: 0.6875rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .05em;
    cursor: pointer; display: flex; align-items: center;
    gap: .375rem; padding: 0; letter-spacing: 1.5px;
}
.nav-dropdown-trigger svg { transition: transform .2s ease; }
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.is-open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 1rem); left: 50%;
    transform: translateX(-50%); background: var(--white);
    border-radius: .75rem; box-shadow: 0 20px 60px rgba(0,0,0,.15);
    padding: 1.5rem 2rem; display: none; gap: 2.5rem;
    min-width: 640px; z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu::before {
    content: ''; position: absolute; top: -1rem;
    left: 0; right: 0; height: 1rem;
}
.dropdown-col { display: flex; flex-direction: column; gap: .25rem; }
.dropdown-label {
    font-size: .6875rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: .5rem; display: block;
}
.dropdown-col a {
    color: var(--navy); font-size: .875rem; font-weight: 400;
    padding: .375rem 0; text-decoration: none;
    transition: color .2s ease; white-space: nowrap;
}
.dropdown-col a:hover { color: var(--gold); }
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static; transform: none;
        background: var(--stone); box-shadow: none;
        border-radius: .5rem; padding: .75rem 1rem;
        min-width: 0; flex-direction: column; gap: 1rem;
    }
    .nav-dropdown-menu::before { display: none; }
    .dropdown-col a { color: var(--navy); font-size: .875rem; }
    .dropdown-col a:hover { color: var(--gold); }
    .dropdown-label { font-size: .625rem; }
    .nav-dropdown-trigger { width: 100%; justify-content: space-between; }
}

/* Footer addresses */
.footer-address {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
}
/* Consulta preliminar CTA on contact page */
.jmd-consulta-cta{background:var(--navy)!important;border-color:var(--navy)!important;color:#fff}
.jmd-consulta-cta h3{color:var(--gold)}
.jmd-consulta-cta p{color:rgba(255,255,255,0.85);line-height:1.6}
.jmd-cta-btn{display:inline-block;background:var(--gold);color:var(--navy);padding:10px 22px;border-radius:6px;font-weight:700;text-decoration:none;font-size:0.9em;transition:background 0.2s,transform 0.1s;margin-top:8px}
.jmd-cta-btn:hover{background:#b8943e;transform:translateY(-1px);color:var(--navy)}
.contact-info-side .horario-card+.horario-card{margin-top:1.25rem}

/* ============================================
   TOOLS HUB
   ============================================ */
.tools-hub h2{font-size:1.75rem;margin:3rem 0 0.5rem;color:var(--navy)}
.tools-hub h2:first-of-type{margin-top:0}
.tools-hub-intro{color:#666;margin-bottom:1.5rem;font-size:1rem;line-height:1.7}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem;margin-bottom:2rem}
.tool-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e8e4df;border-radius:8px;padding:1.5rem;text-decoration:none;color:inherit;transition:border-color .2s,box-shadow .2s}
.tool-card:hover{border-color:var(--gold);box-shadow:0 2px 12px rgba(0,0,0,.06)}
.tool-card-icon{width:44px;height:44px;border-radius:8px;background:var(--stone);display:flex;align-items:center;justify-content:center;margin-bottom:1rem;color:var(--navy)}
.tool-card-title{font-size:1rem;font-weight:600;color:var(--navy);margin:0 0 .5rem;line-height:1.3}
.tool-card-desc{font-size:.875rem;color:#666;line-height:1.6;flex:1;margin:0 0 1rem}
.tool-card-cta{font-size:.8125rem;font-weight:600;color:var(--gold);letter-spacing:.5px}
.tool-card:hover .tool-card-cta{color:var(--navy)}
@media(max-width:768px){.tools-grid{grid-template-columns:1fr}}

/* Mobile tools nav - show simplified links on mobile, hide on desktop */
.nav-mobile-tools{display:none}
@media(max-width:768px){
    .nav-dropdown-menu .dropdown-col{display:none}
    .nav-mobile-tools{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 1rem;background:var(--stone);border-radius:.5rem}
    .nav-mobile-tools a{font-size:.875rem;color:var(--navy);padding:.25rem 0}
    .nav-mobile-tools a:last-child{color:var(--gold);font-weight:600;margin-top:.25rem}
}

/* ── Credentials strip ── */
.credentials{padding:2.5rem 0;background:var(--stone);border-top:1px solid rgba(24,36,52,.04)}
.credentials__grid{display:flex;align-items:center;justify-content:center;gap:0;max-width:800px;margin:0 auto}
.credentials__item{flex:1;text-align:center;padding:0 1.5rem}
.credentials__item--text .credentials__label{font-size:.8125rem;font-weight:600;color:var(--navy);text-transform:uppercase;letter-spacing:.08em}
.credentials__divider{width:1px;height:3rem;background:rgba(24,36,52,.12);flex-shrink:0}
.credentials__number{display:block;font-size:1.5rem;font-weight:700;color:var(--navy);letter-spacing:-.02em;line-height:1.2}
.credentials__label{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--navy);opacity:.75;margin-top:.25rem}
.credentials__detail{display:block;font-size:.6875rem;color:var(--navy);opacity:.75;margin-top:.35rem;line-height:1.4}
@media(max-width:768px){
.credentials__grid{flex-direction:column;gap:1.25rem;max-width:100%}
.credentials__item{padding:.5rem 0}
.credentials__divider{width:2rem;height:1px}
}


/* ── Post CTA (article bottom) ── */
.post-cta{margin:2.5rem 0;padding:2rem 2.5rem;background:linear-gradient(135deg,#f8f7f4,#f0efe9);border-radius:16px;text-align:center;border:1px solid rgba(24,36,52,.06)}
.post-cta h3{color:var(--navy);font-size:1.35em;margin:0 0 .4em}
.post-cta p{color:#555;font-size:.95em;margin:0 0 1.2em;line-height:1.5}
.post-cta__buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.post-cta__btn{display:inline-flex;align-items:center;gap:8px;padding:.85em 1.8em;border-radius:10px;text-decoration:none;font-weight:700;font-size:.95em;transition:transform .15s,box-shadow .15s;font-family:'DM Sans',sans-serif}
.post-cta__btn:hover{transform:translateY(-2px)}
.post-cta__btn--primary{background:linear-gradient(135deg,var(--navy),#1e3a5f);color:#fff;box-shadow:0 4px 15px rgba(24,36,52,.25)}
.post-cta__btn--primary:hover{box-shadow:0 8px 25px rgba(24,36,52,.35);color:#fff}
@media(max-width:600px){.post-cta{padding:1.5rem 1.2rem}.post-cta__buttons{flex-direction:column}.post-cta__btn{justify-content:center}}

/* ── Global floating CTA ── */
.jmd-global-float{position:fixed;bottom:24px;right:24px;z-index:9990;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.jmd-global-float__btn{display:flex;align-items:center;gap:10px;padding:14px 22px;border-radius:50px;text-decoration:none;font-family:'DM Sans',sans-serif;font-weight:600;font-size:.95em;box-shadow:0 4px 20px rgba(0,0,0,.2);transition:transform .2s,box-shadow .2s;cursor:pointer;border:none;line-height:1;position:relative}
.jmd-global-float__btn:hover{transform:translateY(-3px);box-shadow:0 8px 30px rgba(0,0,0,.3)}
.jmd-global-float__btn svg{flex-shrink:0}
.jmd-global-float__btn--contact{background:linear-gradient(135deg,#182434,#1e3a5f);color:#fff}
.jmd-global-float__btn--contact:hover{color:#fff}
.jmd-global-float__pulse{position:absolute;top:-4px;right:-4px;width:14px;height:14px;background:#CBA557;border-radius:50%;animation:jmdGlobalPulse 2s infinite}
@keyframes jmdGlobalPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.3)}}
@media(max-width:600px){.jmd-global-float{bottom:16px;right:16px}.jmd-global-float__btn{padding:12px 18px;font-size:.88em}}

/* === Áreas de Práctica Hub === */
.page-hero--areas { background: var(--navy); }
.areas-section { padding: 5rem 0; }
.areas-section--alt { background: #f8f7f4; }
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.area-card {
    background: #fff;
    border: 1px solid #e8e6e1;
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: var(--navy);
    transition: all 0.3s ease;
    display: block;
}
.area-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.area-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--gold);
}
.area-card__icon svg { width: 100%; height: 100%; }
.area-card h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
    color: var(--navy);
}
.area-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}
.areas-section--alt .area-card { background: #fff; }


/* === EQUIPO PAGE === */
.equipo-intro{max-width:720px;margin:0 auto 3rem;text-align:center}
.equipo-intro h2{font-family:Georgia,'Times New Roman',serif;font-size:1.8rem;color:var(--navy);margin-bottom:1rem}
.equipo-intro p{color:#555;font-size:1.05rem;line-height:1.7}
.equipo-director{max-width:720px;margin:0 auto 3rem}
.equipo-card--director{background:var(--navy);color:var(--cream);border-radius:8px;padding:2.5rem}
.equipo-card-info h3{font-family:Georgia,'Times New Roman',serif;font-size:1.5rem;margin:0 0 .3rem;color:var(--cream)}
.equipo-cargo{color:var(--gold);font-weight:600;font-size:1.1rem;margin:0 0 .2rem}
.equipo-colegiado{color:var(--cream);opacity:.6;font-size:.85rem;margin:0 0 1rem}
.equipo-card-info p:last-of-type{line-height:1.7;margin-bottom:1.2rem}
a.equipo-contacto{color:var(--gold);text-decoration:none;font-weight:600;border-bottom:1px solid transparent;transition:border-color .2s}
a.equipo-contacto:hover{border-color:var(--gold)}
.equipo-profesionales{max-width:900px;margin:0 auto 3rem}
.equipo-profesionales h2{font-family:Georgia,'Times New Roman',serif;font-size:1.5rem;color:var(--navy);margin-bottom:1rem}
.equipo-profesionales>p{color:#555;line-height:1.7;margin-bottom:2rem}
.equipo-areas{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2.5rem}
.equipo-area{background:#f8f7f4;border-radius:6px;padding:1.5rem}
.equipo-area h4{font-family:Georgia,'Times New Roman',serif;color:var(--navy);margin:0 0 .5rem;font-size:1.05rem}
.equipo-area p{color:#555;font-size:.92rem;line-height:1.6;margin:0}
.equipo-cta{text-align:center;background:var(--navy);border-radius:8px;padding:2rem}
.equipo-cta p{color:var(--cream);margin:0 0 1rem;font-size:1.05rem}
a.btn-equipo{display:inline-block;color:var(--gold);border:1px solid var(--gold);padding:.6rem 1.5rem;border-radius:4px;text-decoration:none;font-weight:600;transition:all .2s}
a.btn-equipo:hover{background:var(--gold);color:var(--navy)}

/* === AUTHOR CARD AVATAR === */
.author-card__avatar img{width:80px;height:80px;border-radius:50%;object-fit:cover}

/* ============================================
   UX/UI · octubre 2026: navegación, accesibilidad y contraste
   ============================================ */
:root{--gold-text:#7d5f1c;--gold-accent:#977628}

/* Saltar al contenido y foco visible */
.skip-link{position:absolute;left:-9999px;top:0;z-index:1000;background:var(--navy);color:#fff;padding:.75rem 1.25rem;font-size:.875rem;font-weight:600;border-radius:0 0 var(--radius-sm) 0}
.skip-link:focus{left:0}
:focus-visible{outline:2px solid var(--gold-text);outline-offset:3px}
.hero :focus-visible,.section--navy :focus-visible,.site-footer :focus-visible,.sidebar-cta :focus-visible,.page-hero--areas :focus-visible,.cta-section--dark :focus-visible,.equipo-cta :focus-visible,.equipo-card--director :focus-visible,.jmd-consulta-cta :focus-visible,.jmd-global-float :focus-visible{outline-color:var(--gold)}
[tabindex="-1"]:focus{outline:none}

/* Cabecera: página actual y botón de contacto */
.nav-menu > a.current{color:var(--navy);box-shadow:inset 0 -2px 0 var(--gold)}
.nav-menu a.nav-cta,.nav-menu a.nav-cta:hover{color:var(--navy)}
.nav-dropdown-trigger{min-height:44px}

/* Desplegables: se abren al pulsar (ratón, teclado o táctil) y con hover solo con ratón */
.nav-dropdown:hover .nav-dropdown-menu{display:none}
.nav-dropdown:hover .nav-dropdown-trigger svg{transform:none}
.nav-dropdown.is-open .nav-dropdown-menu{display:flex}
.nav-dropdown.is-open .nav-dropdown-trigger svg{transform:rotate(180deg)}
.nav-dropdown-menu{transform:translateX(calc(-50% + var(--dd-shift,0px)));max-width:calc(100vw - 2rem)}
.nav-dropdown--tools .nav-dropdown-menu{left:auto;right:0;transform:translateX(var(--dd-shift,0px))}
.dropdown-col a,.nav-mobile-tools a{text-transform:none;letter-spacing:0}
.dropdown-label{color:var(--gold-text)}
.dropdown-label--sep{margin-top:1rem}
.dropdown-col a.dropdown-all{margin-top:.75rem;font-weight:600;color:var(--gold-text)}
@media (hover:hover) and (pointer:fine) and (min-width:1025px){
  .nav-dropdown:hover .nav-dropdown-menu{display:flex}
  .nav-dropdown:hover .nav-dropdown-trigger svg{transform:rotate(180deg)}
}

/* Menú con hamburguesa hasta 1024 px (tabletas incluidas) */
@media (max-width:1024px){
  .site-nav{padding:0 1.25rem}
  .nav-toggle{display:flex;width:44px;height:44px;padding:8px;margin-right:-8px}
  .nav-menu{display:none;position:fixed;top:var(--nav-height);left:0;right:0;bottom:0;background:var(--white);flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:.5rem 1.5rem 6rem;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;z-index:100;border-top:1px solid var(--rule)}
  .nav-menu.active{display:flex}
  .nav-menu > a,.nav-dropdown-trigger{display:flex;align-items:center;width:100%;min-height:52px;font-size:.875rem;letter-spacing:2px;border-bottom:1px solid var(--rule-light)}
  .nav-dropdown-trigger{justify-content:space-between;color:var(--body)}
  .nav-menu > a.current{box-shadow:inset 3px 0 0 var(--gold);padding-left:.75rem}
  .nav-menu > a.nav-cta{justify-content:center;margin-top:1.5rem;border-bottom:0;min-height:48px}
  .nav-dropdown-menu,.nav-dropdown--tools .nav-dropdown-menu{position:static;left:auto;right:auto;transform:none;min-width:0;max-width:none;flex-direction:column;gap:1rem;background:var(--stone);box-shadow:none;border-radius:.5rem;padding:.75rem 1rem;margin:.25rem 0 .75rem}
  .nav-dropdown-menu::before{display:none}
  .nav-dropdown--areas .dropdown-col{display:flex}
  .dropdown-col a{display:flex;align-items:center;min-height:44px;padding:0;white-space:normal;font-size:.9375rem}
  .nav-dropdown--tools.is-open .nav-dropdown-menu{display:none}
  .nav-mobile-tools{display:none}
  .nav-dropdown--tools.is-open .nav-mobile-tools{display:flex;flex-direction:column;gap:0;padding:.5rem 1rem;background:var(--stone);border-radius:.5rem;margin:.25rem 0 .75rem}
  .nav-mobile-tools a{display:flex;align-items:center;min-height:44px;padding:0;font-size:.9375rem}
}

/* Contraste del dorado sobre fondos claros (el logotipo no cambia) */
.section-label,.blog-card__cat,.breadcrumb .current,.breadcrumb a:hover{color:var(--gold-text)}
.section-label--light,.hero__content .section-label,.hero .section-label,.section--navy .section-label,.page-hero--areas .section-label,.cta-section--dark .section-label,.sidebar-cta .section-label{color:var(--gold)}
em,.accent{color:var(--gold-accent)}
p em,li em,td em,dd em,blockquote em,.post-body em,.page-content em{font-family:inherit;color:inherit}
.hero em,.section--navy em,.cta-section--dark em,.page-hero--areas em,.sidebar-cta em,.site-footer em,.equipo-card--director em,.equipo-cta em,.jmd-consulta-cta em{color:var(--gold)}
.label-help{color:#5f636b !important}

/* Pie: títulos legibles, enlaces con zona táctil cómoda */
.site-footer h4{color:rgba(255,255,255,.7)}
.footer-col a{padding:.3rem 0;margin-bottom:.25rem}
.footer-note{font-size:.85em;opacity:.85;margin-top:4px}

/* Hub de áreas: cabecera oscura legible */
.page-hero{padding:4.5rem 0 4rem}
.page-hero--areas h1{color:var(--cream)}
.page-hero--areas .page-hero__subtitle{color:rgba(255,255,255,.85);max-width:680px;font-size:1.0625rem;line-height:1.7}
.page-hero--areas .breadcrumb,.page-hero--areas .breadcrumb a{color:rgba(255,255,255,.8)}
.page-hero--areas .breadcrumb .sep{margin:0 .5rem;opacity:.6}
.page-hero--areas .breadcrumb .current{color:var(--gold)}
@media (max-width:768px){.page-hero{padding:3rem 0 2.5rem}}

/* Equipo: texto destacado dentro de la ficha oscura */
.equipo-card--director strong{color:var(--cream)}

/* Formulario de consulta (plugin jmd-citas): textos auxiliares legibles */
.jmd-consulta__opt,.jmd-consulta__drop span,.jmd-file-item .jmd-file-size{color:#5f636b !important}

/* Respeto a "reducir movimiento" */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}


/* Ajustes tras la segunda pasada de contraste */
.area-item__arrow,.service-sidebar span,.sidebar-links span{color:var(--gold-accent)}
.archive-item__cat,.tag,.toc h4{color:var(--gold-text)}
.post-header__cat{color:var(--navy)}
.jmd-consulta__req{color:var(--gold-text) !important}
.contact-page a:not(.btn):not([class*="jmd-"]),.jmd-consulta a,.equipo-intro a,.equipo-profesionales a{color:var(--gold-text);text-decoration:underline;text-underline-offset:2px}
.equipo-card--director strong,.equipo-card--director p strong,.equipo-card-info strong{color:var(--cream) !important}
.contact-page span[style*="#999"],.jmd-consulta span[style*="#999"]{color:#5f636b !important}
/* Botones dorados de las herramientas: texto azul marino para contraste AA */
main #calc-btn,main #rev-btn,main #irph-btn,main #compliance-btn,main .btn-submit,main .tc-cta,main .tcd-cta,main .so-cta,main .so-cta-primary,main .gen-btn-copy,main .gen-num,main .bank-link,main .chk-mark,main .selected,main .sel{color:var(--navy) !important}

@media (max-width:1024px){
  .nav-menu .nav-dropdown{display:block !important;width:100%;align-items:stretch}
  .nav-menu .nav-dropdown .nav-dropdown-trigger{width:100% !important;justify-content:space-between !important;text-align:left}
}
@media (max-width:1024px){.nav-menu .dropdown-col{align-items:flex-start !important;text-align:left !important}.nav-menu .dropdown-col a{justify-content:flex-start}}

/* Portada: áreas agrupadas como en el menú */
.areas-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:2rem}
.areas-group{background:var(--white);border:1px solid var(--rule);border-radius:var(--radius-md);padding:1.75rem}
.areas-group h3{font-size:1.3rem;margin:0 0 .5rem}
.areas-group p{font-size:.9rem;color:var(--body);margin:0 0 1rem}
.areas-group ul{list-style:none;margin:0;padding:0}
.areas-group li a{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:44px;border-top:1px solid var(--rule-light);color:var(--navy);font-size:.9375rem;transition:color var(--transition)}
.areas-group li a::after{content:'\2192';color:var(--gold-accent);flex-shrink:0}
.areas-group li a:hover{color:var(--gold-text)}
.areas-all{margin-top:2rem;text-align:center}
.hero__actions{display:flex;flex-wrap:wrap;gap:1rem}
@media (max-width:900px){.areas-groups{grid-template-columns:1fr}}
