/*
 * Elena Mochales Immigration Law - Theme Styles
 */

/* =============================================
   1. RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0; padding-top: 66px;
    overflow-x: hidden;
    font-family: Inter, sans-serif;
    color: #111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* =============================================
   ARABIC TYPOGRAPHY (global) — fuente Tajawal
   ============================================= */
html[dir="rtl"], body.lang-ar, body.rtl {
    font-family: Tajawal, 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.9;
    letter-spacing: 0;
}
html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] span,
html[dir="rtl"] div,
html[dir="rtl"] a,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] input,
html[dir="rtl"] button,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
    font-family: Tajawal, 'Segoe UI', Tahoma, Arial, sans-serif;
    letter-spacing: 0;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
    font-weight: 700;
    line-height: 1.5;
}
html[dir="rtl"] p,
html[dir="rtl"] li {
    font-weight: 400;
}

.site-main {
    min-height: 60vh;
}

/* =============================================
   2. HEADER — PREMIUM
   ============================================= */
.pro-header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(10,10,10,0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pro-header-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    gap: 20px; height: 66px;
}

/* Brand */
.pro-brand { flex-shrink: 0; }
.pro-brand-link {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none;
}
.pro-brand-mark {
    width: 42px; height: 42px; border-radius: 50%;
    background: #156E0F; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem; letter-spacing: -0.5px;
    flex-shrink: 0;
}
.pro-brand-mark-img {
    object-fit: cover;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.15);
}
.pro-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.pro-brand-name {
    color: #fff; font-size: 1.05rem; font-weight: 700;
    letter-spacing: -0.01em;
}
.pro-brand-title {
    color: rgba(255,255,255,0.45); font-size: 0.68rem;
    font-weight: 500; letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Language Switch */
.pro-lang-switch { display: flex; align-items: center; gap: 6px; }
.pro-lang-link {
    color: rgba(255,255,255,0.5); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.3px; transition: color 0.2s;
    text-decoration: none; text-transform: uppercase;
}
.pro-lang-link:hover, .pro-lang-link.active { color: #156E0F; }
.pro-lang-sep { color: rgba(255,255,255,0.15); font-size: 0.7rem; }

/* Desktop Nav */
.pro-nav { display: flex; gap: 36px; align-items: center; }
.pro-nav a, .pro-nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 6px 0;
    position: relative;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    display: flex; align-items: center; gap: 3px;
}
.pro-nav a::after, .pro-nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: #156E0F;
    transition: width 0.3s ease;
}
.pro-nav a:hover, .pro-nav-link:hover { color: #fff; }
.pro-nav a:hover::after, .pro-nav-link:hover::after { width: 100%; }
.pro-chevron {
    transition: transform 0.2s;
    opacity: 0.6;
}
.pro-nav-item:hover .pro-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Nav Item (for mega) */
.pro-nav-item {
    position: relative;
}

/* Mega Menu */
.pro-mega {
    display: none;
    position: absolute; top: calc(100% + 12px); left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 30px -5px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
    z-index: 10000;
    width: 620px;
    padding: 0;
    overflow: hidden;
}
.pro-mega.open { display: block; }

/* Close button */
.pro-mega-close {
    position: absolute; top: 14px; right: 16px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: #999; z-index: 5; border-radius: 6px;
    transition: all 0.2s;
}
.pro-mega-close:hover { color: #333; background: #f0f0f0; }

.pro-mega-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.pro-mega-col {
    padding: 28px 28px 24px;
}
.pro-mega-col:first-child {
    border-right: 1px solid #f0f0f0;
}

.pro-mega-heading {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: #156E0F;
    margin: 0 0 16px;
    display: flex; align-items: center; gap: 8px;
}

.pro-mega-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.pro-mega-list li { margin: 0; }
.pro-mega-list a {
    display: block; padding: 9px 14px 9px 12px;
    border-radius: 8px;
    color: #444 !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: normal;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.pro-mega-list a::after { display: none !important; }
.pro-mega-list a:hover {
    color: #156E0F !important;
    background: #F2F8F2;
    border-left-color: #156E0F;
    padding-left: 16px;
}

.pro-mega-all {
    display: inline-flex !important; align-items: center; gap: 4px;
    margin-top: 16px;
    padding: 6px 0 !important;
    color: #156E0F !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    border: none !important;
}
.pro-mega-all::after { display: none !important; }
.pro-mega-all:hover { color: #0d520a !important; background: none !important; }

/* Header Right */
.pro-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.pro-lang {
    display: flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    padding: 5px 8px; border-radius: 6px;
    border: 1px solid transparent;
}
.pro-lang:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.1);
}
.pro-lang svg { width: 14px; height: 14px; }
.pro-cta {
    background: #156E0F; color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
}
.pro-cta:hover { background: #1b8f14; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(21,110,15,0.3); }

/* Burger */
/* =============================================
   3. MOBILE NAVIGATION — FULLSCREEN MODERN
   ============================================= */

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 6px; z-index: 10001;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
}
.nav-toggle-bar {
    display: block; width: 24px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Fullscreen mobile nav */
.nav-mobile {
    display: none;
    position: fixed; inset: 0;
    z-index: 9999;
    background: rgba(8,8,8,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}
.nav-mobile.open {
    display: block;
    opacity: 1;
}

/* Close button */
.nav-mobile-close {
    position: absolute; top: 20px; right: 24px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.6); z-index: 10;
    transition: color 0.2s;
}
.nav-mobile-close:hover { color: #fff; }

.nav-mobile-inner {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 80px 32px 40px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}
.nav-mobile-logo {
    margin-bottom: 48px;
}
.nav-mobile-logo-img {
    width: 64px; height: auto;
    margin-bottom: 16px;
}
.nav-mobile-logo strong {
    display: block; color: #fff; font-size: 1.2rem; font-weight: 700;
}
.nav-mobile-logo span {
    color: rgba(255,255,255,0.35); font-size: 0.8rem; display: block; margin-top: 4px;
}

/* Nav links */
.nav-mobile-list {
    list-style: none; padding: 0; margin: 0 0 32px;
    width: 100%; display: flex; flex-direction: column;
    gap: 0;
}
.nav-mobile-list > li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-mobile-list a,
.nav-mobile-sub-toggle {
    display: block; width: 100%;
    padding: 16px 0;
    color: rgba(255,255,255,0.7); font-size: 1.1rem;
    font-weight: 400; text-decoration: none;
    background: none; border: none; cursor: pointer;
    text-align: center; font-family: inherit;
    transition: color 0.2s; letter-spacing: 0.3px;
}
.nav-mobile-list a:hover,
.nav-mobile-sub-toggle:hover { color: #156E0F; }
.nav-mobile-chevron {
    font-size: 0.8rem; margin-left: 4px;
    transition: transform 0.3s; display: inline-block;
}
.nav-mobile-list > li.open .nav-mobile-chevron {
    transform: rotate(180deg);
}

/* Submenu */
.nav-mobile-sub {
    display: none;
    list-style: none; padding: 4px 0 16px; margin: 0;
    background: rgba(255,255,255,0.015);
    border-radius: 8px;
}
.nav-mobile-list > li.open .nav-mobile-sub { display: block; }
.nav-mobile-sub li a {
    padding: 10px 0; font-size: 0.92rem;
    color: rgba(255,255,255,0.4); border-bottom: none;
}
.nav-mobile-sub li a:hover { color: #156E0F; }

/* Bottom section */
.nav-mobile-bottom {
    display: flex; flex-direction: column;
    align-items: center; gap: 16px; margin-top: auto;
    padding-top: 32px; width: 100%;
}
.nav-mobile-lang {
    font-size: 0.78rem; color: rgba(255,255,255,0.3);
    text-transform: uppercase; letter-spacing: 1.5px;
    text-decoration: none; transition: color 0.2s;
}
.nav-mobile-lang:hover { color: rgba(255,255,255,0.6); }
.nav-mobile-cta {
    display: block; width: 100%;
    background: #156E0F; color: #fff;
    padding: 16px 32px; border-radius: 8px;
    font-weight: 700; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    text-decoration: none; text-align: center;
    transition: all 0.2s;
}
.nav-mobile-cta:hover { background: #16a34a; transform: translateY(-1px); }

/* =============================================
   3. HOMEPAGE – REDESIGNED
   ============================================= */

/* --- UTILITY --- */
.hp-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hp-section-label {
    display: block; text-align: center;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: #156E0F; margin-bottom: 12px;
}
.hp-section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800; color: #0a111a;
    margin: 0 0 14px;
}
.hp-section-highlight { color: #156E0F; }
.hp-section-sub {
    text-align: center; color: #666;
    font-size: 1rem; max-width: 620px;
    margin: 0 auto 48px; line-height: 1.6;
}
.hp-empty { text-align: center; color: #888; grid-column: 1/-1; }
.hp-center-cta { text-align: center; margin-top: 40px; }
.hp-link-underline {
    color: #156E0F; font-weight: 600;
    border-bottom: 2px solid #156E0F;
    padding-bottom: 3px; transition: opacity 0.2s;
}
.hp-link-underline:hover { opacity: 0.7; }

/* Buttons */
.hp-btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: #156E0F; color: #fff;
    padding: 14px 32px; border-radius: 8px;
    font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid #156E0F;
}
.hp-btn-primary:hover { background: #1a8513; transform: translateY(-2px); }
.hp-btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: #0a111a;
    padding: 14px 32px; border-radius: 8px;
    font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    border: 2px solid #ddd;
    transition: border-color 0.3s, transform 0.2s;
}
.hp-btn-outline:hover { border-color: #156E0F; transform: translateY(-2px); }
.hp-btn-full { width: 100%; text-align: center; }
.hp-btn-large { padding: 18px 48px; font-size: 0.95rem; }

/* ---------- HERO ---------- */
.hp-hero {
    position: relative;
    background: linear-gradient(rgba(10,15,30,0.72), rgba(10,15,30,0.80)), url('/en/wp-content/uploads/2023/07/madrid-hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -40px;
}
/* Hero ES con imagen de Pexels (solo portada en español) */
.hp-hero--pexels {
    background: linear-gradient(rgba(10,15,30,0.60), rgba(10,15,30,0.78)), url('/wp-content/uploads/2026/08/abogada-extranjeria-madrid-pexels-7977980-scaled.jpeg') center/cover no-repeat;
}
.hp-hero-inner {
    position: relative; z-index: 1;
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 380px;
    gap: 60px; align-items: center;
    justify-content: space-between;
}

/* Hero Left */
.hp-hero-badge {
    display: inline-block;
    background: rgba(21,110,15,0.2);
    border: 1px solid rgba(21,110,15,0.35);
    color: #1b8f14;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 6px 16px; border-radius: 20px;
    margin-bottom: 20px;
}
.hp-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800; color: #fff;
    line-height: 1.12; margin: 0 0 20px;
}
.hp-hero-highlight { color: #156E0F; }
.hp-hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.08rem; line-height: 1.7;
    max-width: 620px; margin: 0 0 30px;
}
.hp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hp-hero-btns .hp-btn-outline { color: #fff; border-color: rgba(255,255,255,0.25); }
.hp-hero-btns .hp-btn-outline:hover { border-color: #156E0F; }

.hp-hero-features {
    display: flex; gap: 36px;
    justify-content: flex-start;
}
.hp-hero-features span {
    color: rgba(255,255,255,0.5); font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.hp-hero-features strong {
    display: block; color: #fff; font-size: 1.1rem;
}

/* Hero Right Card */
.hp-hero-card {
    background: #fff; border-radius: 16px;
    padding: 36px 30px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.hp-hero-card-icon { font-size: 2rem; margin-bottom: 12px; }
.hp-hero-card h3 {
    font-size: 1.1rem; font-weight: 700; color: #0a111a;
    margin: 0 0 10px;
}
.hp-hero-card p {
    font-size: 0.88rem; color: #666; line-height: 1.6;
    margin: 0 0 20px;
}
.hp-hero-card-list {
    list-style: none; padding: 0; margin: 0 0 24px;
    text-align: left;
}
.hp-hero-card-list li {
    font-size: 0.85rem; color: #444;
    padding: 6px 0 6px 22px;
    position: relative;
}
.hp-hero-card-list li::before {
    content: '\2713'; color: #156E0F; font-weight: 700;
    position: absolute; left: 0;
}

/* ---------- SERVICES GRID ---------- */
.hp-services {
    padding: 80px 0;
    background: #fff;
}
.hp-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}
.hp-svc-card { grid-column: span 1; }
.hp-svc-card {
    background: #fafafa; border-radius: 10px;
    padding: 18px 18px; border: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
}
.hp-svc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.hp-svc-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(34,197,94,0.08);
    border-radius: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.hp-svc-png-icon {
    width: 44px; height: 44px;
}
.hp-svc-card .hp-svc-body {
    display: flex; flex-direction: column;
}
.hp-svc-title {
    font-size: 1rem; font-weight: 700; color: #0a111a;
    margin: 0 0 4px;
}
.hp-svc-excerpt {
    font-size: 0.8rem; color: #666; line-height: 1.5;
    margin: 0;
}
.hp-svc-link {
    color: #156E0F; font-weight: 600; font-size: 0.78rem;
    margin-top: 6px;
}
.hp-svc-link:hover { text-decoration: underline; }

/* ---------- TRUST / AUTHORITY ---------- */
.hp-trust {
    background: #f4f7f4;
    padding: 100px 0;
}
.hp-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
.hp-trust-card { text-align: center; }
.hp-trust-photo {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 4px solid #156E0F;
    margin-bottom: 20px;
}
.hp-trust-name {
    font-size: 1.6rem; font-weight: 800; color: #0a111a;
    margin: 0 0 4px;
}
.hp-trust-role {
    display: block; font-size: 0.95rem; color: #666;
    margin-bottom: 8px;
}
.hp-trust-icam {
    display: inline-block;
    background: #156E0F; color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 5px 14px; border-radius: 4px;
    letter-spacing: 0.5px; margin-bottom: 16px;
}
.hp-trust-bio {
    font-size: 0.95rem; color: #555; line-height: 1.7;
    max-width: 420px; margin: 0 auto;
}
.hp-trust-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hp-trust-stat {
    background: #fff; border-radius: 12px;
    padding: 28px 20px; text-align: center;
    border: 1px solid #e0e5e0;
    transition: transform 0.3s;
}
.hp-trust-stat:hover { transform: translateY(-4px); }
.hp-trust-stat strong {
    display: block;
    font-size: 2.2rem; font-weight: 800; color: #156E0F;
    line-height: 1.1; margin-bottom: 6px;
}
.hp-trust-stat span {
    font-size: 0.82rem; color: #666;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---------- TESTIMONIALS ---------- */
.hp-testimonials {
    padding: 100px 0;
    background: #fff;
}
.hp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hp-testimonial-card {
    background: #16202c; border-radius: 12px;
    padding: 28px; border: 1px solid #26344a;
    margin: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}
.hp-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}
.hp-testimonial-stars {
    color: #f1c40f; font-size: 1.1rem;
    letter-spacing: 2px; margin-bottom: 12px;
}
.hp-testimonial-text {
    font-size: 0.93rem; color: #d6dde6; line-height: 1.7;
    font-style: italic; margin: 0 0 10px;
}
/* Marca "Traducido" (مترجم) en pequeño */
.hp-testimonial-translated {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #8aa08d;
    letter-spacing: 0.5px;
    text-transform: none;
    margin-bottom: 10px;
}
.hp-testimonial-translated::before {
    content: '\2190';
    margin-inline-end: 4px;
    font-size: 0.7rem;
}
.hp-testimonial-card footer {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.hp-google-logo {
    display: inline-flex; align-items: center; flex-shrink: 0;
}
.hp-testimonial-card footer strong {
    display: block; font-size: 0.9rem; color: #fff;
}
.hp-testimonial-card footer span {
    font-size: 0.78rem; color: #9aa7b4;
}

.hp-google-note {
    color: #777; font-size: 0.9rem; margin: 0 0 8px;
}

/* ---------- MULTIMEDIA ---------- */
.hp-multimedia {
    padding: 100px 0;
    background: #fff;
}
.hp-videos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}
.hp-video:nth-child(1),
.hp-video:nth-child(2) {
    grid-column: span 3;
}
.hp-video:nth-child(n+3) {
    grid-column: span 2;
}
.hp-video {
    border-radius: 12px; overflow: hidden;
    border: 1px solid #eee;
    background: #0a111a;
    transition: transform 0.3s, box-shadow 0.3s;
}
.hp-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}
.hp-video a {
    position: relative; display: block; line-height: 0;
}
.hp-video img {
    width: 100%; aspect-ratio: 16 / 9;
    object-fit: cover; display: block;
}
.hp-video-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; opacity: 0.9;
    background: rgba(10,17,26,0.25);
    transition: opacity 0.3s;
}
.hp-video:hover .hp-video-play { opacity: 1; }
.hp-multimedia-socials {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 14px; margin-top: 32px;
}

/* ---------- CTA FINAL ---------- */
.hp-cta-final {
    background: #0a111a; padding: 80px 0;
    text-align: center;
}
.hp-cta-final-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800; color: #fff;
    margin: 0 0 14px;
}
.hp-cta-final-sub {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem; max-width: 560px;
    margin: 0 auto 32px; line-height: 1.6;
}
.hp-cta-final .hp-btn-primary { border-color: #fff; }

/* ---------- BLOG ---------- */
.hp-blog {
    padding: 100px 0;
    background: #f9fafb;
}
.hp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hp-blog-card {
    background: #fff; border-radius: 12px;
    overflow: hidden; border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.hp-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.hp-blog-img-link { display: block; overflow: hidden; }
.hp-blog-img {
    width: 100%; height: 200px; object-fit: cover;
    display: block; transition: transform 0.5s;
}
.hp-blog-card:hover .hp-blog-img { transform: scale(1.04); }
.hp-blog-body { padding: 22px; }
.hp-blog-date {
    font-size: 0.75rem; color: #999;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 8px; display: block;
}
.hp-blog-title {
    font-size: 1.05rem; font-weight: 700; color: #111;
    margin: 0 0 10px; line-height: 1.4;
}
.hp-blog-title a { color: inherit; }
.hp-blog-title a:hover { color: #156E0F; }
.hp-blog-excerpt {
    font-size: 0.9rem; color: #555; line-height: 1.5;
    margin: 0 0 14px;
}
.hp-blog-more {
    color: #156E0F; font-weight: 600; font-size: 0.85rem;
}

/* ---------- CONTACT ---------- */
.hp-contact {
    padding: 100px 0;
    background: #fff;
}
.hp-contact-wrap {
    max-width: 1100px; margin: 0 auto; padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: start;
}
.hp-contact-intro {
    color: #666; font-size: 1rem; line-height: 1.6;
    margin: 0 0 32px;
}
.hp-contact-info {
    display: flex; flex-direction: column; gap: 20px;
    margin-bottom: 32px;
}
.hp-contact-item {
    display: flex; align-items: flex-start; gap: 14px;
}
.hp-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.hp-contact-item strong {
    display: block; font-size: 0.9rem; color: #0a111a;
    margin-bottom: 2px;
}
.hp-contact-item span {
    font-size: 0.85rem; color: #888;
}
.hp-contact-badge {
    background: #f4f7f4; border-radius: 12px;
    padding: 24px; display: flex; align-items: center; gap: 16px;
    border: 1px solid #e0e5e0;
}
.hp-contact-badge-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(34,197,94,0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hp-contact-badge strong { display: block; font-size: 0.9rem; color: #0a111a; }
.hp-contact-badge span { font-size: 0.78rem; color: #888; }

/* Form card */
.hp-contact-form {
    background: #fff; border-radius: 16px;
    padding: 36px 32px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.hp-contact-form-title {
    font-size: 1.15rem; font-weight: 700; color: #0a111a;
    margin: 0 0 24px;
}

/* WPForms overrides inside contact card */
.hp-contact-form .wpforms-container { margin: 0 !important; }
.hp-contact-form .wpforms-submit {
    background: #156E0F !important; color: #fff !important;
    padding: 16px 32px !important; border-radius: 8px !important;
    font-weight: 700 !important; text-transform: uppercase !important;
    letter-spacing: 0.5px !important; font-size: 0.9rem !important;
    border: none !important; cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important; box-sizing: border-box !important;
    margin-top: 24px !important;
}
.hp-contact-form .wpforms-submit:hover {
    background: #16a34a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(34,197,94,0.3) !important;
}
.hp-contact-form .wpforms-error {
    color: #dc3545 !important; font-size: 0.8rem !important;
}
.hp-contact-form .wpforms-confirmation-container-full {
    background: #f0fdf4 !important; border: 1px solid #156E0F !important;
    border-radius: 8px !important; padding: 16px 20px !important;
    color: #166534 !important; font-weight: 600;
}

/* Hide GDPR scroll box / details */
.wpforms-field-gdpr-details,
.wpforms-field-html,
.wpforms-field-page-break { display: none !important; }

/* Remove fieldset borders and legend */
.wpforms-form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}
.wpforms-form legend { display: none !important; }

/* Exception: show legend for name field */
.wpforms-form .wpforms-field-name legend {
    display: block !important;
    font-weight: 600 !important; font-size: 0.85rem !important;
    color: #0a111a !important; margin-bottom: 6px !important;
    padding: 0 !important; border: none !important;
    float: none !important; width: auto !important;
}

/* Hide duplicated checkbox label (keep only the checkbox + single-line label) */
.wpforms-form .wpforms-field-checkbox .wpforms-field-label,
.wpforms-form .wpforms-field-gdpr-checkbox .wpforms-field-label {
    display: none !important;
}

/* --- User-supplied WPForms fixes --- */

/* Resets de contenedores WPForms */
.wpforms-form .wpforms-field {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    margin-bottom: 20px !important;
}

/* Forzar que Email y Message ocupen todo el ancho */
.wpforms-form input[type="email"],
.wpforms-form textarea,
.wpforms-form .wpforms-field-email {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Arreglar campo de Nombre (First / Last) en 2 columnas perfectas */
.wpforms-form .wpforms-field-name .wpforms-field-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    width: 100% !important;
}

.wpforms-form .wpforms-field-name .wpforms-field-row-block {
    width: 50% !important;
    margin: 0 !important;
    float: none !important;
}

.wpforms-form .wpforms-field-name input {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Input base styles */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form textarea,
.wpforms-form select {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    font-family: Inter, sans-serif !important;
    background: #fafbfc !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    box-sizing: border-box !important;
}
.wpforms-form input:focus,
.wpforms-form textarea:focus,
.wpforms-form select:focus {
    border-color: #156E0F !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.1) !important;
    outline: none !important;
    background: #fff !important;
}
.wpforms-form .wpforms-field-label {
    font-weight: 600 !important; font-size: 0.85rem !important;
    color: #0a111a !important; margin-bottom: 6px !important;
}

/* WPForms submit button — global */
.wpforms-form button[type="submit"],
.wpforms-form .wpforms-submit {
    background: #156E0F !important; color: #fff !important;
    padding: 16px 32px !important; border-radius: 8px !important;
    font-weight: 700 !important; text-transform: uppercase !important;
    letter-spacing: 0.5px !important; font-size: 0.9rem !important;
    border: none !important; cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important; box-sizing: border-box !important;
}
.wpforms-form button[type="submit"]:hover,
.wpforms-form .wpforms-submit:hover {
    background: #16a34a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(34,197,94,0.3) !important;
}
.wpforms-form .wpforms-field-sublabel {
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 400;
}

/* Textarea min-height */
.wpforms-form textarea {
    min-height: 160px !important;
    resize: vertical !important;
}

/* Focus effect on all fields */
.wpforms-form textarea:focus,
.wpforms-form input:focus,
.wpforms-form select:focus {
    border-color: #156E0F !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15) !important;
    outline: none !important;
    background: #fff !important;
}
.wpforms-form .wpforms-field-checkbox label,
.wpforms-form .wpforms-field-gdpr-checkbox label {
    font-size: 0.82rem !important; color: #666 !important;
    line-height: 1.5 !important; font-weight: 400 !important;
}
.wpforms-form .wpforms-field-checkbox input,
.wpforms-form .wpforms-field-gdpr-checkbox input {
    width: 18px !important; height: 18px !important;
    accent-color: #156E0F !important;
}
/* Privacy link in form labels & descriptions */
.wpforms-field-description a,
.wpforms-field-label-inline a {
    color: #156E0F !important;
    text-decoration: underline !important;
}
.wpforms-field-description a:hover,
.wpforms-field-label-inline a:hover {
    color: #16a34a !important;
}

/* Responsive */
@media (max-width: 1023px) {
    .hp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hp-hero-right { max-width: 380px; margin: 0 auto; }
    .hp-trust-grid { grid-template-columns: 1fr; gap: 40px; }
    .hp-services-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-svc-card { grid-column: span 1; }
    .hp-svc-card:nth-child(n+7) { grid-column: span 1; }
    .hp-testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .hp-blog-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .hp-videos-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .hp-video { grid-column: span 1; }
}
@media (max-width: 600px) {
    .hp-hero { min-height: auto; padding: 40px 0 60px; margin-top: -40px; }
    .hp-hero-btns { flex-direction: column; }
    .hp-hero-btns .hp-btn-primary,
    .hp-hero-btns .hp-btn-outline { width: 100%; }
    .hp-services-grid { grid-template-columns: 1fr; }
    .hp-svc-card { grid-column: span 1; }
    .hp-svc-card:nth-child(n+7) { grid-column: span 1; }
    .hp-trust-right { grid-template-columns: 1fr; }
    .hp-services { padding: 60px 0; }
    .hp-trust { padding: 60px 0; }
    .hp-testimonials { padding: 60px 0; }
    .hp-cta-final { padding: 60px 0; }
    .hp-blog { padding: 60px 0; }
    .hp-multimedia { padding: 60px 0; }
    .hp-contact { padding: 60px 0; }
    .hp-hero-features { gap: 16px; }
}

/* Legacy button — global fallback */
.btn-main {
    display: inline-flex; align-items: center; justify-content: center;
    background: #156E0F; color: #fff;
    padding: 14px 32px; border-radius: 8px;
    font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid #156E0F; text-decoration: none;
}
.btn-main:hover { background: #1a8513; transform: translateY(-2px); }
.btn-sec {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: inherit;
    padding: 14px 32px; border-radius: 8px;
    font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    border: 2px solid #ddd; text-decoration: none;
    transition: border-color 0.3s, transform 0.2s;
}
.btn-sec:hover { border-color: #156E0F; transform: translateY(-2px); }

/* =============================================
   11. FOOTER — PREMIUM
   ============================================= */
.pro-footer {
    background: #080808; padding: 60px 20px 0;
    border-top: 3px solid #156E0F;
}
.pro-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr;
    gap: 50px; max-width: 1280px; margin: 0 auto 40px;
    padding: 0 24px;
}

/* Brand Column */
.pro-footer-brand-link {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; margin-bottom: 16px;
}
.pro-footer-photo {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.pro-footer-name { color: #fff; font-size: 1rem; font-weight: 700; display: block; }
.pro-footer-role { color: rgba(255,255,255,0.4); font-size: 0.72rem; display: block; margin-top: 2px; }
.pro-footer-desc {
    color: #999; font-size: 0.88rem; line-height: 1.7;
    margin: 0 0 20px; max-width: 380px;
}
.pro-footer-social { display: flex; gap: 10px; }
.pro-footer-social a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #222; border-radius: 10px;
    color: #777;
    transition: all 0.3s;
}
.pro-footer-social a:hover { border-color: #156E0F; background: rgba(21,110,15,0.1); color: #156E0F; }

/* Services Column */
.pro-footer-services h4,
.pro-footer-contact h4 {
    color: #fff; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin: 0 0 16px;
}
.pro-footer-services ul,
.pro-footer-contact ul {
    display: flex; flex-direction: column; gap: 8px;
}
.pro-footer-services li,
.pro-footer-contact li {
    font-size: 0.85rem; color: #aaa;
    display: flex; align-items: center;
}
.pro-footer-services li::before { content: '\203A'; color: #156E0F; font-weight: 700; margin-right: 8px; }
.pro-footer-services a { color: #ccc; transition: color 0.2s; }
.pro-footer-services a:hover { color: #156E0F; }
.pro-footer-contact a { color: #156E0F; font-weight: 600; }

.pro-footer-icam {
    margin-top: 20px;
}
.pro-footer-icam span {
    display: inline-block;
    background: rgba(21,110,15,0.15);
    border: 1px solid rgba(21,110,15,0.25);
    color: #156E0F; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.5px; padding: 5px 12px;
    border-radius: 6px;
}

/* Legal Bar */
.pro-footer-bar {
    background: #050505; border-top: 1px solid #151515;
    padding: 20px 24px; display: flex;
    justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 15px;
    max-width: 1280px; margin: 0 auto;
}
.pro-footer-bar p { color: #666; font-size: 0.78rem; margin: 0; }
.pro-footer-bar nav { display: flex; gap: 24px; }
.pro-footer-bar nav a { color: #666; font-size: 0.78rem; transition: color 0.3s; }
.pro-footer-bar nav a:hover { color: #156E0F; }

/* =============================================
   12. SERVICE PAGE TEMPLATE
   ============================================= */

/* Breadcrumbs */
.service-breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #999;
}
.service-breadcrumbs a {
    color: #156E0F;
    text-decoration: none;
}
.service-breadcrumbs a:hover { text-decoration: underline; }
.service-breadcrumbs .sep {
    margin: 0 10px;
    color: #ccc;
}

/* Page header image */
.page-header-img {
    padding: 40px 24px 30px;
    background: #0a111a;
    text-align: center;
}
.page-header-img h1 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    max-width: 1280px;
    margin: 0 auto;
}

/* Service content layout */
.service-template-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.service-sidebar {
    position: sticky;
    top: 100px;
}
.service-sidebar-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.service-sidebar-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
    color: #0a111a;
}
.service-sidebar-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}
.service-sidebar-card ul li {
    font-size: 0.88rem;
    color: #444;
    padding-left: 16px;
    position: relative;
}
.service-sidebar-card ul li::before {
    content: '\2713';
    color: #156E0F;
    font-weight: 700;
    position: absolute;
    left: 0;
}
.service-sidebar-cta {
    background: #0a111a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.service-sidebar-cta h4 {
    color: #fff;
    margin-bottom: 4px;
}
.service-sidebar-cta .btn-main {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 4px;
}
.service-sidebar-cta .icam-badge {
    display: inline-block;
    background: #156E0F;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.service-sidebar-cta p {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .service-template-content { grid-template-columns: 1fr; }
    .service-main { order: 1; }
    .service-sidebar { order: 2; position: static !important; }
}

/* Main service template container */
.service-template-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
    font-family: Inter, sans-serif;
}
.service-template-container .entry-content { font-size: 1rem; }
.service-template-container .entry-content h1 { font-size: 2rem; margin-top: 0; }
.service-template-container .entry-content h2 { color: #156E0F; font-size: 1.4rem; margin-top: 30px; }
.service-template-container .entry-content h3 { font-size: 1.15rem; margin-top: 25px; }
.service-template-container .entry-content p { margin-bottom: 15px; }
.service-template-container .entry-content ul,
.service-template-container .entry-content ol { padding-left: 20px; margin-bottom: 15px; }
.service-template-container .entry-content li { margin-bottom: 8px; }
.service-template-container .entry-content img { border-radius: 8px; margin: 20px 0; }

/* =============================================
   13. PAGE TEMPLATES
   ============================================= */
.page-container,
.single-container,
.archive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.page-container .entry-title,
.single-container .entry-title,
.archive-container .archive-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

/* Blog archive */
.archive-container .archive-posts { display: flex; flex-direction: column; gap: 30px; }
.archive-container .archive-post {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}
.archive-container .archive-post h2 { margin: 0 0 10px; }
.archive-container .archive-post h2 a { color: #111; }
.archive-container .archive-post h2 a:hover { color: #156E0F; }
.archive-container .archive-post .post-meta { font-size: 0.8rem; color: #888; margin-bottom: 10px; }

/* Single post */
.single-container .post-meta { font-size: 0.85rem; color: #888; margin-bottom: 30px; }
.single-container .post-content { line-height: 1.8; }
.single-container .post-content h2 { color: #156E0F; font-size: 1.4rem; margin-top: 30px; }
.single-container .post-content p { margin-bottom: 15px; }

/* Author bio at end of posts */
.author-bio {
    background: #f4f7f4;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.author-bio-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio-text { flex: 1; }
.author-bio-text h4 { margin: 0 0 8px; font-size: 1rem; color: #111; }
.author-bio-text p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}
.author-bio-text .icam-badge {
    display: inline-block;
    background: #156E0F;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Legal disclaimer */
.legal-disclaimer {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 30px;
}

/* 404 page */
.not-found {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}
.not-found-inner { text-align: center; }
.not-found-code {
    display: block;
    font-size: 7rem; font-weight: 800;
    color: #eee; line-height: 1;
    margin-bottom: 0;
}
.not-found-title {
    font-size: 1.8rem; font-weight: 800;
    color: #0a111a; margin: 0 0 12px;
}
.not-found-text {
    font-size: 1rem; color: #888;
    margin: 0 auto 28px; max-width: 420px;
}

/* =============================================
   14. SINGLE POST — PREMIUM
   ============================================= */

/* Reading progress bar */
.single-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    background: linear-gradient(90deg, #156E0F, #1b8f14);
    z-index: 99999;
    transition: width 0.1s linear;
}

/* Layout */
.sp-wrapper {
    max-width: 1280px; margin: 0 auto; padding: 0 24px 60px;
    display: grid; grid-template-columns: 1fr 320px; gap: 48px;
    align-items: start;
}
.sp-main { min-width: 0; }

/* Article header */
.sp-header { margin-bottom: 32px; }
.sp-cats { margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.sp-cats a {
    background: rgba(21,110,15,0.1);
    color: #156E0F; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    padding: 4px 12px; border-radius: 20px;
    transition: all 0.2s;
}
.sp-cats a:hover { background: #156E0F; color: #fff; }

.sp-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800; line-height: 1.2;
    color: #0a111a; margin: 0 0 16px;
}
.sp-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    color: #888; font-size: 0.85rem;
}
.sp-meta-author strong { color: #0a111a; font-weight: 600; }
.sp-meta-sep { color: #ddd; }

/* Featured image */
.sp-featured { margin-bottom: 36px; border-radius: 14px; overflow: hidden; }
.sp-featured-img { width: 100%; max-height: 400px; object-fit: cover; display: block; border-radius: 14px; }

/* Table of contents */
.sp-toc {
    background: #f4f7f4; border-radius: 12px;
    padding: 22px 26px; margin-bottom: 32px;
    border-left: 4px solid #156E0F;
}
.sp-toc-title { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #156E0F; margin-bottom: 10px; }
.sp-toc nav { display: flex; flex-direction: column; gap: 4px; }
.sp-toc nav a {
    color: #444; font-size: 0.88rem; font-weight: 500;
    padding: 3px 0; border-bottom: 1px solid #e0e5e0;
    transition: color 0.2s;
}
.sp-toc nav a:hover { color: #156E0F; }

/* Body content */
.sp-body { font-size: 1.05rem; line-height: 1.8; color: #222; }
.sp-body h2 { font-size: 1.6rem; font-weight: 700; color: #0a111a; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; scroll-margin-top: 100px; }
.sp-body h3 { font-size: 1.25rem; font-weight: 700; color: #0a111a; margin: 32px 0 12px; scroll-margin-top: 100px; }
.sp-body p { margin-bottom: 18px; }
.sp-body ul, .sp-body ol { padding-left: 24px; margin-bottom: 18px; }
.sp-body li { margin-bottom: 8px; }
.sp-body img { border-radius: 10px; margin: 24px 0; max-width: 100%; height: auto; }
.sp-body a { color: #156E0F; text-decoration: underline; text-underline-offset: 3px; }
.sp-body a:hover { color: #1b8f14; }
.sp-body blockquote {
    border-left: 4px solid #156E0F; padding: 16px 22px;
    margin: 24px 0; background: #f4f7f4; border-radius: 0 10px 10px 0;
    font-style: italic; color: #444;
}
.sp-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.sp-body th, .sp-body td { border: 1px solid #e0e0e0; padding: 10px 14px; text-align: left; }
.sp-body th { background: #f4f7f4; font-weight: 700; color: #0a111a; }

/* Author box */
.sp-author {
    display: flex; gap: 20px; align-items: flex-start;
    background: #f4f7f4; border-radius: 14px;
    padding: 26px; margin-top: 48px; border: 1px solid #e0e5e0;
}
.sp-author-img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sp-author-text { flex: 1; }
.sp-author-text strong { display: block; font-size: 1rem; color: #0a111a; margin-bottom: 2px; }
.sp-author-text span { display: block; font-size: 0.78rem; color: #156E0F; font-weight: 600; margin-bottom: 8px; }
.sp-author-text p { font-size: 0.88rem; color: #555; line-height: 1.6; margin: 0; }

/* Disclaimer */
.sp-disclaimer {
    font-size: 0.78rem; color: #999; font-style: italic;
    border-top: 1px solid #eee; padding-top: 20px; margin-top: 30px;
}

/* Related posts */
.sp-related { margin-top: 50px; padding-top: 30px; border-top: 2px solid #f0f0f0; }
.sp-related-title { font-size: 1.2rem; font-weight: 700; color: #0a111a; margin: 0 0 20px; }
.sp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sp-related-card {
    display: block; background: #f9f9f9; border-radius: 12px;
    overflow: hidden; border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.sp-related-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.sp-related-card img { width: 100%; height: 140px; object-fit: cover; display: block; border-radius: 10px 10px 0 0; }
.sp-related-card h4 { font-size: 0.88rem; font-weight: 700; color: #0a111a; margin: 12px 14px 4px; }
.sp-related-date { display: block; font-size: 0.72rem; color: #888; margin: 0 14px 14px; }

/* SIDEBAR */
.sp-sidebar { position: sticky; top: 100px; }
.sp-widget {
    background: #fff; border-radius: 12px;
    border: 1px solid #e8e8e8; padding: 24px;
    margin-bottom: 20px;
}
.sp-widget h4 {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #0a111a; margin: 0 0 14px;
}

/* CTA Widget */
.sp-cta-card { background: #0a111a; border-color: #0a111a; text-align: center; }
.sp-cta-card h4 { color: #fff; }
.sp-cta-card p { color: rgba(255,255,255,0.7); font-size: 0.85rem; line-height: 1.6; margin: 0 0 18px; }
.sp-cta-btn {
    display: inline-block; background: #156E0F; color: #fff;
    padding: 10px 24px; border-radius: 6px;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; transition: all 0.3s;
}
.sp-cta-btn:hover { background: #1b8f14; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(21,110,15,0.3); }

/* Recent Widget */
.sp-recent-card ul { display: flex; flex-direction: column; gap: 12px; }
.sp-recent-card li { margin: 0; }
.sp-recent-card a {
    display: flex; gap: 12px; align-items: center;
    color: #333; transition: color 0.2s;
}
.sp-recent-card a:hover { color: #156E0F; }
.sp-recent-card a img {
    width: 48px; height: 48px; border-radius: 8px;
    object-fit: cover; flex-shrink: 0;
}
.sp-recent-card a span { display: flex; flex-direction: column; }
.sp-recent-card a strong { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.sp-recent-card a small { font-size: 0.7rem; color: #999; margin-top: 2px; }

/* Categories Widget */
.sp-cats-card ul { display: flex; flex-direction: column; gap: 6px; }
.sp-cats-card li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; border-radius: 8px;
    color: #444; font-size: 0.85rem; font-weight: 500;
    transition: all 0.2s;
}
.sp-cats-card li a:hover { background: #f4f7f4; color: #156E0F; }
.sp-cats-card li a span { color: #999; font-size: 0.75rem; }

/* Sidebar TOC Widget */
.sp-toc-card nav {
    display: flex; flex-direction: column; gap: 2px;
    max-height: 420px; overflow-y: auto;
}
.sp-toc-card nav a {
    color: #444; font-size: 0.85rem; font-weight: 500;
    padding: 6px 10px; border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}
.sp-toc-card nav a:hover { background: #f4f7f4; color: #156E0F; border-left-color: #156E0F; }

/* About the lawyer Widget */
.sp-about-card { text-align: center; }
.sp-about-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
.sp-about-name { display: block; font-size: 0.95rem; font-weight: 700; color: #0a111a; }
.sp-about-role { display: block; font-size: 0.75rem; color: #156E0F; font-weight: 600; margin: 2px 0 10px; }
.sp-about-bio { font-size: 0.85rem; color: #555; line-height: 1.6; margin: 0 0 14px; }
.sp-about-link { font-size: 0.82rem; font-weight: 600; color: #156E0F; }
.sp-about-link:hover { text-decoration: underline; }

/* =============================================
   15. BLOG ARCHIVE — PREMIUM
   ============================================= */

.arc-hero {
    background: #fff; border-bottom: 1px solid #eee;
    padding: 60px 24px 50px;
    text-align: center;
}
.arc-hero-inner { max-width: 700px; margin: 0 auto; }
.arc-eyebrow {
    display: inline-block;
    color: #156E0F; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 12px;
}
.arc-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; color: #0a111a; margin: 0 0 14px;
}
.arc-hero p {
    color: #666; font-size: 1rem;
    line-height: 1.6; margin: 0;
}

.arc-wrapper {
    max-width: 1280px; margin: 0 auto; padding: 0 24px 80px;
}

.arc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.arc-card {
    background: #fff; border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.arc-card:hover { transform: translateY(-6px); box-shadow: 0 14px 35px rgba(0,0,0,0.06); }
.arc-card-link { display: block; color: inherit; text-decoration: none; }

.arc-card-img-wrap { overflow: hidden; }
.arc-card-img-wrap img {
    width: 100%; height: 200px; object-fit: cover;
    display: block; transition: transform 0.5s;
}
.arc-card:hover .arc-card-img-wrap img { transform: scale(1.04); }

.arc-card-body { padding: 24px; }
.arc-card-cat {
    display: inline-block;
    background: rgba(21,110,15,0.1); color: #156E0F;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; padding: 4px 10px; border-radius: 4px;
    margin-bottom: 10px;
}
.arc-card-title {
    font-size: 1.1rem; font-weight: 700; color: #0a111a;
    margin: 0 0 10px; line-height: 1.35;
}
.arc-card-title:hover { color: #156E0F; }
.arc-card-excerpt {
    font-size: 0.88rem; color: #555; line-height: 1.6;
    margin: 0 0 14px;
}
.arc-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; color: #999;
    padding-top: 12px; border-top: 1px solid #f0f0f0;
}

/* Pagination */
.arc-pagi { margin-top: 50px; }
.arc-pagi ul {
    display: flex; justify-content: center; gap: 6px;
    list-style: none; padding: 0;
}
.arc-pagi li a, .arc-pagi li span {
    display: flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 12px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600;
    color: #444; background: #f4f4f4;
    transition: all 0.2s;
}
.arc-pagi li a:hover { background: #156E0F; color: #fff; }
.arc-pagi li span.current { background: #156E0F; color: #fff; }
.arc-pagi li span.dots { background: none; color: #999; }

.arc-empty { text-align: center; padding: 60px 0; }
.arc-empty p { color: #888; font-size: 1rem; margin-bottom: 20px; }

/* =============================================
   16. FALLBACK THUMBNAIL
   ============================================= */
.em-thumb-fallback {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a111a 0%, #1a2a3a 100%);
    position: relative; overflow: hidden;
}
.em-thumb-fallback::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 48px; height: 48px; transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.08);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1'%3E%3Cline x1='12' y1='2' x2='12' y2='22'/%3E%3Cline x1='8' y1='7' x2='18' y2='7'/%3E%3Cline x1='8' y1='12' x2='12' y2='12'/%3E%3Cline x1='8' y1='17' x2='12' y2='17'/%3E%3Cline x1='12' y1='12' x2='18' y2='12'/%3E%3Cline x1='12' y1='17' x2='18' y2='17'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1'%3E%3Cline x1='12' y1='2' x2='12' y2='22'/%3E%3Cline x1='8' y1='7' x2='18' y2='7'/%3E%3Cline x1='8' y1='12' x2='12' y2='12'/%3E%3Cline x1='8' y1='17' x2='12' y2='17'/%3E%3Cline x1='12' y1='12' x2='18' y2='12'/%3E%3Cline x1='12' y1='17' x2='18' y2='17'/%3E%3C/svg%3E");
    mask-size: contain; -webkit-mask-size: contain;
    mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
}
.em-thumb-fallback::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 20px,
        rgba(255,255,255,0.015) 20px, rgba(255,255,255,0.015) 21px
    );
}
/* Blog card fallback */
.blog-card-img-link { display: block; overflow: hidden; }
.blog-card-img-link .em-thumb-fallback { height: 200px; }

/* Featured image fallback */
.sp-featured-img.em-thumb-fallback { max-height: 400px; height: 300px; width: 100%; }

/* Archive card fallback */
.arc-card-img-wrap { overflow: hidden; }
.arc-card-img-wrap .em-thumb-fallback { height: 200px; }

/* Related posts fallback */
.sp-related-thumb { display: block; overflow: hidden; }
.sp-related-thumb .em-thumb-fallback { height: 140px; }

/* Sidebar fallback */
.sp-sidebar-thumb { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.sp-sidebar-thumb.em-thumb-fallback { border-radius: 8px; }

/* =============================================
   17a. COOKIE BANNER
   ============================================= */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #0a111a; color: #fff;
    z-index: 10000; padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.cookie-banner-text p {
    font-size: 0.85rem; color: rgba(255,255,255,0.7);
    margin: 0; line-height: 1.5;
}
.cookie-banner-text a {
    color: #156E0F; text-decoration: underline;
}
.cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
    padding: 10px 20px; border-radius: 6px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
    border: none; transition: all 0.2s;
}
.cookie-btn-accept {
    background: #156E0F; color: #fff;
}
.cookie-btn-accept:hover { background: #16a34a; }
.cookie-btn-settings {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.cookie-btn-settings:hover { border-color: #156E0F; color: #156E0F; }
@media (max-width: 600px) {
    .cookie-banner-inner { flex-direction: column; text-align: center; }
}

/* =============================================
   18. FAQ ACCORDION
   ============================================= */

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}
.faq-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; gap: 16px;
    background: none; border: none; cursor: pointer;
    font-size: 0.95rem; font-weight: 600; color: #0a111a;
    text-align: left; line-height: 1.4;
    font-family: Inter, sans-serif;
}
.faq-trigger:hover { background: #f9fafb; }
.faq-trigger[aria-expanded="true"] { color: #156E0F; }
.faq-icon {
    flex-shrink: 0; color: #999; transition: transform 0.3s, color 0.2s;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg); color: #156E0F;
}
.faq-panel {
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: 0;
    background: #fff;
}
.faq-panel > * {
    padding: 0 22px 14px; margin: 0;
    font-size: 0.9rem; color: #555; line-height: 1.7;
}
.faq-panel > p:first-child { padding-top: 4px; }
.faq-panel > p:last-child { padding-bottom: 20px; }

/* =============================================
   17. RESPONSIVE
   ============================================= */
@media (max-width: 1023px) {
    .desktop { display: none; }
    .pro-nav, .pro-cta { display: none; }
    .nav-toggle { display: flex; }
    .sp-wrapper { grid-template-columns: 1fr; }
    .sp-sidebar { position: static; }
    .sp-related-grid { grid-template-columns: 1fr; }
    .pro-brand-title { display: none; }
    .service-template-content { grid-template-columns: 1fr; }
    .hp-contact-wrap { grid-template-columns: 1fr; gap: 40px; }
    .hp-contact-left { max-width: 600px; }
}

@media (max-width: 991px) {
    .pro-footer-inner { grid-template-columns: 1fr; text-align: center; }
    .pro-footer-brand-link { justify-content: center; }
    .pro-footer-desc { max-width: 100%; }
    .pro-footer-social { justify-content: center; }
    .pro-footer-bar { flex-direction: column; text-align: center; }
    .pro-footer-bar nav { justify-content: center; flex-wrap: wrap; }
    .arc-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .pro-header-inner { padding: 4px 16px; }
    .author-bio { flex-direction: column; align-items: center; text-align: center; }
    .sp-wrapper { padding: 0 16px 40px; }
    .sp-meta { font-size: 0.78rem; }
    .sp-author { flex-direction: column; align-items: center; text-align: center; }
    .arc-hero { padding: 40px 16px 30px; }
    .arc-wrapper { padding: 0 16px 60px; }
    .service-template-container { padding: 0 16px 40px; }
    .page-container, .archive-container { padding: 0 16px 40px; }
}

/* =============================================
   18. ABOUT PAGE
   ============================================= */

.about-eyebrow {
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.75rem; font-weight: 700; color: #156E0F;
    margin-bottom: 16px;
}
.about-main-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; color: #0a111a;
    line-height: 1.15; margin: 0 0 20px;
}
.about-intro-text {
    font-size: 1.05rem; color: #555; line-height: 1.7;
    max-width: 680px; margin: 0 auto 16px;
}

.about-lawyer-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px; align-items: start;
    padding: 40px 24px;
    max-width: 1280px; margin: 0 auto;
}
.about-lawyer-left h2 { font-size: 1.5rem; font-weight: 800; color: #0a111a; margin: 0 0 8px; }
.about-lawyer-left h3 { font-size: 1.25rem; font-weight: 700; color: #156E0F; margin: 0 0 8px; }
.about-icam { font-size: 0.85rem; color: #888; margin-bottom: 20px; }
.about-lawyer-left blockquote {
    border-left: 4px solid #156E0F; padding: 12px 20px; margin: 24px 0;
    background: #f4f7f4; border-radius: 0 10px 10px 0;
    font-style: italic; color: #444; font-size: 1rem;
}
.about-lawyer-left blockquote cite { display: block; margin-top: 8px; font-weight: 600; font-style: normal; color: #0a111a; }
.about-lawyer-photo img { border-radius: 16px; width: 100%; }
.about-lawyer-right { position: sticky; top: 100px; }

.about-feature-card {
    background: #fff; border-radius: 12px; padding: 28px 24px;
    border: 1px solid #e0e5e0; height: 100%;
}
.about-feature-card h3 { font-size: 1rem; font-weight: 700; color: #0a111a; margin: 0 0 8px; }
.about-feature-card p { font-size: 0.88rem; color: #666; line-height: 1.6; margin: 0; }

.about-team-intro { max-width: 700px; margin: 0 auto 40px !important; color: #666; line-height: 1.6; }
.about-team-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; max-width: 1280px; margin: 0 auto;
}
.about-team-card {
    background: #fff; border-radius: 12px; padding: 24px;
    border: 1px solid #eee; text-align: center;
}
.about-team-card strong { display: block; font-size: 0.9rem; color: #0a111a; margin-bottom: 4px; }
.about-team-card span { display: block; font-size: 0.85rem; color: #156E0F; font-weight: 600; margin-bottom: 8px; }
.about-team-card small { font-size: 0.78rem; color: #999; line-height: 1.5; display: block; }

.about-cta .wp-block-button__link { background: #156E0F !important; transition: all 0.2s; }
.about-cta .wp-block-button__link:hover { background: #16a34a !important; transform: translateY(-2px); }

@media (max-width: 1023px) {
    .about-lawyer-grid { grid-template-columns: 1fr; }
    .about-lawyer-right { position: static; max-width: 300px; margin: 0 auto; order: -1; }
    .about-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .about-team-grid { grid-template-columns: 1fr; }
    .about-feature-card { margin-bottom: 16px; }
}

/* =============================================
   19. SERVICES OVERVIEW PAGE
   ============================================= */

.services-page-header {
    text-align: center;
    max-width: 700px; margin: 0 auto; padding: 40px 24px 50px;
}
.services-page-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800; color: #0a111a; margin: 0 0 14px;
}
.services-page-header p {
    font-size: 1rem; color: #666; line-height: 1.7; margin: 0;
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1280px; margin: 0 auto; padding: 0 24px 80px;
}

.services-page-card {
    background: #fff; border-radius: 14px;
    padding: 28px 28px 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.25s;
    display: flex; flex-direction: column;
}
.services-page-card:hover {
    border-color: #d1f0d8;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.spc-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(34,197,94,0.08);
    border-radius: 12px;
    margin-bottom: 16px; flex-shrink: 0;
}

.services-page-card h3 {
    font-size: 1.05rem; font-weight: 700; color: #0a111a;
    margin: 0 0 8px;
}
.services-page-card p {
    font-size: 0.9rem; color: #555; line-height: 1.6;
    margin: 0 0 16px; flex: 1;
}
.spc-link {
    font-size: 0.85rem; font-weight: 600; color: #156E0F;
    text-decoration: none; margin-top: auto;
}
.spc-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .services-page-grid { grid-template-columns: 1fr; }
}

/* =============================================
   PAGE LAYOUT SYSTEM (pg-*)
   ============================================= */

/* Hero */
.pg-hero {
    background: linear-gradient(135deg, #0a111a 0%, #111d2e 100%);
    padding: 80px 20px 72px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.pg-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(21,110,15,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.pg-hero-inner { position: relative; z-index: 1; max-width: 750px; margin: 0 auto; }
.pg-hero-badge {
    display: inline-block; background: rgba(21,110,15,0.15);
    border: 1px solid rgba(21,110,15,0.3);
    color: #1a8f1f; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
    padding: 5px 16px; border-radius: 20px; margin-bottom: 20px;
}
.pg-hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800;
    margin: 0 0 16px; line-height: 1.2; letter-spacing: -0.01em;
}
.pg-hero-lead {
    color: rgba(255,255,255,0.65); font-size: 1.08rem;
    line-height: 1.7; max-width: 600px; margin: 0 auto;
}

/* Section */
.pg-section { padding: 80px 20px; }
.pg-section-alt { background: #f7f9f8; }
.pg-container { max-width: 1100px; margin: 0 auto; }
.pg-section-title {
    font-size: 1.8rem; font-weight: 800; color: #0a111a;
    margin: 0 0 14px;
}
.pg-section-title::after {
    content: ''; display: block; width: 52px; height: 3px;
    background: #156E0F; border-radius: 2px; margin-top: 12px;
}
.pg-check-list { margin-top: 8px; }
.pg-section-header { text-align: center; margin-bottom: 48px; }
.pg-section-eyebrow {
    display: block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: #156E0F; margin-bottom: 8px;
}
.pg-section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
    color: #0a111a; margin: 0 0 12px;
}
.pg-section-header p { color: #666; font-size: 1rem; max-width: 550px; margin: 0 auto; line-height: 1.6; }

/* Grid 2-1 layout */
.pg-grid-2-1 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }

/* Prose */
.pg-prose h2 { font-size: 1.8rem; font-weight: 800; color: #0a111a; margin: 0 0 20px; }
.pg-prose .pg-lead { font-size: 1.08rem; color: #333; line-height: 1.75; margin: 0 0 18px; }
.pg-prose p { font-size: 0.98rem; color: #555; line-height: 1.75; margin: 0 0 16px; }
.pg-quote {
    border-left: 3px solid #156E0F; padding: 14px 0 14px 22px;
    margin: 28px 0 0; font-style: italic;
    color: #444; font-size: 1.02rem; line-height: 1.7;
}

/* Highlights cards */
.pg-highlights { display: flex; flex-direction: column; gap: 16px; }
.pg-hl-card {
    display: flex; gap: 18px; align-items: flex-start;
    background: #fff; padding: 22px 24px; border-radius: 14px;
    border: 1px solid #e8ece9; transition: box-shadow 0.3s, transform 0.2s;
}
.pg-hl-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.05); transform: translateY(-2px); }
.pg-hl-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: #ecf5ec; color: #156E0F;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pg-hl-card h3 { font-size: 0.92rem; font-weight: 700; color: #0a111a; margin: 0 0 4px; }
.pg-hl-card p { font-size: 0.85rem; color: #666; line-height: 1.55; margin: 0; }

/* Team grid */
.pg-team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.pg-team-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; padding: 22px; border-radius: 12px;
    border: 1px solid #e8ece9; transition: box-shadow 0.3s;
}
.pg-team-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.pg-team-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: #ecf5ec; color: #156E0F;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pg-team-card strong { display: block; font-size: 0.95rem; color: #0a111a; margin-bottom: 2px; }
.pg-team-card span { font-size: 0.78rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }

/* CTA Section */
.pg-cta {
    background: linear-gradient(135deg, #0d7a1a 0%, #0a5e14 100%);
    padding: 72px 20px; text-align: center;
}
.pg-cta-inner { max-width: 600px; margin: 0 auto; }
.pg-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin: 0 0 14px; }
.pg-cta p { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.6; margin: 0 0 30px; }
.pg-cta-btn {
    display: inline-block; background: #fff; color: #0d7a1a;
    padding: 15px 38px; border-radius: 8px; font-weight: 700;
    font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px;
    text-decoration: none; transition: all 0.3s;
}
.pg-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* Responsive */
@media (max-width: 860px) {
    .pg-grid-2-1 { grid-template-columns: 1fr; gap: 40px; }
    .pg-hero { padding: 60px 20px 52px; }
    .pg-section { padding: 60px 20px; }
}

/* =============================================
   PAGE COMPONENTS
   ============================================= */

/* Link Cards Grid */
.pg-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin: 36px 0 0; }
.pg-link-card {
    display: flex; gap: 18px; align-items: flex-start;
    background: #f4f7f4; border: 1px solid #e0e5e0; border-radius: 14px;
    padding: 24px; text-decoration: none; color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pg-link-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: #c5dcc5; }
.pg-link-icon {
    width: 52px; height: 52px; border-radius: 14px; background: #dceddc;
    color: #156E0F; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pg-link-card h3 { font-size: 1rem; font-weight: 700; color: #0a111a; margin: 0 0 6px; }
.pg-link-card p { font-size: 0.88rem; color: #555; line-height: 1.55; margin: 0 0 10px; }
.pg-link-more { font-size: 0.78rem; font-weight: 600; color: #156E0F; }

/* Check List */
.pg-check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }
.pg-check-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 0.95rem; color: #444; line-height: 1.55;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.pg-check-list li::before {
    content: ''; width: 20px; height: 20px; flex-shrink: 0;
    background: #156E0F; border-radius: 50%; margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* Feature Blocks */
.pg-feature {
    background: #f4f7f4; border-left: 4px solid #156E0F;
    padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 0 0 14px;
}
.pg-feature h3 { font-size: 1rem; font-weight: 700; color: #0a111a; margin: 0 0 6px; }
.pg-feature p { font-size: 0.9rem; color: #555; line-height: 1.6; margin: 0; }

/* Info Cards */
.pg-card-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 24px 0; }
.pg-card-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.pg-card-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.pg-info-card {
    background: #f4f7f4; border: 1px solid #e0e5e0; border-radius: 14px;
    padding: 28px 24px; transition: box-shadow 0.3s, transform 0.2s;
}
.pg-info-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.05); transform: translateY(-2px); }
.pg-info-card h3 { font-size: 1.05rem; font-weight: 700; color: #0a111a; margin: 0 0 10px; }
.pg-info-card p { font-size: 0.9rem; color: #555; line-height: 1.6; margin: 0; }
.pg-info-card strong { display: block; font-size: 0.95rem; color: #0a111a; }
.pg-info-accent { border-left: 4px solid #156E0F; }
.pg-info-icon {
    width: 56px; height: 56px; border-radius: 16px; background: #dceddc;
    color: #156E0F; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}

/* Highlight Box */
.pg-highlight-box {
    background: #f4f7f4; border-left: 4px solid #156E0F;
    padding: 22px 26px; border-radius: 0 12px 12px 0; margin: 28px 0;
}
.pg-highlight-box p { font-size: 0.95rem; color: #444; line-height: 1.7; margin: 0; }
.pg-highlight-box a { color: #156E0F; font-weight: 600; text-decoration: underline; }

/* Note */
.pg-note { font-size: 0.85rem; color: #888; text-align: center; margin-top: 24px; }

/* Prose h2 spacing */
.pg-prose h2 { font-size: 1.5rem; font-weight: 800; color: #0a111a; margin: 36px 0 16px; }
.pg-prose h3 { font-size: 1.1rem; font-weight: 700; color: #0a111a; margin: 24px 0 10px; }

/* =============================================
   RTL — Arabic Support
   ============================================= */
html[dir="rtl"] body { direction: rtl; font-family: Inter, 'Segoe UI', Tahoma, sans-serif; }
html[dir="rtl"] .pro-brand-text, html[dir="rtl"] .pro-brand-title,
html[dir="rtl"] .pg-prose h2, html[dir="rtl"] .pg-prose p,
html[dir="rtl"] .pg-hero-title, html[dir="rtl"] .pg-hero-lead,
html[dir="rtl"] .pg-hl-card h3, html[dir="rtl"] .pg-hl-card p,
html[dir="rtl"] .pg-section-header h2, html[dir="rtl"] .pg-section-header p,
html[dir="rtl"] .pg-cta h2, html[dir="rtl"] .pg-cta p,
html[dir="rtl"] .pg-team-card strong, html[dir="rtl"] .pg-team-card span,
html[dir="rtl"] .pro-footer-desc, html[dir="rtl"] .pro-footer-bar p,
html[dir="rtl"] .pro-footer-services li, html[dir="rtl"] .pro-footer-contact li { text-align: right; }

html[dir="rtl"] .pg-quote { border-left: none; border-right: 3px solid #156E0F; padding: 14px 22px 14px 0; }
html[dir="rtl"] .pg-hl-card, html[dir="rtl"] .pg-team-card { flex-direction: row; }
html[dir="rtl"] .pro-nav { gap: 28px; }
html[dir="rtl"] .pro-mega-list a { text-align: right; }
html[dir="rtl"] .pro-footer-services li::before { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .pro-brand-link { flex-direction: row; }
html[dir="rtl"] .pg-feature { border-left: none; border-right: 4px solid #156E0F; border-radius: 10px 0 0 10px; }
html[dir="rtl"] .pg-highlight-box { border-left: none; border-right: 4px solid #156E0F; border-radius: 12px 0 0 12px; }
html[dir="rtl"] .pg-info-accent { border-left: none; border-right: 4px solid #156E0F; }
html[dir="rtl"] .pg-link-card h3, html[dir="rtl"] .pg-link-card p,
html[dir="rtl"] .pg-info-card h3, html[dir="rtl"] .pg-info-card p { text-align: right; }
html[dir="rtl"] .pg-check-list li { text-align: right; }

/* Single post RTL */
html[dir="rtl"] .sp-toc { border-left: none; border-right: 4px solid #156E0F; }
html[dir="rtl"] .sp-body blockquote { border-left: none; border-right: 4px solid #156E0F; border-radius: 10px 0 0 10px; }
html[dir="rtl"] .sp-body ul, html[dir="rtl"] .sp-body ol { padding-left: 0; padding-right: 24px; }
html[dir="rtl"] .sp-body th, html[dir="rtl"] .sp-body td { text-align: right; }
html[dir="rtl"] .sp-toc-card nav a { border-left: none; border-right: 2px solid transparent; }
html[dir="rtl"] .sp-toc-card nav a:hover { border-left: none; border-right-color: #156E0F; }



/* ============================================================
   PASARELA DE PAGO (Stripe Checkout)
   ============================================================ */
.em-pay-hero {
    padding: 40px 20px 0;
}
.em-pay-hero-wrap {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.em-pay-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #156E0F;
    background: rgba(21, 110, 15, 0.08);
    border: 1px solid rgba(21, 110, 15, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.em-pay-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #14301a;
    margin: 0 0 10px;
    line-height: 1.2;
}
.em-pay-sub {
    font-size: 1rem;
    color: #5b6b5b;
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.6;
}

.em-pay-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 680px;
    margin: 24px auto 0;
    padding: 16px 18px;
    background: #fdeeee;
    border: 1px solid #f3c7c7;
    border-radius: 12px;
    color: #b33535;
    font-size: 0.92rem;
    line-height: 1.6;
}
.em-pay-alert svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #d64545;
}
.em-pay-alert a {
    color: #b33535;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}
.em-pay-alert a:hover {
    color: #8f2727;
}
html[dir="rtl"] .em-pay-alert {
    text-align: right;
}
.em-pay-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 32px 20px 70px;
}

.em-pay-card {
    background: #fff;
    border: 1px solid #e6ece6;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(21, 110, 15, 0.08);
    padding: 30px;
}

/* --- Cabecera de la tarjeta --- */
.em-pay-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef3ee;
}
.em-pay-lock {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(21, 110, 15, 0.1);
    color: #156E0F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.em-pay-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #14301a;
    margin: 0;
    line-height: 1.3;
}
.em-pay-card-sub {
    font-size: 0.85rem;
    color: #718271;
    margin: 2px 0 0;
}

/* --- Grid de campos (responsive) --- */
.em-pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.em-pay-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.em-pay-field-full {
    grid-column: 1 / -1;
}
.em-pay-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2a3a2a;
    margin-bottom: 7px;
}
.em-pay-field input {
    width: 100%;
    padding: 13px 15px;
    font-size: 0.95rem;
    font-family: Inter, sans-serif;
    color: #14301a;
    background: #f8fbf8;
    border: 1.5px solid #dce6dc;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}
.em-pay-field input:hover {
    border-color: #b9cdb9;
}
.em-pay-field input:focus {
    outline: none;
    border-color: #156E0F;
    box-shadow: 0 0 0 4px rgba(21, 110, 15, 0.14);
    background: #fff;
}
.em-pay-field select,
.em-pay-field textarea {
    width: 100%;
    padding: 13px 15px;
    font-size: 0.95rem;
    font-family: Inter, sans-serif;
    color: #14301a;
    background: #f8fbf8;
    border: 1.5px solid #dce6dc;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}
/* Grupo de campos combinados (prefijo + input, select + input) */
.em-pay-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1.5px solid #dce6dc;
    border-radius: 10px;
    background: #f8fbf8;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    overflow: hidden;
}
.em-pay-input-group:hover {
    border-color: #b9cdb9;
}
.em-pay-input-group:focus-within {
    outline: none;
    border-color: #156E0F;
    box-shadow: 0 0 0 4px rgba(21, 110, 15, 0.14);
    background: #fff;
}
.em-pay-input-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #156E0F;
    background: #eaf3ea;
    border-right: 1.5px solid #dce6dc;
    flex-shrink: 0;
    user-select: none;
}
.em-pay-input-group .em-pay-input-addon + input,
.em-pay-input-group > input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    flex: 1;
    min-width: 0;
}
.em-pay-input-group > select {
    flex: 0 0 auto;
    max-width: 40%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    border-right: 1.5px solid #dce6dc !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23156E0F' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}
html[dir="rtl"] .em-pay-input-group > select {
    border-right: none !important;
    border-left: 1.5px solid #dce6dc !important;
    background-position: left 12px center;
    padding-left: 34px;
    padding-right: 15px;
}
html[dir="rtl"] .em-pay-input-addon {
    border-right: none;
    border-left: 1.5px solid #dce6dc;
}
.em-pay-field select:hover,
.em-pay-field textarea:hover {
    border-color: #b9cdb9;
}
.em-pay-field select:focus,
.em-pay-field textarea:focus {
    outline: none;
    border-color: #156E0F;
    box-shadow: 0 0 0 4px rgba(21, 110, 15, 0.14);
    background: #fff;
}
.em-pay-field textarea {
    resize: vertical;
    min-height: 70px;
}
.em-pay-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23156E0F' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* --- Importe --- */
.em-pay-stepper {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.em-pay-step-group {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}
.em-pay-amount {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}
.em-pay-currency {
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #156E0F;
    pointer-events: none;
    z-index: 1;
}
.em-pay-amount input {
    padding-left: 38px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}
.em-pay-amount input::-webkit-outer-spin-button,
.em-pay-amount input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.em-pay-amount input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.em-pay-step {
    flex: 0 0 auto;
    min-width: 56px;
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: Inter, sans-serif;
    color: #156E0F;
    background: #f2f8f2;
    border: 1.5px solid #cfe0cf;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.em-pay-step:hover {
    background: #e3efe3;
    border-color: #156E0F;
    color: #0f5710;
}
.em-pay-step:active {
    transform: scale(0.97);
}
.em-pay-hint {
    font-size: 0.75rem;
    color: #8a998a;
    margin: 6px 0 0;
}

/* --- Confianza y botón --- */
.em-pay-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 14px;
    padding: 14px 16px;
    background: #f6faf6;
    border: 1px solid #e4eee4;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #3d4d3d;
}
.em-pay-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #156E0F;
    flex-shrink: 0;
    cursor: pointer;
}
.em-pay-consent a {
    color: #156E0F;
    font-weight: 600;
    text-decoration: underline;
}
.em-pay-consent a:hover {
    color: #0d5e13;
}
.em-pay-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 18px;
    padding: 12px 14px;
    background: #f6faf6;
    border: 1px solid #e4eee4;
    border-radius: 10px;
    color: #5b6b5b;
    font-size: 0.8rem;
    line-height: 1.5;
}
.em-pay-trust svg {
    flex: 0 0 auto;
    color: #156E0F;
}
.em-pay-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #156E0F;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 22px;
    font-size: 1rem;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(21, 110, 15, 0.25);
}
.em-pay-btn:hover {
    background: #1a8513;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(21, 110, 15, 0.3);
}
.em-pay-btn:active {
    transform: translateY(0);
}

/* --- Avisos --- */
.em-pay-error,
.em-pay-demo-banner {
    max-width: 620px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}
.em-pay-error {
    background: #fdeeee;
    border: 1px solid #f0b9b9;
    color: #8a1f1f;
}
.em-pay-demo-banner {
    background: #fff8e8;
    border: 1px solid #f2ddab;
    color: #7a5c12;
}
.em-pay-demo-banner svg {
    flex: 0 0 auto;
}

/* --- Resultado --- */
.em-pay-result {
    text-align: center;
    padding: 44px 30px;
}
.em-pay-ico {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.em-pay-ico-ok {
    background: rgba(21, 110, 15, 0.12);
    color: #156E0F;
}
.em-pay-ico-warn {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}
.em-pay-result .em-pay-card-title {
    font-size: 1.5rem;
}
.em-pay-card-text {
    color: #5b6b5b;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 12px auto 0;
}
.em-pay-demo-note {
    font-size: 0.8rem;
    color: #8a6d1f;
    margin: 14px auto 0;
    max-width: 480px;
}
.em-pay-result-actions {
    margin-top: 26px;
}

/* --- Responsive --- */
@media (max-width: 560px) {
    .em-pay-hero {
        padding-top: 28px;
    }
    .em-pay-wrap {
        padding: 22px 16px 50px;
    }
    .em-pay-card {
        padding: 22px 18px;
        border-radius: 14px;
    }
    .em-pay-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .em-pay-field-full {
        grid-column: auto;
    }
}

html[dir="rtl"] .em-pay-card,
html[dir="rtl"] .em-pay-error,
html[dir="rtl"] .em-pay-demo-banner {
    text-align: right;
}
html[dir="rtl"] .em-pay-currency {
    left: auto;
    right: 15px;
}
html[dir="rtl"] .em-pay-amount input {
    padding-left: 15px;
    padding-right: 38px;
}
html[dir="rtl"] .em-pay-step-group {
    flex-direction: row;
}
html[dir="rtl"] .em-pay-stepper {
    flex-direction: row-reverse;
}

/* =============================================
   WPForms — diseño personalizado (consulta ES/AR)
   ============================================= */
.pg-wpforms .wpforms-container,
.pg-wpforms form.wpforms-form {
    max-width: 900px;
    margin: 0 auto;
}
.pg-wpforms .wpforms-container-full .wpforms-form {
    background: #fff;
    border: 1px solid #e2e8e2;
    border-radius: 18px;
    padding: 34px 38px;
    box-shadow: 0 6px 24px rgba(10, 20, 40, 0.06);
}
/* Campos */
.pg-wpforms .wpforms-field {
    margin-bottom: 22px;
}
.pg-wpforms .wpforms-field-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0a111a;
    margin-bottom: 8px;
    display: block;
}
.pg-wpforms .wpforms-required-label {
    color: #d64545;
    font-weight: 700;
}
.pg-wpforms input[type="text"],
.pg-wpforms input[type="email"],
.pg-wpforms input[type="tel"],
.pg-wpforms input[type="url"],
.pg-wpforms input[type="number"],
.pg-wpforms input[type="date"],
.pg-wpforms select,
.pg-wpforms textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    color: #1a2333;
    background: #f7faf7;
    border: 1.5px solid #d8e0d8;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}
.pg-wpforms input:focus,
.pg-wpforms select:focus,
.pg-wpforms textarea:focus {
    outline: none;
    border-color: #156E0F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 110, 15, 0.12);
}
.pg-wpforms textarea {
    min-height: 120px;
    resize: vertical;
}
.pg-wpforms select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23156E0F' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 38px;
}
html[dir="rtl"] .pg-wpforms select {
    background-position: right 14px center;
    padding-left: 16px;
    padding-right: 38px;
}
.pg-wpforms .wpforms-field-row-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pg-wpforms .wpforms-field-sublabel {
    font-size: 0.78rem;
    color: #7a8794;
}
/* Selector de tipo de consulta (payment-multiple con iconos) */
.pg-wpforms .wpforms-field-payment-multiple ul.wpforms-field-required,
.pg-wpforms .wpforms-field-payment-multiple ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 10px;
}
.pg-wpforms .wpforms-field-payment-multiple.wpforms-list-2-columns ul {
    grid-template-columns: repeat(2, 1fr);
}
.pg-wpforms .wpforms-icon-choices-item .wpforms-field-label-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f7faf7;
    border: 1.5px solid #e0e7e0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a2333;
}
.pg-wpforms .wpforms-icon-choices-item .wpforms-field-label-inline:hover {
    border-color: #b9d4b9;
    background: #f0f7f0;
}
.pg-wpforms .wpforms-icon-choices-item input:checked + .wpforms-field-label-inline {
    border-color: #156E0F;
    background: #e9f4e9;
    box-shadow: 0 0 0 3px rgba(21, 110, 15, 0.12);
}
.pg-wpforms .wpforms-icon-choices-item input[type="radio"],
.pg-wpforms .wpforms-icon-choices-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #156E0F;
    flex-shrink: 0;
}
/* Total del pago */
.pg-wpforms .wpforms-payment-total {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 18px;
    background: #ecf5ec;
    border: 1px solid #cfe3cf;
    border-radius: 10px;
    font-weight: 800;
    color: #0d5e13;
    font-size: 1.05rem;
}
/* Botón enviar */
.pg-wpforms .wpforms-submit-container {
    margin-top: 26px;
    text-align: center;
}
.pg-wpforms button.wpforms-submit {
    display: inline-block;
    padding: 16px 46px;
    background: #0d7a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.pg-wpforms button.wpforms-submit:hover {
    background: #0a5e14;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(13, 122, 26, 0.28);
}
/* Errores y notas */
.pg-wpforms .wpforms-error {
    color: #d64545;
    font-size: 0.82rem;
    margin-top: 4px;
}
.pg-wpforms .wpforms-error-container {
    background: #fdeeee;
    border: 1px solid #f3c7c7;
    border-radius: 10px;
    padding: 12px 16px;
    color: #b33535;
    font-size: 0.9rem;
    margin-bottom: 18px;
}
/* Confirmación */
.pg-wpforms .wpforms-confirmation-container-full,
.pg-wpforms div[role="alert"].wpforms-confirmation-container-full {
    background: #e9f4e9;
    border: 1px solid #cfe3cf;
    border-radius: 12px;
    padding: 20px 24px;
    color: #0d5e13;
    font-size: 0.98rem;
}
/* Responsive */
@media (max-width: 600px) {
    .pg-wpforms .wpforms-container-full .wpforms-form {
        padding: 24px 20px;
    }
    .pg-wpforms .wpforms-field-row {
        flex-direction: column;
    }
    .pg-wpforms .wpforms-field-payment-multiple.wpforms-list-2-columns ul {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Popup de aviso (aparece a los 20s de sesión)
   ============================================= */
.em-popup {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    max-width: 340px;
    background: #fff;
    border: 1px solid #f3d9a4;
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    box-shadow: 0 14px 44px rgba(120, 80, 10, 0.16);
    padding: 18px 20px 16px 20px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    opacity: 0;
    transform: translateY(16px);
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.em-popup.em-popup-show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.em-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: #8a978a;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.em-popup-close:hover {
    color: #111;
    background: #f0f5f0;
}
.em-popup-ico {
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.em-popup-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0a111a;
    margin: 0 0 6px;
    padding-right: 20px;
}
.em-popup-text {
    font-size: 0.88rem;
    color: #4a5a4a;
    line-height: 1.55;
    margin: 0 0 12px;
}
.em-popup-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #d97706;
    text-decoration: underline;
}
.em-popup-link:hover {
    color: #b45309;
}
html[dir="rtl"] .em-popup {
    right: auto;
    left: 24px;
    border-left: 1px solid #f3d9a4;
    border-right: 4px solid #f59e0b;
}
html[dir="rtl"] .em-popup-close {
    right: auto;
    left: 12px;
}
html[dir="rtl"] .em-popup-title {
    padding-right: 0;
    padding-left: 20px;
}
