/* Site design CSS — moved from Customizer > Additional CSS on 2026-10-07 (mu-plugins/rinber-custom-css-file.php).
   Edit THIS file. Customizer > Additional CSS still works and loads after it. */
/* ==============================================
   APM ABOGADOS PENALISTAS - DESIGN SYSTEM
   Clean v3 - April 2026
   ============================================== */

/* 1. DESIGN TOKENS */
:root{
  --navy:#0d1b2a;
  --navy-mid:#1a3353;
  --navy-light:#1e3a5f;
  --gold:#c8922a;
  --gold-light:#e0a93a;
  --text:#1f2937;
  --text-light:#6b7280;
  --white:#ffffff;
  --bg-light:#f8fafc;
  --radius:12px;
  --shadow:0 4px 24px rgba(0,0,0,.12);
}

/* 2. GOOGLE FONTS */
body{font-family:'Inter',system-ui,sans-serif;color:var(--text);}
h1,h2,h3,.site-title{font-family:'Playfair Display',Georgia,serif;}

/* 3. SITE HEADER - sticky navy bar */
.site-header{
  background:var(--navy)!important;
  position:sticky!important;
  top:0!important;
  z-index:1000!important;
  box-shadow:0 2px 20px rgba(0,0,0,.35)!important;
  padding:0!important;
}
.admin-bar .site-header{top:32px!important;}
.site-header .inside-header,
.site-header .header-inner{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  max-width:1200px!important;
  margin:0 auto!important;
  padding:10px 24px!important;
  width:100%!important;
}

/* 4. LOGO / SITE TITLE */
.site-title a{
  color:var(--white)!important;
  font-family:'Playfair Display',Georgia,serif!important;
  font-size:1.3rem!important;
  font-weight:700!important;
  text-decoration:none!important;
}
.site-title a:hover{color:var(--gold)!important;}

/* 5. NAVIGATION - show and style */
.main-navigation,
.nav-primary{
  background:transparent!important;
  display:flex!important;
}
.main-navigation .menu>li>a,
.nav-primary .menu>li>a{
  color:rgba(255,255,255,.85)!important;
  font-size:.85rem!important;
  font-weight:500!important;
  padding:8px 14px!important;
  transition:color .2s!important;
  text-decoration:none!important;
}
.main-navigation .menu>li>a:hover,
.nav-primary .menu>li>a:hover{color:var(--gold)!important;background:transparent!important;}
.main-navigation .sub-menu,
.nav-primary .sub-menu{
  background:var(--navy-mid)!important;
  border:1px solid rgba(200,146,42,.3)!important;
  border-radius:8px!important;
  box-shadow:var(--shadow)!important;
}
.main-navigation .sub-menu a,
.nav-primary .sub-menu a{color:rgba(255,255,255,.85)!important;font-size:.82rem!important;}
.main-navigation .sub-menu a:hover{color:var(--gold)!important;background:rgba(255,255,255,.05)!important;}

/* Mobile menu toggle */
.menu-toggle,.mobile-menu-control-wrapper button{
  color:var(--white)!important;
  background:transparent!important;
  border:1px solid rgba(255,255,255,.3)!important;
  border-radius:6px!important;
  padding:6px 10px!important;
}

/* 6. HIDE GP PAGE HEADER IMAGE AND ENTRY HEADER */
.page-header-image{display:none!important;}
.entry-header{display:none!important;}
/* Restore H1 entry-title on single blog posts */
.single.single-post .entry-header{display:block!important;}

/* 7. HOMEPAGE - TRUE FULL WIDTH */
body.home #page,
body.home .site,
body.home .container{max-width:100%!important;padding:0!important;margin:0!important;}
body.home #content,
body.home .site-content{max-width:100%!important;width:100%!important;padding:0!important;}
body.home #primary,
body.home .content-area{max-width:100%!important;width:100%!important;float:none!important;padding:0!important;}
body.home .site-main{max-width:100%!important;width:100%!important;padding:0!important;margin:0!important;}
body.home article,
body.home .inside-article{max-width:100%!important;width:100%!important;padding:0!important;margin:0!important;}
body.home .entry-content{max-width:100%!important;width:100%!important;padding:0!important;margin:0!important;}

/* 8. INNER PAGES - constrained content */
body:not(.home) .entry-content{max-width:900px!important;margin:0 auto!important;padding:32px 24px!important;}

/* 9. HOMEPAGE HERO */
.apm-hero{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:center;
  background:linear-gradient(135deg,var(--navy) 0%,#0f2238 45%,#162b44 100%);
  overflow:hidden;
  width:100%;
}
.apm-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.apm-hero-inner{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:0 auto;
  padding:80px 24px;
  width:100%;
  display:grid;
  grid-template-columns:1fr 420px;
  gap:60px;
  align-items:center;
}
@media(max-width:900px){
  .apm-hero-inner{grid-template-columns:1fr;gap:32px;padding:60px 20px;}
  .apm-hero{min-height:auto;}
}
.apm-hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(200,146,42,.15);
  border:1px solid rgba(200,146,42,.4);
  color:var(--gold-light);
  padding:6px 16px;
  border-radius:20px;
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.5px;
  text-transform:uppercase;
  margin-bottom:20px;
}
.apm-hero h1{
  font-size:clamp(2.2rem,4vw,3.4rem);
  font-weight:800;
  color:var(--white);
  line-height:1.15;
  margin-bottom:20px;
}
.apm-hero h1 .highlight{color:var(--gold);}
.apm-hero-sub{
  font-size:1.05rem;
  color:rgba(255,255,255,.75);
  line-height:1.7;
  margin-bottom:32px;
  max-width:540px;
}
.apm-hero-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:40px;}
.apm-btn-primary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--gold);
  color:var(--white)!important;
  padding:14px 28px;
  border-radius:8px;
  font-weight:700;
  font-size:1rem;
  text-decoration:none!important;
  transition:background .2s,transform .15s;
  box-shadow:0 4px 16px rgba(200,146,42,.4);
}
.apm-btn-primary:hover{background:var(--gold-light);transform:translateY(-1px);}
.apm-btn-secondary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:transparent;
  color:var(--white)!important;
  padding:14px 24px;
  border-radius:8px;
  font-weight:600;
  font-size:.95rem;
  text-decoration:none!important;
  border:2px solid rgba(255,255,255,.35);
  transition:border-color .2s,background .2s;
}
.apm-btn-secondary:hover{border-color:rgba(255,255,255,.7);background:rgba(255,255,255,.05);}
.apm-hero-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:28px;
}
.apm-stat{text-align:center;}
.apm-stat-num{
  font-size:1.6rem;
  font-weight:800;
  color:var(--gold);
  display:block;
  font-family:'Playfair Display',serif;
}
.apm-stat-label{font-size:.72rem;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.5px;}

/* Hero form card */
.apm-hero-form{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:28px;
  backdrop-filter:blur(10px);
}
.apm-hero-form h3{
  color:var(--white);
  font-size:1.1rem;
  margin-bottom:6px;
}
.apm-hero-form p{color:rgba(255,255,255,.65);font-size:.85rem;margin-bottom:20px;}
.apm-form-btn-phone{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  background:var(--gold);
  color:var(--white)!important;
  padding:14px;
  border-radius:8px;
  font-weight:700;
  font-size:1.05rem;
  text-decoration:none!important;
  margin-bottom:10px;
  transition:background .2s;
}
.apm-form-btn-phone:hover{background:var(--gold-light);}
.apm-form-btn-wa{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  background:#25D366;
  color:var(--white)!important;
  padding:13px;
  border-radius:8px;
  font-weight:600;
  font-size:.95rem;
  text-decoration:none!important;
  margin-bottom:20px;
  transition:background .2s;
}
.apm-form-btn-wa:hover{background:#20b858;}
.apm-form-divider{text-align:center;color:rgba(255,255,255,.4);font-size:.8rem;margin-bottom:16px;position:relative;}
.apm-form-divider::before,.apm-form-divider::after{
  content:'';
  position:absolute;
  top:50%;
  width:42%;
  height:1px;
  background:rgba(255,255,255,.15);
}
.apm-form-divider::before{left:0;}
.apm-form-divider::after{right:0;}
.apm-form-field{
  width:100%;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  border-radius:6px;
  color:var(--white);
  padding:10px 14px;
  font-size:.875rem;
  margin-bottom:10px;
  box-sizing:border-box;
}
.apm-form-field::placeholder{color:rgba(255,255,255,.45);}
.apm-form-field:focus{outline:none;border-color:var(--gold);background:rgba(255,255,255,.12);}
.apm-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.apm-form-submit{
  width:100%;
  background:var(--navy-mid);
  color:var(--white)!important;
  border:2px solid var(--gold);
  border-radius:8px;
  padding:12px;
  font-weight:700;
  font-size:.95rem;
  cursor:pointer;
  transition:background .2s;
}
.apm-form-submit:hover{background:var(--navy-light);}

/* 10. URGENCY BAR */
.apm-urgency{
  background:linear-gradient(90deg,#b91c1c 0%,#dc2626 100%);
  padding:18px 24px;
  text-align:center;
  color:var(--white);
}
.apm-urgency-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:20px;
}
.apm-urgency strong{font-size:1rem;}
.apm-urgency a{
  background:var(--white);
  color:#b91c1c!important;
  padding:8px 20px;
  border-radius:6px;
  font-weight:700;
  text-decoration:none!important;
  font-size:.9rem;
  white-space:nowrap;
}

/* 11. STATS BAR */
.apm-stats{
  background:var(--navy);
  padding:48px 24px;
}
.apm-stats-inner{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px;
  text-align:center;
}
@media(max-width:768px){.apm-stats-inner{grid-template-columns:repeat(2,1fr);}}
.apm-stats-num{
  font-size:2.5rem;
  font-weight:800;
  color:var(--gold);
  display:block;
  font-family:'Playfair Display',serif;
}
.apm-stats-label{font-size:.8rem;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.5px;}

/* 12. SERVICES SECTION */
.apm-services{background:var(--bg-light);padding:80px 24px;}
.apm-services-inner{max-width:1200px;margin:0 auto;}
.apm-section-header{text-align:center;margin-bottom:48px;}
.apm-section-label{
  font-size:.8rem;
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:2px;
  font-weight:600;
  display:block;
  margin-bottom:8px;
}
.apm-section-header h2{
  font-size:clamp(1.8rem,3vw,2.6rem);
  color:var(--navy);
  margin-bottom:12px;
}
.apm-section-header p{color:var(--text-light);max-width:580px;margin:0 auto;line-height:1.7;}
.apm-services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
@media(max-width:900px){.apm-services-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.apm-services-grid{grid-template-columns:1fr;}}
.apm-service-card{
  background:var(--white);
  border-radius:var(--radius);
  padding:28px 24px;
  border:1px solid #e5e7eb;
  transition:box-shadow .2s,transform .2s;
  display:flex;
  flex-direction:column;
}
.apm-service-card:hover{box-shadow:var(--shadow);transform:translateY(-3px);}
.apm-service-icon{font-size:2rem;margin-bottom:16px;display:block;}
.apm-service-card h3{
  font-size:1.05rem;
  font-weight:700;
  color:var(--navy);
  margin-bottom:10px;
  font-family:'Inter',sans-serif;
}
.apm-service-card p{font-size:.9rem;color:var(--text-light);line-height:1.65;flex:1;margin-bottom:16px;}
.apm-service-link{
  color:var(--gold)!important;
  font-weight:600;
  font-size:.875rem;
  text-decoration:none!important;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.apm-service-link:hover{color:var(--gold-light)!important;}

/* 13. WHY US */
.apm-why{background:var(--white);padding:80px 24px;}
.apm-why-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;}
@media(max-width:768px){.apm-why-inner{grid-template-columns:1fr;gap:40px;}}
.apm-why-list{list-style:none;padding:0;margin:0;}
.apm-why-list li{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:16px 0;
  border-bottom:1px solid #f3f4f6;
}
.apm-why-list li:last-child{border-bottom:none;}
.apm-why-icon{
  width:44px;
  height:44px;
  background:linear-gradient(135deg,var(--navy),var(--navy-mid));
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  flex-shrink:0;
}
.apm-why-text strong{display:block;font-size:.95rem;color:var(--navy);margin-bottom:4px;}
.apm-why-text span{font-size:.85rem;color:var(--text-light);}
.apm-why-visual{
  background:linear-gradient(135deg,var(--navy),var(--navy-mid));
  border-radius:16px;
  padding:40px;
  color:var(--white);
}
.apm-why-visual h3{font-size:1.5rem;color:var(--white);margin-bottom:20px;}
.apm-guarantee-list{list-style:none;padding:0;margin:0;}
.apm-guarantee-list li{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.1);
  font-size:.9rem;
  color:rgba(255,255,255,.85);
}
.apm-guarantee-list li:last-child{border-bottom:none;}
.apm-check{color:var(--gold);font-weight:700;font-size:1rem;}

/* 14. REVIEWS */
.apm-reviews{background:var(--bg-light);padding:80px 24px;}
.apm-reviews-inner{max-width:1200px;margin:0 auto;}
.apm-reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
@media(max-width:900px){.apm-reviews-grid{grid-template-columns:1fr;}}
.apm-review-card{
  background:var(--white);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
}
.apm-review-stars{color:#f59e0b;font-size:1rem;margin-bottom:12px;}
.apm-review-text{font-size:.9rem;color:var(--text-light);line-height:1.65;margin-bottom:16px;font-style:italic;}
.apm-review-author strong{font-size:.875rem;color:var(--navy);}
.apm-review-author span{font-size:.8rem;color:var(--text-light);margin-left:4px;}

/* 15. COVERAGE / GEOGRAPHIC */
.apm-coverage{background:var(--navy);padding:80px 24px;}
.apm-coverage-inner{max-width:1200px;margin:0 auto;text-align:center;}
.apm-coverage h2{color:var(--white);font-size:clamp(1.8rem,3vw,2.4rem);margin-bottom:12px;}
.apm-coverage>div>p{color:rgba(255,255,255,.7);margin-bottom:40px;}
.apm-cities-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:40px;
}
@media(max-width:768px){.apm-cities-grid{grid-template-columns:repeat(2,1fr);}}
.apm-city-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  padding:16px;
  text-align:center;
  text-decoration:none!important;
  transition:background .2s,border-color .2s;
  display:block;
}
.apm-city-card:hover{background:rgba(255,255,255,.12);border-color:var(--gold);}
.apm-city-name{color:var(--white)!important;font-weight:600;font-size:.9rem;display:block;}
.apm-city-sub{color:rgba(255,255,255,.5);font-size:.75rem;}

/* 16. FINAL CTA */
.apm-cta-sect{
  background:linear-gradient(135deg,var(--gold) 0%,var(--gold-light) 100%);
  padding:72px 24px;
  text-align:center;
}
.apm-cta-sect h2{color:var(--white);font-size:clamp(1.8rem,3vw,2.6rem);margin-bottom:12px;}
.apm-cta-sect p{color:rgba(255,255,255,.85);font-size:1.05rem;margin-bottom:32px;max-width:560px;margin-left:auto;margin-right:auto;}
.apm-cta-btns{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;}
.apm-cta-btn-primary{
  background:var(--white);
  color:var(--navy)!important;
  padding:14px 32px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none!important;
  font-size:1rem;
}
.apm-cta-btn-secondary{
  background:transparent;
  color:var(--white)!important;
  padding:14px 28px;
  border-radius:8px;
  font-weight:600;
  text-decoration:none!important;
  border:2px solid rgba(255,255,255,.6);
  font-size:1rem;
}

/* 17. INNER PAGE CTA BOX */
.apm-page-cta{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%);
  border-radius:var(--radius);
  padding:32px;
  text-align:center;
  color:var(--white);
  margin:32px 0;
}
.apm-page-cta h3{color:var(--white);font-size:1.3rem;margin-bottom:8px;}
.apm-page-cta p{color:rgba(255,255,255,.75);margin-bottom:20px;}
.apm-page-cta a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--gold);
  color:var(--white)!important;
  padding:12px 24px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none!important;
  margin:4px;
}
.apm-page-cta a:hover{background:var(--gold-light);}

/* 18. FOOTER */
.site-footer{background:var(--navy)!important;color:rgba(255,255,255,.7)!important;padding:40px 0!important;}
.site-footer a{color:var(--gold)!important;}
.site-footer a:hover{color:var(--gold-light)!important;}
.site-footer .inside-footer{max-width:1200px!important;margin:0 auto!important;padding:0 24px!important;}

/* 19. BACK TO TOP */
.generate-back-to-top{
  position:fixed!important;
  bottom:24px!important;
  right:24px!important;
  background:var(--gold)!important;
  color:var(--white)!important;
  border-radius:50%!important;
  width:44px!important;
  height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:var(--shadow)!important;
  z-index:999!important;
}
/* Emoji SVG size fix */
img.emoji{width:1.8rem!important;height:1.8rem!important;vertical-align:middle!important;display:inline!important;}
.apm-service-icon img.emoji{width:2.2rem!important;height:2.2rem!important;}

/* Service card fix - ensure proper display */
.apm-service-card{cursor:pointer;}
.apm-service-card:hover h3{color:var(--gold);}

/* Hide site-branding inside nav element (it shows in header already) */
.main-navigation .site-branding,
.mobile-header-navigation .site-branding{display:none!important;}
/* Ensure nav doesn't create extra white space */
.main-navigation.has-branding{flex-direction:row!important;align-items:center!important;}


/* ===== HIDE RIGHT SIDEBAR ===== */
#right-sidebar,.right-sidebar #secondary{display:none!important;}
body.right-sidebar .content-area,body.right-sidebar .entry-content{width:100%!important;float:none!important;max-width:100%!important;}
body.right-sidebar .site-main{margin-right:0!important;}
body.right-sidebar .site-content .content-area{width:100%!important;}

/* ===== HEADER: DARK NAVY MATCHING HERO ===== */
#masthead,.site-header{background-color:#0d1b2a!important;border-bottom:1px solid #1a2f47!important;}
.inside-header.grid-container{background-color:#0d1b2a!important;max-width:100%!important;padding:0 32px!important;}

/* ===== RINBER LOGO ===== */
.site-branding .main-title{display:none;}
.site-logo img,.custom-logo{filter:brightness(0) invert(1);height:52px;width:auto;}

/* ===== REMOVE BLOG_CTA FORM FROM SERVICES SECTION ===== */
.blog_cta,.sidebar .widget,.inside-right-sidebar{display:none!important;}


/* ===== NAV: DARK BACKGROUND + HIDE DUPLICATE TITLE ===== */
#site-navigation,.main-navigation{background-color:#0d1b2a!important;border-top:1px solid rgba(255,255,255,.1)!important;}
.inside-navigation.grid-container{background:#0d1b2a!important;}
.navigation-branding{display:none!important;}
.main-navigation .menu>li>a{color:rgba(255,255,255,.85)!important;font-weight:500!important;}
.main-navigation .menu>li>a:hover,.main-navigation .menu>li.current-menu-item>a{color:#D4A843!important;}


/* ===== NAV: FIX DUPLICATE + NAVIGATION-BRANDING ===== */
/* Desktop: only show site-navigation; mobile-header shows only when stuck/scrolled */
#mobile-header{display:none!important;}
.mobile-header-sticky #mobile-header.stuckElement{display:flex!important;background:#0d1b2a!important;}
.navigation-branding{display:none!important;}

/* ===== REMOVE COMMENTS SECTION ===== */
#comments,.comments-area,.comment-respond,.comment-list,.comment-form,.post-comments{display:none!important;}


/* ===== FINAL NAV FIX: hide mobile-header nav entirely, show site-navigation only ===== */
.main-navigation.mobile-header-navigation,
body.mobile-header-sticky #mobile-header,
body.mobile-header-sticky #mobile-header.stuckElement{display:none!important;}
#site-navigation.main-navigation{display:flex!important;}


/* ===== NAV: ACTIVE MENU ITEM STYLE (no white box) ===== */
.main-navigation .menu>li.current-menu-item>a,
.main-navigation .menu>li.current-menu-ancestor>a,
.main-navigation .menu>li>a:hover{
  background:transparent!important;
  color:#D4A843!important;
  border-bottom:2px solid #D4A843;
}

/* ===== CONTACT PAGE FORM STYLING ===== */
.apm-contact-section{background:#f7f8f9;padding:60px 20px;}
.apm-contact-inner{max-width:1100px;margin:0 auto;}
.apm-contact-header{text-align:center;margin-bottom:40px;}
.apm-contact-header h1{font-size:2rem;color:#0d1b2a;margin:8px 0;}
.apm-contact-header p{color:#555;font-size:1.05rem;}
.apm-contact-grid{display:grid;grid-template-columns:1fr 340px;gap:40px;align-items:start;}
.apm-contact-card{background:#fff;border-radius:8px;padding:24px;margin-bottom:16px;box-shadow:0 1px 6px rgba(0,0,0,.08);}
.apm-contact-card h3{margin:0 0 8px;font-size:1rem;color:#0d1b2a;}
.apm-phone-big{font-size:1.4rem;font-weight:700;color:#D4A843;text-decoration:none;display:block;}
.apm-whatsapp-btn{display:inline-block;background:#25D366;color:#fff!important;padding:10px 20px;border-radius:6px;text-decoration:none;font-weight:600;}
@media(max-width:768px){.apm-contact-grid{grid-template-columns:1fr;}}


/* ===== HERO FORM: VISIBLE INPUT TEXT & PLACEHOLDERS ===== */
.apm-hero-form input,
.apm-hero-form textarea,
.apm-hero-form select{
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.3)!important;
  color:#fff!important;
  border-radius:6px!important;
  padding:10px 14px!important;
  font-size:.95rem!important;
}
.apm-hero-form input::placeholder,
.apm-hero-form textarea::placeholder,
.apm-hero-form select::placeholder{color:rgba(255,255,255,.65)!important;}
.apm-hero-form input:focus,
.apm-hero-form textarea:focus{
  background:rgba(255,255,255,.18)!important;
  outline:none!important;
  border-color:rgba(212,168,67,.8)!important;
}
.apm-hero-form select option{background:#0d1b2a;color:#fff;}


/* ===== NAV DROPDOWN: FIX HOVER PARENT ITEM ===== */
.main-navigation ul li:hover > a,
.main-navigation ul li.sfHover > a,
.main-navigation .menu li.menu-item-has-children:hover > a,
.main-navigation .menu li.sfHover > a{
  background:transparent!important;
  color:#D4A843!important;
}
/* Dropdown submenu background */
.main-navigation ul.sub-menu{
  background:#0d1b2a!important;
  border-top:2px solid #D4A843!important;
  border-radius:0 0 6px 6px!important;
  box-shadow:0 8px 24px rgba(0,0,0,.4)!important;
}
.main-navigation ul.sub-menu li a{
  color:rgba(255,255,255,.85)!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
  padding:10px 20px!important;
}
.main-navigation ul.sub-menu li a:hover,
.main-navigation ul.sub-menu li.current-menu-item > a{
  background:rgba(212,168,67,.12)!important;
  color:#D4A843!important;
}


/* ===== MOBILE: RESTORE MOBILE HEADER NAV ===== */
@media (max-width:768px){
  /* Show mobile-header on mobile, hide desktop nav */
  .main-navigation.mobile-header-navigation,
  body.mobile-header-sticky #mobile-header,
  body.mobile-header-sticky #mobile-header.stuckElement{
    display:flex!important;
    background:#0d1b2a!important;
    position:sticky!important;
    top:0!important;
    z-index:200!important;
    width:100%!important;
  }
  #site-navigation.main-navigation{display:none!important;}
  /* Mobile logo in nav branding */
  .navigation-branding{display:flex!important;align-items:center!important;}
  .navigation-branding .main-title a{
    display:block!important;
    width:110px!important;
    height:38px!important;
    text-indent:-9999px!important;
    overflow:hidden!important;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 52'%3E%3Crect x='0' y='2' width='4' height='48' rx='1' fill='%23D4A843'/%3E%3Ctext x='16' y='32' font-family='Georgia%2Cserif' font-size='26' font-weight='700' fill='%23fff' letter-spacing='5'%3EAPM%3C/text%3E%3Ctext x='17' y='44' font-family='Arial%2Csans-serif' font-size='8' fill='%23D4A843' letter-spacing='3.5'%3EABOGADOS%3C/text%3E%3C/svg%3E") no-repeat left center!important;
    background-size:contain!important;
  }
  /* Hamburger icon white */
  .menu-toggle{color:#fff!important;border:1px solid rgba(255,255,255,.3)!important;border-radius:4px!important;padding:6px 10px!important;}
  .menu-toggle .gp-icon svg{fill:#fff!important;}
  /* Open mobile menu */
  .main-navigation .menu,
  #mobile-header .main-nav > ul{background:#0d1b2a!important;}
  .main-navigation .menu li a{color:rgba(255,255,255,.85)!important;border-bottom:1px solid rgba(255,255,255,.08)!important;}
  /* Site header on mobile */
  #masthead,.site-header{background:#0d1b2a!important;}
}


/* ===== SCOPE SITE-NAVIGATION TO DESKTOP ONLY ===== */
@media (max-width:768px){
  #site-navigation.main-navigation{display:none!important;}
  #masthead,.site-header,.inside-header{background:#0d1b2a!important;}
}
@media (min-width:769px){
  #site-navigation.main-navigation{display:flex!important;}
}


/* ===== BOTTOM CTA BOX (classless div with h2 + tel link) ===== */
.entry-content div:has(>h2+p+p>a[href^="tel"]),
.entry-content div:has(>h2+p>a[href^="tel"]){
  background:#0d1b2a!important;
  border-left:4px solid #D4A843!important;
  border-radius:8px!important;
  padding:28px 32px!important;
  margin:32px 0!important;
  text-align:center!important;
}
.entry-content div:has(>h2+p+p>a[href^="tel"]) h2,
.entry-content div:has(>h2+p>a[href^="tel"]) h2{color:#fff!important;font-size:1.3rem!important;margin:0 0 10px!important;}
.entry-content div:has(>h2+p+p>a[href^="tel"]) >p,
.entry-content div:has(>h2+p>a[href^="tel"]) >p{color:rgba(255,255,255,.75)!important;margin:0 0 20px!important;}
.entry-content div:has(>h2+p+p>a[href^="tel"]) a[href^="tel"],
.entry-content div:has(>h2+p>a[href^="tel"]) a[href^="tel"]{
  display:inline-block!important;background:#D4A843!important;color:#0d1b2a!important;
  font-weight:700!important;padding:12px 26px!important;border-radius:6px!important;
  text-decoration:none!important;font-size:1.05rem!important;margin:4px!important;
}
.entry-content div:has(>h2+p+p>a[href^="tel"]) a:not([href^="tel"]),
.entry-content div:has(>h2+p>a[href^="tel"]) a:not([href^="tel"]){
  display:inline-block!important;background:transparent!important;color:#D4A843!important;
  border:1px solid #D4A843!important;font-weight:600!important;padding:12px 26px!important;
  border-radius:6px!important;text-decoration:none!important;font-size:1.05rem!important;margin:4px!important;
}


/* Hide featured image at top of single posts */
.single .featured-image,.single .post-image,.single .wp-post-image,.single .post-thumbnail,.single .entry-image-link,.single figure.post-thumbnail{display:none!important;}

/* ===== NOTICIAS BLOG GRID ===== */
/* Full-width layout on blog page */
.blog #primary.content-area,
.blog .content-area{width:100%!important;max-width:100%!important;float:none!important;}
.blog #secondary,.blog .widget-area{display:none!important;}
.blog .site-content .grid-container{max-width:1200px;margin:0 auto;padding:0 32px;}

/* Grid container */
.blog .site-main{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  align-items:start;
  padding:40px 0;
}

/* Card styling */
.blog article.post{
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 2px 16px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  transition:transform .2s,box-shadow .2s;
}
.blog article.post:hover{
  transform:translateY(-4px);
  box-shadow:0 6px 24px rgba(0,0,0,.14);
}
.blog article.post .inside-article{
  display:flex;flex-direction:column;height:100%;
}

/* Thumbnail */
.blog article.post .post-image{
  width:100%!important;height:200px!important;
  object-fit:cover!important;display:block!important;
  margin:0!important;
}
.blog article.post a.post-image-link,
.blog article.post .post-image-wrap{display:block;overflow:hidden;}

/* Header & title */
.blog article.post .entry-header{
  padding:18px 20px 8px;
}
.blog article.post .entry-title{
  font-size:16px!important;line-height:1.45!important;
  margin:0 0 6px!important;
}
.blog article.post .entry-title a{
  color:#0d1b2a!important;text-decoration:none!important;
}
.blog article.post .entry-title a:hover{color:#D4A843!important;}
.blog article.post .entry-meta{
  font-size:12px!important;color:#888!important;margin-bottom:0!important;
}

/* Excerpt */
.blog article.post .entry-summary{
  padding:6px 20px 16px;
  font-size:13.5px!important;line-height:1.6!important;
  color:#444!important;flex:1;
}
.blog article.post .entry-summary p{margin:0!important;}

/* Footer / read more */
.blog article.post .entry-footer{
  padding:12px 20px;
  border-top:1px solid #f0f0f0;
  font-size:12px;color:#999;
}
.blog article.post .more-link{
  display:inline-block;
  background:#D4A843!important;color:#0d1b2a!important;
  font-weight:700!important;font-size:12px!important;
  padding:6px 14px!important;border-radius:4px!important;
  text-decoration:none!important;margin-top:8px;
}

/* Pagination sits full-width below grid */
.blog .navigation.pagination{
  grid-column:1 / -1;
  text-align:center;padding:20px 0 0;
}
.blog .nav-links .page-numbers{
  display:inline-block;padding:8px 14px;
  margin:0 3px;border:1px solid #ddd;border-radius:4px;
  color:#0d1b2a!important;text-decoration:none;
}
.blog .nav-links .page-numbers.current{
  background:#0d1b2a;color:#fff!important;border-color:#0d1b2a;
}

/* Responsive: 2 cols tablet, 1 col mobile */
@media(max-width:900px){
  .blog .site-main{grid-template-columns:repeat(2,1fr)!important;}
}
@media(max-width:600px){
  .blog .site-main{grid-template-columns:1fr!important;}
}

/* Blog listing: restore entry-header + Leer Más button */
.blog article.post .entry-header{display:block!important;}
.blog article.post .entry-title{
  font-size:16px!important;font-weight:700!important;
  line-height:1.4!important;margin:0 0 4px!important;
  color:#0d1b2a!important;
}
.blog article.post .entry-title a{color:#0d1b2a!important;text-decoration:none!important;}
.blog article.post .entry-title a:hover{color:#D4A843!important;}
.blog article.post .entry-meta{font-size:11px!important;color:#999!important;margin-bottom:0!important;}

/* Leer Más button */
.blog article.post a.more-link,
.blog article.post .entry-footer a.more-link{
  display:inline-block!important;
  background:#D4A843!important;color:#0d1b2a!important;
  font-weight:700!important;font-size:13px!important;
  padding:9px 20px!important;border-radius:5px!important;
  text-decoration:none!important;margin-top:10px!important;
  transition:background .2s!important;
}
.blog article.post a.more-link:hover{background:#b8902e!important;}

/* Blog card: full card clickable via title link overlay */
.blog article.post{position:relative;}
.blog article.post .entry-title a::after{
  content:'';position:absolute;inset:0;z-index:1;
}
.blog article.post .entry-footer a,
.blog article.post .entry-meta a{position:relative;z-index:2;}

/* Leer Más button (visual, appended to summary) */
.blog article.post .entry-summary::after{
  content:'Leer Más →';
  display:inline-block;
  background:#D4A843;color:#0d1b2a;
  font-weight:700;font-size:12px;
  padding:8px 18px;border-radius:5px;
  margin-top:12px;
}

/* Hide "por johnk / APM" author line on blog listing */
.blog article.post .byline{display:none!important;}