/*
Theme Name: JM Domínguez
Theme URI: https://jmdominguez.es
Author: José Manuel Domínguez González
Description: Tema personalizado para JM Domínguez — Abogado en Madrid
Version: 2.23
Text Domain: jmdominguez
*/

/* ============================================
   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:'DM Serif Display',serif;font-size:1.375rem;color:var(--navy)}
.site-logo span{color:var(--gold)}
.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:70vh;display:flex;align-items:center;overflow:hidden;background:var(--navy)}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 70% 50%,rgba(30,45,64,1) 0%,rgba(24,36,52,1) 100%)}
.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 1fr 1fr 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:'DM Serif Display',serif;font-size:1.25rem;color:var(--cream);margin-bottom:1rem}
.footer-brand span{color:var(--gold)}
.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: 480px; 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:.6;margin-top:.25rem}
.credentials__detail{display:block;font-size:.6875rem;color:var(--navy);opacity:.45;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}
}
