/*
Theme Name: Kadence Child Top Abogados
Template: kadence
Author: Top Abogados
Version: 1.0.0
*/

/* ==========================================================
   TOP ABOGADOS · STYLE.CSS LIMPIO
   Kadence Child / Tevolution / Gravity Forms / Ultimate Member
   ========================================================== */

:root {
    --ta-navy: #071728;
    --ta-navy-dark: #050b14;
    --ta-navy-2: #102b45;
    --ta-gold: #C99A52;
    --ta-gold-light: #E6C179;
    --ta-ivory: #F7F2EA;
    --ta-cream: #FFF9F0;
    --ta-white: #ffffff;
    --ta-text: #102033;
    --ta-text-strong: #071728;
    --ta-muted: #647083;
    --ta-border: rgba(7, 23, 40, .12);
    --ta-border-gold: rgba(201, 154, 82, .24);
    --ta-shadow-sm: 0 14px 36px rgba(7, 23, 40, .08);
    --ta-shadow-md: 0 22px 70px rgba(7, 23, 40, .10);
    --ta-shadow-lg: 0 34px 110px rgba(5, 11, 20, .18);
    --ta-radius-sm: 14px;
    --ta-radius-md: 20px;
    --ta-radius-lg: 28px;
    --ta-radius-xl: 34px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ta-text);
    background:
        radial-gradient(circle at 10% 0%, rgba(201, 154, 82, .12), transparent 34%),
        radial-gradient(circle at 90% 8%, rgba(7, 23, 40, .10), transparent 30%),
        linear-gradient(180deg, var(--ta-cream) 0%, var(--ta-ivory) 42%, #ffffff 100%);
}

body,
button,
input,
select,
textarea {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

::selection {
    background: var(--ta-gold);
    color: var(--ta-navy-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================
   FIXES GENERALES
   ========================================================== */

.um:not(.um-admin) {
    opacity: 1 !important;
}

.um,
.um-profile,
.um-profile-header,
.um-profile-body,
.um-profile-meta,
.um-profile-photo,
.um-profile-edit,
.um-profile-navbar {
    overflow: visible !important;
}

.um-profile .um-profile-edit {
    position: relative !important;
    z-index: 99999 !important;
}

.um-profile .um-dropdown,
.um-profile .um-dropdown-b {
    z-index: 999999 !important;
}

/* Ocultar enlaces automáticos de Tevolution en el menú */
#masthead li.tmpl-login,
#masthead li.tmpl-login.user-link {
    display: none !important;
}

/* ==========================================================
   HEADER KADENCE
   ========================================================== */

#masthead {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#masthead .site-header-wrap {
    background: rgba(255, 249, 240, .82);
    border-bottom: 1px solid rgba(201, 154, 82, .18);
}

#masthead .main-navigation a {
    font-weight: 750;
    letter-spacing: -.02em;
}

#masthead .main-navigation a:hover {
    color: var(--ta-gold);
}

/* ==========================================================
   BOTONES GLOBALES
   ========================================================== */

.ta-btn,
.ta-aww-btn,
.ta-result-btn,
.ta-map-link,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: -.02em;
    text-decoration: none !important;
    transition: transform .24s ease, box-shadow .24s ease, background .24s ease, color .24s ease, border-color .24s ease;
}

.ta-btn:hover,
.ta-aww-btn:hover,
.ta-result-btn:hover,
.ta-map-link:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
}

.ta-btn-primary,
.ta-aww-btn-primary,
.ta-result-btn-primary,
.wp-block-button__link {
    background: linear-gradient(135deg, var(--ta-gold), var(--ta-gold-light)) !important;
    color: var(--ta-navy-dark) !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    box-shadow: 0 16px 38px rgba(201, 154, 82, .28);
}

.ta-btn-secondary,
.ta-result-btn-secondary {
    background: var(--ta-navy) !important;
    color: #fff !important;
    border: 1px solid rgba(7, 23, 40, .16) !important;
}

.ta-btn-outline,
.ta-aww-btn-secondary {
    background: rgba(7, 23, 40, .04) !important;
    color: var(--ta-navy) !important;
    border: 1px solid rgba(7, 23, 40, .14) !important;
}

.ta-btn-primary,
.ta-btn-secondary,
.ta-btn-outline {
    display: flex;
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

/* ==========================================================
   HOME · QUITAR HEADER AUTOMÁTICO
   ========================================================== */

body.home .entry-hero,
body.home .entry-header,
body.home .page-header,
body.home .entry-title {
    display: none !important;
}

body.home .entry-content-wrap,
body.home .content-wrap,
body.home .site-main,
body.home .entry-content,
body.home #primary,
body.home .content-area {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================
   HOME V2 · HERO INMERSIVO
   Requiere shortcode [ta_home_awwwards]
   ========================================================== */

.ta-aww-home-v2 {
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(201,154,82,.10), transparent 28%),
        linear-gradient(180deg, var(--ta-cream) 0%, var(--ta-ivory) 42%, #ffffff 100%);
    color: var(--ta-text);
}

.ta-aww-home-v2 * {
    box-sizing: border-box;
}

.ta-home-hero-v2 {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: clamp(90px, 10vw, 150px) clamp(22px, 7vw, 110px);
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(5,11,20,.92) 0%, rgba(7,23,40,.82) 46%, rgba(7,23,40,.42) 100%),
        var(--ta-hero-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.ta-home-hero-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 76px 76px;
    opacity: .22;
    mask-image: radial-gradient(circle at center, black, transparent 76%);
    pointer-events: none;
}

.ta-home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
}

.ta-aww-kicker,
.ta-search-kicker,
.ta-specialties-kicker,
.ta-results-kicker,
.ta-lawyer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 0 22px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(230,193,121,.30);
    color: var(--ta-gold-light) !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ta-aww-kicker::before,
.ta-search-kicker::before,
.ta-specialties-kicker::before,
.ta-results-kicker::before,
.ta-lawyer-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ta-gold-light);
    box-shadow: 0 0 0 7px rgba(230,193,121,.13);
}

.ta-home-title-v2 {
    margin: 0;
    max-width: 1120px;
    color: #fff;
    font-size: clamp(58px, 9vw, 148px);
    line-height: .82;
    letter-spacing: -.09em;
    font-weight: 950;
}

.ta-home-title-v2 span {
    display: block;
}

.ta-home-lead-v2 {
    max-width: 760px;
    margin: 34px 0 0;
    color: rgba(255,255,255,.76);
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.62;
}

.ta-home-actions-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.ta-home-hero-v2 .ta-aww-btn-secondary,
.ta-home-final-v2 .ta-aww-btn-secondary {
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.20) !important;
}

/* ==========================================================
   HOME · BUSCADOR RECTO
   ========================================================== */

.ta-home-search-band {
    position: relative;
    z-index: 4;
    max-width: 1380px;
    margin: -72px auto 0;
    padding: clamp(28px, 4vw, 48px);
    display: grid;
    grid-template-columns: .42fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: end;
    background: rgba(255,249,240,.92);
    border: 1px solid var(--ta-border-gold);
    box-shadow: 0 30px 90px rgba(7,23,40,.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ta-home-search-intro h2 {
    margin: 0;
    color: var(--ta-navy-dark);
    font-size: clamp(34px, 4vw, 62px);
    line-height: .94;
    letter-spacing: -.07em;
    font-weight: 950;
}

.ta-home-search-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.ta-home-search-v2 label {
    display: grid;
    gap: 8px;
    color: var(--ta-navy-dark);
    font-size: 13px;
    font-weight: 950;
}

.ta-home-search-v2 input,
.ta-home-search-v2 select,
.ta-lawyer-search input,
.ta-lawyer-search select,
.ta-search-form input,
.ta-search-form select,
.ta-results-search-box input,
.ta-results-search-box select {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(7,23,40,.14);
    border-radius: 999px;
    padding: 12px 18px;
    background: #fff;
    color: var(--ta-navy-dark);
    outline: none;
    transition: border-color .22s ease, box-shadow .22s ease;
}

.ta-home-search-v2 input:focus,
.ta-home-search-v2 select:focus,
.ta-lawyer-search input:focus,
.ta-lawyer-search select:focus,
.ta-search-form input:focus,
.ta-search-form select:focus,
.ta-results-search-box input:focus,
.ta-results-search-box select:focus {
    border-color: rgba(201,154,82,.72);
    box-shadow: 0 0 0 5px rgba(201,154,82,.13);
}

.ta-home-search-v2 button,
.ta-lawyer-search button,
.ta-search-form button,
.ta-results-search-box button {
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ta-gold), var(--ta-gold-light));
    color: var(--ta-navy-dark);
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 16px 38px rgba(201,154,82,.24);
}

/* ==========================================================
   HOME · BLOQUE EDITORIAL
   ========================================================== */

.ta-home-editorial-v2 {
    max-width: 1380px;
    margin: 0 auto;
    padding: clamp(90px, 10vw, 160px) clamp(22px, 5vw, 72px);
    display: grid;
    grid-template-columns: 1.1fr .75fr;
    gap: clamp(36px, 7vw, 100px);
    align-items: end;
}

.ta-home-editorial-copy h2,
.ta-home-section-head-v2 h2,
.ta-home-story-sticky h2,
.ta-home-final-content h2 {
    margin: 0;
    color: var(--ta-navy-dark);
    font-size: clamp(46px, 7vw, 112px);
    line-height: .88;
    letter-spacing: -.08em;
    font-weight: 950;
}

.ta-home-editorial-text p,
.ta-home-section-head-v2 p {
    margin: 0;
    color: var(--ta-muted);
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.7;
}

/* ==========================================================
   HOME · ESPECIALIDADES EN TARJETAS CON IMAGEN
   ========================================================== */

.ta-home-specialties-v2 {
    padding: clamp(80px, 8vw, 130px) clamp(20px, 5vw, 72px);
    background:
        radial-gradient(circle at 8% 0%, rgba(201,154,82,.10), transparent 28%),
        linear-gradient(180deg, var(--ta-cream) 0%, #ffffff 100%);
}

.ta-home-section-head-v2 {
    max-width: 1380px;
    margin: 0 auto 46px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: end;
}

.ta-home-specialty-grid-v2 {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ta-home-specialty-card-v2 {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    overflow: hidden;
    border-radius: var(--ta-radius-lg);
    color: #fff !important;
    text-decoration: none !important;
    background-color: var(--ta-navy);
    background-image:
        linear-gradient(180deg, rgba(5,11,20,.05) 0%, rgba(5,11,20,.42) 42%, rgba(5,11,20,.90) 100%),
        var(--ta-card-img);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(201,154,82,.20);
    box-shadow: 0 24px 70px rgba(7,23,40,.14);
    transition: transform .32s ease, box-shadow .32s ease, filter .32s ease, border-color .32s ease;
}

.ta-home-specialty-card-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(201,154,82,.25), transparent 26%),
        linear-gradient(135deg, rgba(7,23,40,.68), rgba(5,11,20,.35));
    opacity: .72;
    transition: opacity .32s ease;
    pointer-events: none;
}

.ta-home-specialty-card-v2::after {
    content: "→";
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    color: var(--ta-gold-light);
    font-size: 20px;
    font-weight: 900;
    transition: transform .32s ease, background .32s ease, color .32s ease;
}

.ta-home-specialty-card-v2 > * {
    position: relative;
    z-index: 2;
}

.ta-home-specialty-card-v2:hover {
    transform: translateY(-8px);
    border-color: rgba(201,154,82,.45);
    box-shadow: 0 34px 95px rgba(7,23,40,.20);
    filter: saturate(1.05) contrast(1.04);
}

.ta-home-specialty-card-v2:hover::before {
    opacity: .50;
}

.ta-home-specialty-card-v2:hover::after {
    transform: translateX(4px);
    background: var(--ta-gold);
    color: var(--ta-navy-dark);
}

.ta-home-specialty-count {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    color: var(--ta-gold-light);
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.ta-home-specialty-card-v2 h3 {
    max-width: calc(100% - 54px);
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3.2vw, 52px);
    line-height: .92;
    letter-spacing: -.065em;
    font-weight: 950;
}

.ta-home-specialty-card-v2 p {
    max-width: 92%;
    margin: 18px 0 24px;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.58;
}

.ta-home-specialty-card-v2 strong {
    color: var(--ta-gold-light);
    font-size: 14px;
    font-weight: 950;
}

.ta-home-specialty-more,
.ta-home-blog-more {
    max-width: 1380px;
    margin: 34px auto 0;
}

/* ==========================================================
   HOME · STORY SIN CARDS EXCESIVAS
   ========================================================== */

.ta-home-story-v2 {
    max-width: 1380px;
    margin: 0 auto;
    padding: clamp(90px, 10vw, 160px) clamp(22px, 5vw, 72px);
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: clamp(36px, 7vw, 100px);
}

.ta-home-story-sticky {
    position: sticky;
    top: 120px;
    align-self: start;
}

.ta-home-story-steps {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(7,23,40,.14);
}

.ta-home-story-step {
    padding: clamp(34px, 5vw, 68px) 0;
    border-bottom: 1px solid rgba(7,23,40,.14);
}

.ta-home-story-step span {
    display: block;
    margin-bottom: 18px;
    color: var(--ta-gold);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

.ta-home-story-step h3 {
    margin: 0;
    color: var(--ta-navy-dark);
    font-size: clamp(42px, 5vw, 82px);
    line-height: .86;
    letter-spacing: -.08em;
    font-weight: 950;
}

.ta-home-story-step p {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--ta-muted);
    font-size: 18px;
    line-height: 1.7;
}

/* ==========================================================
   HOME · BLOG EN TARJETAS CLÁSICAS
   ========================================================== */

.ta-home-blog-v2 {
    padding: clamp(80px, 8vw, 130px) clamp(20px, 5vw, 72px);
    background: var(--ta-ivory);
}

.ta-home-blog-grid-v2 {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.ta-home-blog-card-v2 {
    overflow: hidden;
    border-radius: var(--ta-radius-lg);
    background: #fff;
    border: 1px solid rgba(201,154,82,.20);
    box-shadow: 0 24px 70px rgba(7,23,40,.10);
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.ta-home-blog-card-v2:hover {
    transform: translateY(-8px);
    border-color: rgba(201,154,82,.46);
    box-shadow: 0 34px 95px rgba(7,23,40,.16);
}

.ta-home-blog-img {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    background-color: var(--ta-navy);
    background-image:
        linear-gradient(180deg, rgba(5,11,20,.05), rgba(5,11,20,.38)),
        var(--ta-blog-img);
    background-size: cover;
    background-position: center;
    text-decoration: none !important;
    transition: filter .32s ease;
}

.ta-home-blog-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(201,154,82,.22), transparent 26%),
        linear-gradient(135deg, rgba(7,23,40,.20), rgba(5,11,20,.10));
    opacity: .55;
    pointer-events: none;
}

.ta-home-blog-card-v2:hover .ta-home-blog-img {
    filter: saturate(1.08) contrast(1.05);
}

.ta-home-blog-img span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 2;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.ta-home-blog-content {
    padding: 26px 26px 30px;
}

.ta-home-blog-content time {
    display: block;
    margin-bottom: 14px;
    color: #8a6430;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.ta-home-blog-content h3 {
    margin: 0;
    color: var(--ta-navy);
    font-size: clamp(24px, 2.35vw, 36px);
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 950;
}

.ta-home-blog-content h3 a {
    color: inherit;
    text-decoration: none !important;
}

.ta-home-blog-content h3 a:hover {
    color: var(--ta-gold);
}

.ta-home-blog-content p {
    margin: 18px 0 0;
    color: var(--ta-muted);
    font-size: 16px;
    line-height: 1.65;
}

/* ==========================================================
   HOME · CTA FINAL FULL WIDTH
   ========================================================== */

.ta-home-final-v2 {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: clamp(90px, 10vw, 160px) clamp(22px, 7vw, 110px);
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(5,11,20,.92), rgba(7,23,40,.72), rgba(7,23,40,.48)),
        var(--ta-hero-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.ta-home-final-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}

.ta-home-final-content h2 {
    color: #fff;
}

.ta-home-final-content .ta-aww-btn {
    margin-top: 34px;
}

/* ==========================================================
   PÁGINAS INTERNAS · HERO FULL WIDTH
   ========================================================== */

body.page:not(.home) {
    background:
        radial-gradient(circle at 10% 0%, rgba(201, 154, 82, .12), transparent 30%),
        linear-gradient(180deg, var(--ta-cream) 0%, var(--ta-ivory) 44%, #ffffff 100%);
}

body.page:not(.home) .entry-hero,
body.page:not(.home) .entry-hero-container-inner {
    position: relative;
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    min-height: clamp(360px, 52vh, 560px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0 !important;
    background-image:
        linear-gradient(90deg, rgba(5,11,20,.90), rgba(7,23,40,.72), rgba(7,23,40,.44)),
        url('/wp-content/themes/kadence-child/assets/img/page-hero-default.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #fff;
}

body.page:not(.home) .entry-hero-container-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 76px 76px;
    opacity: .20;
    mask-image: radial-gradient(circle at center, black, transparent 76%);
    pointer-events: none;
}

body.page:not(.home) .entry-header {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(80px, 9vw, 140px) clamp(22px, 6vw, 90px);
    text-align: left !important;
}

body.page:not(.home) .entry-header::before {
    content: "Top Abogados España";
    display: inline-flex;
    width: fit-content;
    margin-bottom: 24px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(230,193,121,.30);
    color: var(--ta-gold-light);
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}

body.page:not(.home) .entry-title {
    max-width: 1120px;
    margin: 0;
    color: #fff !important;
    font-size: clamp(52px, 8vw, 126px);
    line-height: .84;
    letter-spacing: -.085em;
    font-weight: 950;
}

body.page:not(.home) .entry-content-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(54px, 7vw, 96px) clamp(22px, 5vw, 72px);
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.page:not(.home) .entry-content {
    color: var(--ta-text);
    font-size: 18px;
    line-height: 1.75;
}

body.page:not(.home) .entry-content > p:first-child {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #172638;
    font-size: clamp(19px, 1.6vw, 24px);
    line-height: 1.65;
}

body.page:not(.home) .entry-content h2 {
    margin-top: 44px;
    margin-bottom: 18px;
    color: var(--ta-navy);
    font-size: clamp(34px, 4vw, 64px);
    line-height: .95;
    letter-spacing: -.065em;
    font-weight: 950;
}

body.page:not(.home) .entry-content h3 {
    margin-top: 34px;
    margin-bottom: 14px;
    color: var(--ta-navy);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 950;
}

body.page:not(.home) .entry-content a {
    color: var(--ta-navy);
    font-weight: 850;
    text-decoration-color: rgba(201,154,82,.65);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

body.page:not(.home) .entry-content a:hover {
    color: var(--ta-gold);
}

body.page:not(.home) .entry-content img {
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(7,23,40,.12);
}

/* Excepciones para páginas con shortcodes propios */
body.page:not(.home) .entry-content-wrap:has(.ta-specialties-index),
body.page:not(.home) .entry-content-wrap:has(.ta-search-page),
body.page:not(.home) .entry-content-wrap:has(.ta-aww-home-v2) {
    max-width: none;
    padding: 0;
}

/* ==========================================================
   PÁGINA ÍNDICE DE ESPECIALIDADES
   ========================================================== */

.ta-specialties-index {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px;
}

.ta-specialties-intro {
    max-width: 760px;
    margin-bottom: 32px;
}

.ta-specialties-intro h2 {
    color: var(--ta-navy);
    font-size: clamp(30px, 4vw, 46px);
    margin: 0 0 14px;
}

.ta-specialties-intro p {
    color: #3D4A57;
    font-size: 17px;
    line-height: 1.7;
}

.entry-content .ta-specialties-grid,
.ta-specialties-grid,
.site .ta-specialties-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 28px;
}

.entry-content .ta-specialty-card,
.ta-specialty-card,
.site .ta-specialty-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    padding: 22px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--ta-border-gold);
    box-shadow: var(--ta-shadow-sm);
    text-decoration: none !important;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.entry-content .ta-specialty-card:hover,
.ta-specialty-card:hover,
.site .ta-specialty-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 154, 82, .45);
    box-shadow: 0 20px 52px rgba(7, 23, 40, .12);
}

.ta-specialty-name {
    display: block;
    color: var(--ta-navy);
    font-size: 19px;
    line-height: 1.18;
    letter-spacing: -.035em;
    font-weight: 950;
}

.ta-specialty-count {
    display: inline-flex;
    width: fit-content;
    margin-top: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(201, 154, 82, .12);
    color: #8a6430;
    font-size: 13px;
    font-weight: 850;
}

/* ==========================================================
   BUSCADOR DE ABOGADOS
   ========================================================== */

.ta-lawyer-search,
.ta-search-form,
.ta-results-search-box {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 16px;
    align-items: end;
    padding: 24px;
    border-radius: var(--ta-radius-lg);
    background: rgba(255,255,255,.82);
    border: 1px solid var(--ta-border-gold);
    box-shadow: var(--ta-shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ta-lawyer-search label,
.ta-search-form label,
.ta-results-search-box label {
    display: block;
    margin-bottom: 8px;
    color: var(--ta-navy);
    font-size: 14px;
    font-weight: 900;
}

/* ==========================================================
   RESULTADOS BUSCADOR LISTINGS
   ========================================================== */

.ta-search-results-page {
    background: var(--ta-ivory);
}

.ta-results-hero,
.ta-results-header,
.ta-search-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(226, 191, 122, .24), transparent 28%),
        linear-gradient(135deg, var(--ta-navy-dark) 0%, var(--ta-navy) 48%, var(--ta-navy-2) 100%);
    color: #fff;
    padding: clamp(64px, 7vw, 110px) 20px;
}

.ta-results-hero-inner,
.ta-results-inner,
.ta-search-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.ta-results-hero h1,
.ta-results-header h1,
.ta-search-hero h1 {
    max-width: 980px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(38px, 6vw, 82px);
    line-height: .92;
    letter-spacing: -.07em;
    font-weight: 950;
}

.ta-results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ta-results-summary span {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}

.ta-results-wrap {
    padding: 56px 20px;
}

.ta-results-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}

.ta-results-top h2 {
    margin: 0;
    color: var(--ta-navy);
}

.ta-results-back {
    color: var(--ta-gold);
    font-weight: 900;
    text-decoration: none;
}

.ta-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ta-result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--ta-radius-lg);
    background: #fff;
    border: 1px solid rgba(201,154,82,.20);
    box-shadow: var(--ta-shadow-md);
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.ta-result-card:hover {
    transform: translateY(-7px);
    border-color: rgba(201,154,82,.44);
    box-shadow: 0 34px 92px rgba(7,23,40,.14);
}

.ta-result-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: #e8eef5;
    text-decoration: none;
    overflow: hidden;
}

.ta-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.94) contrast(1.04);
    transition: transform .45s ease, filter .45s ease;
}

.ta-result-card:hover .ta-result-image img {
    transform: scale(1.04);
    filter: saturate(1.04) contrast(1.08);
}

.ta-result-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta-result-image-placeholder span {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: var(--ta-gold);
    color: var(--ta-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 950;
}

.ta-result-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ta-result-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.ta-result-specialties span,
.ta-result-specialties a,
.ta-lawyer-specialties a,
.ta-lawyer-sidebar-specialties a {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(201,154,82,.12);
    color: #76542b !important;
    border: 1px solid rgba(201,154,82,.22);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none !important;
    transition: transform .22s ease, background .22s ease, color .22s ease;
}

.ta-result-specialties a:hover,
.ta-lawyer-specialties a:hover,
.ta-lawyer-sidebar-specialties a:hover {
    transform: translateY(-2px);
    background: var(--ta-navy);
    color: var(--ta-gold-light) !important;
}

.ta-result-content h2,
.ta-result-title {
    margin: 0 0 12px;
    color: var(--ta-navy);
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 950;
}

.ta-result-content h2 a {
    color: inherit;
    text-decoration: none;
}

.ta-result-content h2 a:hover {
    color: var(--ta-gold);
}

.ta-result-rating,
.ta-result-address,
.ta-result-phone {
    color: var(--ta-muted);
    font-size: 14px;
    margin: 0 0 10px;
}

.ta-result-phone strong {
    color: var(--ta-navy);
    font-weight: 850;
}

.ta-result-phone a {
    color: var(--ta-gold);
    font-weight: 850;
    text-decoration: none;
}

.ta-result-excerpt {
    color: var(--ta-text);
    line-height: 1.6;
    margin-bottom: 18px;
}

.ta-result-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.ta-results-pagination {
    margin-top: 36px;
}

.ta-no-results {
    background: #fff;
    border-radius: var(--ta-radius-lg);
    padding: 36px;
    box-shadow: var(--ta-shadow-sm);
}

/* ==========================================================
   MAPA RESULTADOS
   ========================================================== */

.ta-results-map-card {
    overflow: hidden;
    border-radius: var(--ta-radius-xl);
    margin-bottom: 34px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--ta-border-gold);
    box-shadow: var(--ta-shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ta-results-map-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    padding: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(201,154,82,.16), transparent 28%),
        linear-gradient(135deg, var(--ta-navy), var(--ta-navy-2));
    color: #fff;
}

.ta-results-map-head h2,
.ta-results-map-head h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.04em;
}

.ta-results-map-head span {
    background: rgba(255,255,255,.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.ta-results-map-kicker {
    color: var(--ta-gold-light);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 6px;
}

.ta-results-map {
    width: 100%;
    min-height: 440px;
    overflow: hidden;
    background: #e8eef5;
}

.ta-map-popup strong {
    display: block;
    color: var(--ta-navy);
    font-size: 15px;
    margin-bottom: 6px;
}

.ta-map-popup p {
    margin: 0 0 7px;
    color: #3D4A57;
    font-size: 13px;
    line-height: 1.4;
}

.ta-map-popup a {
    display: inline-block;
    background: var(--ta-gold);
    color: var(--ta-navy-dark) !important;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

/* ==========================================================
   FICHA INDIVIDUAL DE ABOGADO
   ========================================================== */

.ta-single-listing {
    background: var(--ta-ivory);
}

.ta-lawyer-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(226, 191, 122, .24), transparent 28%),
        linear-gradient(135deg, var(--ta-navy-dark), var(--ta-navy) 48%, var(--ta-navy-2));
    color: #fff;
    padding: clamp(64px, 7vw, 110px) 20px;
}

.ta-lawyer-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(226, 191, 122, .24);
    border-radius: 50%;
    pointer-events: none;
}

.ta-lawyer-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}

.ta-lawyer-main-info h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(44px, 7vw, 96px);
    line-height: .86;
    letter-spacing: -.08em;
    font-weight: 950;
}

.ta-lawyer-specialties,
.ta-lawyer-sidebar-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ta-lawyer-more-specialties,
.ta-lawyer-meta-row span {
    display: inline-flex;
    background: rgba(201, 154, 82, .16);
    color: var(--ta-gold-light);
    border: 1px solid rgba(201, 154, 82, .40);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
}

.ta-lawyer-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.ta-lawyer-contact-box {
    min-width: 240px;
    padding: 24px;
    border-radius: var(--ta-radius-md);
    background: #fff;
    color: var(--ta-navy);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}

.ta-lawyer-contact-box span {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.ta-lawyer-contact-box a {
    color: var(--ta-navy);
    font-size: 24px;
    font-weight: 950;
    text-decoration: none;
}

.ta-lawyer-content-wrap {
    padding: 56px 20px;
}

.ta-lawyer-content-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.ta-lawyer-content,
.ta-lawyer-card,
.ta-lawyer-promotion,
.ta-lawyer-video,
.ta-lawyer-map,
.ta-lawyer-content-card,
.ta-lawyer-map-card {
    background: rgba(255,255,255,.86);
    border: 1px solid var(--ta-border-gold);
    border-radius: var(--ta-radius-lg);
    padding: 28px;
    box-shadow: var(--ta-shadow-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ta-lawyer-featured-image,
.ta-lawyer-card-image {
    overflow: hidden;
    margin: -28px -28px 28px;
    border-radius: var(--ta-radius-lg) var(--ta-radius-lg) 0 0;
    background: var(--ta-ivory);
}

.ta-lawyer-card-image {
    margin-bottom: 20px;
}

.ta-lawyer-featured-image img,
.ta-lawyer-card-image img {
    width: 100%;
    display: block;
}

.ta-lawyer-description {
    color: var(--ta-text);
    font-size: 17px;
    line-height: 1.75;
}

.ta-lawyer-description strong {
    color: var(--ta-navy);
}

.ta-lawyer-promotion,
.ta-lawyer-video,
.ta-lawyer-map {
    margin-top: 28px;
}

.ta-lawyer-card {
    position: sticky;
    top: 110px;
    overflow: hidden;
}

.ta-lawyer-details-card,
.ta-lawyer-form-card {
    position: relative;
    top: auto;
    margin-top: 20px;
}

.ta-lawyer-card h2,
.ta-lawyer-card h3,
.ta-lawyer-content h2,
.ta-lawyer-promotion h2,
.ta-lawyer-video h2,
.ta-lawyer-map h2,
.ta-lawyer-map h3 {
    margin-top: 0;
    color: var(--ta-navy);
    letter-spacing: -.05em;
    line-height: 1.05;
}

.ta-lawyer-details-card p,
.ta-lawyer-card p,
.ta-lawyer-content p,
.ta-lawyer-promotion p,
.ta-lawyer-video p,
.ta-lawyer-map p {
    color: var(--ta-muted);
    line-height: 1.7;
}

.ta-lawyer-details-card a {
    color: var(--ta-gold);
    font-weight: 800;
    word-break: break-word;
}

.ta-lawyer-video iframe,
.ta-lawyer-video embed,
.ta-lawyer-video object {
    width: 100% !important;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 360px;
    display: block;
    border-radius: var(--ta-radius-sm);
}

.ta-lawyer-video p {
    margin-bottom: 0;
}

.ta-lawyer-map iframe {
    border-radius: var(--ta-radius-sm);
    display: block;
}

.ta-lawyer-map-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.ta-lawyer-map-head h2 {
    margin: 0;
}

/* ==========================================================
   GRAVITY FORM EN FICHA
   ========================================================== */

.ta-lawyer-form-card .gform_wrapper {
    margin: 0;
}

.ta-lawyer-form-card .gform_fields {
    row-gap: 14px;
}

.ta-lawyer-form-card .gfield {
    margin-bottom: 12px;
}

.ta-lawyer-form-card .gfield_label {
    color: var(--ta-navy);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: -.02em;
}

.ta-lawyer-form-card input[type="text"],
.ta-lawyer-form-card input[type="email"],
.ta-lawyer-form-card input[type="tel"],
.ta-lawyer-form-card textarea,
.ta-lawyer-form-card select {
    width: 100%;
    min-height: 52px;
    border-radius: 18px !important;
    border: 1px solid rgba(7,23,40,.12) !important;
    background: rgba(255,255,255,.92) !important;
    padding: 13px 15px !important;
    color: var(--ta-navy);
    transition: box-shadow .22s ease, border-color .22s ease;
}

.ta-lawyer-form-card textarea {
    min-height: 128px;
}

.ta-lawyer-form-card input:focus,
.ta-lawyer-form-card textarea:focus,
.ta-lawyer-form-card select:focus {
    border-color: rgba(201,154,82,.7) !important;
    box-shadow: 0 0 0 5px rgba(201,154,82,.14) !important;
}

.ta-lawyer-form-card .gform_button,
.ta-lawyer-form-card input[type="submit"],
.ta-lawyer-form-card button[type="submit"] {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--ta-gold), var(--ta-gold-light));
    color: var(--ta-navy-dark);
    font-weight: 950;
    cursor: pointer;
}

.ta-lawyer-form-card .gform_confirmation_message {
    border-radius: 18px;
    background: rgba(201,154,82,.13);
    border: 1px solid rgba(201,154,82,.26);
    color: var(--ta-navy);
    padding: 18px;
    font-weight: 800;
}

/* ==========================================================
   BLOG ARCHIVE · HERO LIMPIO + TARJETAS
   ========================================================== */

body.blog {
    background:
        radial-gradient(circle at 8% 0%, rgba(201,154,82,.10), transparent 28%),
        linear-gradient(180deg, var(--ta-cream) 0%, var(--ta-ivory) 42%, #ffffff 100%);
}

body.blog .post-archive-hero-section.entry-hero {
    position: relative !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: clamp(360px, 46vh, 520px) !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background-image:
        linear-gradient(90deg, rgba(5,11,20,.92), rgba(7,23,40,.72), rgba(7,23,40,.38)),
        url('/wp-content/themes/kadence-child/assets/img/blog-hero.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    color: #fff !important;
}

body.blog .post-archive-hero-section .entry-hero-container-inner,
body.blog .post-archive-hero-section .hero-container,
body.blog .post-archive-hero-section .hero-container.site-container,
body.blog .post-archive-hero-section .entry-header,
body.blog .post-archive-hero-section .post-archive-title {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

body.blog .post-archive-hero-section .entry-hero-container-inner {
    position: relative !important;
    width: 100% !important;
    min-height: clamp(360px, 46vh, 520px) !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.blog .post-archive-hero-section .entry-hero-container-inner::before,
body.blog .post-archive-hero-section .entry-hero-container-inner::after {
    content: none !important;
    display: none !important;
}

body.blog .post-archive-hero-section .hero-section-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background:
        radial-gradient(circle at 12% 14%, rgba(201,154,82,.18), transparent 30%),
        linear-gradient(90deg, rgba(5,11,20,.34), rgba(7,23,40,.04)) !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

body.blog .post-archive-hero-section .hero-container.site-container {
    position: relative !important;
    z-index: 2 !important;
    max-width: 1380px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: clamp(64px, 7vw, 105px) clamp(22px, 6vw, 90px) !important;
}

body.blog .post-archive-hero-section .entry-header.post-archive-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    max-width: 1180px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

body.blog .post-archive-hero-section .entry-header.post-archive-title::before {
    content: "Actualidad legal" !important;
    display: inline-flex !important;
    width: fit-content !important;
    margin: 0 0 22px !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(230,193,121,.30) !important;
    color: var(--ta-gold-light) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: .13em !important;
    text-transform: uppercase !important;
}

body.blog .post-archive-hero-section h1.page-title.post-home-title.archive-title,
body.blog .post-archive-hero-section .page-title,
body.blog .post-archive-hero-section .post-home-title,
body.blog .post-archive-hero-section .archive-title {
    max-width: 1120px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(46px, 6.6vw, 96px) !important;
    line-height: .88 !important;
    letter-spacing: -.075em !important;
    font-weight: 950 !important;
    text-align: left !important;
}

body.blog .content-container,
body.blog #primary,
body.blog .site-main {
    padding-top: clamp(46px, 5vw, 76px) !important;
}

body.blog article.entry,
body.blog .loop-entry,
body.blog article.post {
    overflow: hidden !important;
    border-radius: 26px !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid rgba(201,154,82,.20) !important;
    box-shadow: 0 22px 70px rgba(7,23,40,.10) !important;
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease !important;
}

body.blog article.entry:hover,
body.blog .loop-entry:hover,
body.blog article.post:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(201,154,82,.44) !important;
    box-shadow: 0 32px 90px rgba(7,23,40,.15) !important;
}

body.blog article.entry .entry-header,
body.blog .loop-entry .entry-header,
body.blog article.post .entry-header {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 24px 24px 0 !important;
    overflow: visible !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--ta-navy) !important;
    box-shadow: none !important;
    border: 0 !important;
}

body.blog article.entry .entry-header::before,
body.blog .loop-entry .entry-header::before,
body.blog article.post .entry-header::before,
body.blog article.entry .entry-header::after,
body.blog .loop-entry .entry-header::after,
body.blog article.post .entry-header::after {
    content: none !important;
    display: none !important;
}

body.blog article.entry .entry-title,
body.blog .loop-entry .entry-title,
body.blog article.post .entry-title {
    position: static !important;
    max-width: none !important;
    margin: 0 0 12px !important;
    color: var(--ta-navy) !important;
    font-size: clamp(24px, 2.2vw, 34px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.045em !important;
    font-weight: 950 !important;
    text-align: left !important;
}

body.blog article.entry .entry-title a,
body.blog .loop-entry .entry-title a,
body.blog article.post .entry-title a {
    color: inherit !important;
    text-decoration: none !important;
}

body.blog article.entry .entry-title a:hover,
body.blog .loop-entry .entry-title a:hover,
body.blog article.post .entry-title a:hover {
    color: var(--ta-gold) !important;
}

body.blog article.entry .post-thumbnail,
body.blog .loop-entry .post-thumbnail,
body.blog article.post .post-thumbnail,
body.blog article.entry .entry-image,
body.blog .loop-entry .entry-image,
body.blog article.post .entry-image {
    display: block !important;
    overflow: hidden !important;
    border-radius: 26px 26px 0 0 !important;
    background: var(--ta-navy) !important;
}

body.blog article.entry img,
body.blog .loop-entry img,
body.blog article.post img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
    transition: transform .42s ease, filter .42s ease !important;
}

body.blog article.entry:hover img,
body.blog .loop-entry:hover img,
body.blog article.post:hover img {
    transform: scale(1.045) !important;
    filter: saturate(1.06) contrast(1.04) !important;
}

body.blog article.entry .entry-summary,
body.blog .loop-entry .entry-summary,
body.blog article.post .entry-summary,
body.blog article.entry .entry-content,
body.blog .loop-entry .entry-content,
body.blog article.post .entry-content {
    padding: 0 24px 26px !important;
    color: var(--ta-muted) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    background: transparent !important;
    background-image: none !important;
}

body.blog article.entry .entry-meta,
body.blog .loop-entry .entry-meta,
body.blog article.post .entry-meta {
    color: #8a6430 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

/* ==========================================================
   SINGLE POST · ARTÍCULO
   ========================================================== */

body.single-post {
    background:
        radial-gradient(circle at 8% 0%, rgba(201,154,82,.10), transparent 28%),
        linear-gradient(180deg, var(--ta-cream) 0%, var(--ta-ivory) 42%, #ffffff 100%);
}

body.single-post .entry-hero,
body.single-post .entry-hero-container-inner {
    position: relative;
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    min-height: clamp(360px, 52vh, 560px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(5,11,20,.92), rgba(7,23,40,.72), rgba(7,23,40,.38)),
        url('/wp-content/themes/kadence-child/assets/img/blog-hero.png') !important;
    background-size: cover !important;
    background-position: center !important;
    color: #fff;
}

body.single-post .entry-header {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(70px, 8vw, 120px) clamp(22px, 6vw, 90px);
    text-align: left !important;
}

body.single-post .entry-title {
    max-width: 1120px;
    margin: 0;
    color: #fff !important;
    font-size: clamp(44px, 6.5vw, 96px);
    line-height: .9;
    letter-spacing: -.075em;
    font-weight: 950;
}

body.single-post .entry-meta {
    color: rgba(255,255,255,.72) !important;
}

body.single-post .entry-content-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(54px, 7vw, 96px) clamp(22px, 5vw, 72px);
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.single-post .entry-content {
    color: #172638;
    font-size: clamp(18px, 1.35vw, 21px);
    line-height: 1.78;
}

body.single-post .entry-content p {
    color: #28384a;
    line-height: 1.78;
}

body.single-post .entry-content h2 {
    margin-top: 52px;
    margin-bottom: 20px;
    color: var(--ta-navy);
    font-size: clamp(34px, 4vw, 62px);
    line-height: .95;
    letter-spacing: -.065em;
    font-weight: 950;
}

body.single-post .entry-content h3 {
    margin-top: 38px;
    margin-bottom: 16px;
    color: var(--ta-navy);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 950;
}

body.single-post .post-thumbnail,
body.single-post .entry-image {
    max-width: 1180px;
    margin: clamp(40px, 5vw, 70px) auto 0;
    overflow: hidden;
    border-radius: var(--ta-radius-lg);
    box-shadow: 0 28px 90px rgba(7,23,40,.14);
}

body.single-post .post-thumbnail img,
body.single-post .entry-image img {
    width: 100%;
    display: block;
}

/* ==========================================================
   ANIMACIONES CSS SUAVES
   ========================================================== */

@media (prefers-reduced-motion: no-preference) {
    .ta-motion-card,
    .ta-result-card,
    .ta-lawyer-card,
    .ta-results-map-card,
    .ta-specialty-card {
        animation: taFadeUp .7s cubic-bezier(.2,.8,.2,1) both;
    }
}

@keyframes taFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   RESPONSIVE GENERAL
   ========================================================== */

@media (max-width: 1180px) {
    .ta-home-search-band,
    .ta-home-editorial-v2,
    .ta-home-story-v2,
    .ta-home-section-head-v2,
    .ta-lawyer-hero-inner,
    .ta-lawyer-content-grid {
        grid-template-columns: 1fr;
    }

    .ta-home-search-v2,
    .ta-lawyer-search,
    .ta-search-form,
    .ta-results-search-box {
        grid-template-columns: 1fr;
    }

    .ta-home-specialty-grid-v2,
    .ta-home-blog-grid-v2,
    .ta-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ta-home-section-head-v2 p {
        max-width: 760px;
    }

    .ta-home-story-sticky,
    .ta-lawyer-card {
        position: relative;
        top: auto;
    }

    .entry-content .ta-specialties-grid,
    .ta-specialties-grid,
    .site .ta-specialties-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .entry-content .ta-specialties-grid,
    .ta-specialties-grid,
    .site .ta-specialties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .ta-home-hero-v2 {
        min-height: auto;
        padding-top: 86px;
    }

    .ta-home-title-v2 {
        font-size: clamp(48px, 16vw, 82px);
        line-height: .86;
    }

    .ta-home-search-band {
        margin-top: 0;
        padding: 28px 22px;
    }

    .ta-home-specialties-v2,
    .ta-home-blog-v2 {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ta-home-specialty-grid-v2,
    .ta-home-blog-grid-v2,
    .ta-results-grid {
        grid-template-columns: 1fr;
    }

    .ta-home-specialty-card-v2 {
        min-height: 340px;
        padding: 24px;
        border-radius: 24px;
    }

    .ta-home-blog-img {
        min-height: 230px;
    }

    .ta-home-blog-content {
        padding: 24px 22px 28px;
    }

    .ta-home-section-head-v2 h2,
    .ta-home-editorial-copy h2,
    .ta-home-story-sticky h2,
    .ta-home-final-content h2 {
        font-size: clamp(42px, 13vw, 68px);
        line-height: .9;
    }

    body.page:not(.home) .entry-hero,
    body.page:not(.home) .entry-hero-container-inner,
    body.single-post .entry-hero,
    body.single-post .entry-hero-container-inner {
        min-height: 340px;
    }

    body.page:not(.home) .entry-header,
    body.single-post .entry-header {
        padding: 64px 22px;
    }

    body.page:not(.home) .entry-title,
    body.single-post .entry-title {
        font-size: clamp(42px, 13vw, 68px);
        line-height: .9;
        letter-spacing: -.065em;
    }

    body.blog .post-archive-hero-section.entry-hero,
    body.blog .post-archive-hero-section .entry-hero-container-inner {
        min-height: 340px !important;
    }

    body.blog .post-archive-hero-section .hero-container.site-container {
        padding: 64px 22px !important;
    }

    body.blog .post-archive-hero-section h1.page-title.post-home-title.archive-title,
    body.blog .post-archive-hero-section .page-title,
    body.blog .post-archive-hero-section .post-home-title,
    body.blog .post-archive-hero-section .archive-title {
        font-size: clamp(42px, 13vw, 66px) !important;
        line-height: .9 !important;
        letter-spacing: -.065em !important;
    }

    .ta-lawyer-video iframe,
    .ta-lawyer-video embed,
    .ta-lawyer-video object {
        min-height: 220px;
    }

    .ta-results-top,
    .ta-results-map-head,
    .ta-lawyer-map-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ta-results-map {
        min-height: 320px;
    }

    .ta-result-actions {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .entry-content .ta-specialties-grid,
    .ta-specialties-grid,
    .site .ta-specialties-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   CONTACTO PREMIUM
   Página Contacto
   ========================================================== */

/* La página de contacto no debe quedar encerrada en card genérica */
body.page .entry-content-wrap:has(.ta-contact-premium),
body.page-id-231 .entry-content-wrap {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Contenedor principal */
.ta-contact-premium {
    margin-inline: calc(50% - 50vw);
    padding: clamp(80px, 8vw, 130px) clamp(20px, 5vw, 72px);
    background:
        radial-gradient(circle at 8% 0%, rgba(201,154,82,.11), transparent 30%),
        linear-gradient(180deg, #fff9f0 0%, #f7f2ea 46%, #ffffff 100%);
}

/* Intro */
.ta-contact-intro {
    max-width: 1380px;
    margin: 0 auto clamp(42px, 5vw, 70px);
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: end;
}

.ta-contact-kicker,
.ta-contact-form-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(201,154,82,.08);
    border: 1px solid rgba(201,154,82,.22);
    color: #8a6430;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ta-contact-kicker::before,
.ta-contact-form-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C99A52;
    box-shadow: 0 0 0 7px rgba(201,154,82,.13);
}

.ta-contact-intro h2 {
    margin: 0;
    color: #050b14;
    font-size: clamp(46px, 7vw, 108px);
    line-height: .88;
    letter-spacing: -.08em;
    font-weight: 950;
}

.ta-contact-intro > p:last-child {
    margin: 0;
    color: #647083;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.7;
}

/* Grid */
.ta-contact-grid {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

/* Lateral */
.ta-contact-side {
    display: grid;
    gap: 24px;
}

.ta-contact-image-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 34px;
    background-image:
        linear-gradient(180deg, rgba(5,11,20,.04), rgba(5,11,20,.78)),
        url('/wp-content/themes/kadence-child/assets/img/contact-legal.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 30px 90px rgba(7,23,40,.14);
    border: 1px solid rgba(201,154,82,.22);
}

.ta-contact-image-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 14%, rgba(201,154,82,.23), transparent 30%),
        linear-gradient(135deg, rgba(7,23,40,.24), rgba(5,11,20,.08));
    pointer-events: none;
}

.ta-contact-image-overlay {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    color: #fff;
}

.ta-contact-image-overlay span {
    display: block;
    margin-bottom: 10px;
    color: #E6C179;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ta-contact-image-overlay strong {
    display: block;
    max-width: 520px;
    color: #fff;
    font-size: clamp(34px, 4vw, 58px);
    line-height: .92;
    letter-spacing: -.065em;
    font-weight: 950;
}

/* Info items */
.ta-contact-info-list {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(7,23,40,.13);
}

.ta-contact-info-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(7,23,40,.13);
}

.ta-contact-info-item span {
    color: #C99A52;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .12em;
}

.ta-contact-info-item h3 {
    margin: 0 0 8px;
    color: #071728;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 950;
}

.ta-contact-info-item p {
    margin: 0;
    color: #647083;
    line-height: 1.65;
}

/* Form card */
.ta-contact-form-card {
    position: relative;
    padding: clamp(28px, 4vw, 52px);
    border-radius: 34px;
    background: #fff;
    border: 1px solid rgba(201,154,82,.22);
    box-shadow: 0 30px 90px rgba(7,23,40,.12);
}

.ta-contact-form-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 100% 0%, rgba(201,154,82,.13), transparent 28%);
    pointer-events: none;
}

.ta-contact-form-card > * {
    position: relative;
    z-index: 2;
}

.ta-contact-form-card h3 {
    margin: 20px 0 28px;
    color: #071728;
    font-size: clamp(34px, 4.5vw, 68px);
    line-height: .92;
    letter-spacing: -.07em;
    font-weight: 950;
}

/* Gravity Forms */
.ta-contact-form-card .gform_wrapper {
    margin: 0;
}

.ta-contact-form-card .gform_fields {
    row-gap: 18px;
}

.ta-contact-form-card .gfield_label {
    color: #071728;
    font-weight: 900;
    letter-spacing: -.02em;
}

.ta-contact-form-card input[type="text"],
.ta-contact-form-card input[type="email"],
.ta-contact-form-card input[type="tel"],
.ta-contact-form-card input[type="url"],
.ta-contact-form-card textarea,
.ta-contact-form-card select {
    width: 100%;
    min-height: 56px;
    border-radius: 18px !important;
    border: 1px solid rgba(7,23,40,.13) !important;
    background: rgba(255,255,255,.95) !important;
    padding: 13px 16px !important;
    color: #071728;
    font-size: 16px;
    outline: none;
    transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}

.ta-contact-form-card textarea {
    min-height: 160px;
}

.ta-contact-form-card input:focus,
.ta-contact-form-card textarea:focus,
.ta-contact-form-card select:focus {
    border-color: rgba(201,154,82,.72) !important;
    box-shadow: 0 0 0 5px rgba(201,154,82,.13) !important;
    transform: translateY(-1px);
}

.ta-contact-form-card .gform_footer {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.ta-contact-form-card .gform_button,
.ta-contact-form-card input[type="submit"],
.ta-contact-form-card button[type="submit"] {
    width: 100%;
    min-height: 58px;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #C99A52, #E6C179) !important;
    color: #071728 !important;
    font-weight: 950 !important;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(201,154,82,.28);
    transition: transform .24s ease, box-shadow .24s ease;
}

.ta-contact-form-card .gform_button:hover,
.ta-contact-form-card input[type="submit"]:hover,
.ta-contact-form-card button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px rgba(201,154,82,.34);
}

.ta-contact-form-card .gform_confirmation_message {
    border-radius: 20px;
    background: rgba(201,154,82,.12);
    border: 1px solid rgba(201,154,82,.26);
    color: #071728;
    padding: 18px;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1120px) {
    .ta-contact-intro,
    .ta-contact-grid {
        grid-template-columns: 1fr;
    }

    .ta-contact-intro > p:last-child {
        max-width: 780px;
    }

    .ta-contact-image-card {
        min-height: 420px;
    }
}

@media (max-width: 760px) {
    .ta-contact-premium {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ta-contact-intro h2 {
        font-size: clamp(42px, 13vw, 68px);
        line-height: .9;
    }

    .ta-contact-form-card {
        padding: 26px 20px;
        border-radius: 26px;
    }

    .ta-contact-image-card {
        min-height: 340px;
        border-radius: 26px;
    }

    .ta-contact-image-overlay {
        left: 22px;
        right: 22px;
        bottom: 22px;
    }

    .ta-contact-info-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
