/*
Theme Name: Torres Herrera Abogados Premium
Theme URI: https://example.com/
Author: OpenAI
Description: Tema WordPress corporativo y responsive para Torres Herrera Abogados, basado en el boceto aprobado. Incluye menús, iconos, imágenes, formularios, casos, servicios, FAQs, conocimiento y llamadas a la acción.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: torres-herrera
*/
:root{--navy:#061b35;--navy2:#0b3158;--gold:#d59a2f;--gold2:#f1bd5b;--ivory:#fbf7ef;--white:#fff;--ink:#10253f;--muted:#637181;--line:#e7dccb;--green:#17a34a;--shadow:0 14px 34px rgba(4,26,52,.12);--r:15px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.55}body.admin-bar .th-header{top:32px}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}.th-container{width:min(1220px,calc(100% - 40px));margin:auto}.th-section{padding:66px 0}.th-section-head{text-align:center;max-width:860px;margin:0 auto 30px}.th-section-head.left{text-align:left;margin-left:0}.th-section-head span,.th-eyebrow{color:var(--gold);font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.76rem}.th-section-head h2{font-family:Georgia,serif;color:var(--navy);font-size:clamp(2rem,3.2vw,3rem);line-height:1.08;margin:6px 0 10px}.th-section-head p{color:var(--muted)}.th-section-head.light h2,.th-section-head.light p{color:#fff}.th-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border-radius:8px;font-weight:800;font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;border:1px solid transparent;transition:.2s}.th-btn:hover{transform:translateY(-2px)}.th-btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold2));color:var(--navy)}.th-btn-navy{background:var(--navy);color:#fff}.th-btn-light{background:#fff;color:var(--navy);border-color:#dcd2c2}.th-btn-whatsapp{background:var(--green);color:#fff}
.th-header{position:sticky;top:0;z-index:999;background:var(--navy);border-bottom:1px solid rgba(213,154,47,.32)}.th-header-inner{min-height:84px;display:flex;align-items:center;gap:18px}.th-brand{flex:0 0 250px}.th-brand-logo{height:66px;width:auto;background:#fff;border-radius:10px;padding:3px}.th-nav{margin-left:auto;display:flex;gap:15px;color:#fff;align-items:center}.th-nav a{font-size:.63rem;font-weight:800;text-transform:uppercase;padding:30px 0 25px;border-bottom:2px solid transparent}.th-nav a:hover{color:var(--gold2);border-color:var(--gold)}.th-header-phones{display:flex;flex-direction:column;gap:2px}.th-header-phones a{color:#fff;font-weight:800;font-size:.78rem;white-space:nowrap}.th-header-phones a:last-child{color:#c5f8d4}.th-menu-toggle{display:none;margin-left:auto;background:none;border:1px solid #fff5;color:#fff;border-radius:7px;padding:7px 10px}
.th-hero{position:relative;min-height:590px;background:var(--navy);overflow:hidden;color:#fff}.th-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center}.th-hero-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,27,53,.99) 0%,rgba(6,27,53,.94) 36%,rgba(6,27,53,.45) 62%,rgba(6,27,53,.05) 100%)}.th-hero-inner{position:relative;z-index:2;min-height:590px;display:flex;align-items:center}.th-hero-copy{width:min(680px,60%);padding:45px 0}.th-hero h1{font-family:Georgia,serif;font-size:clamp(2.5rem,5vw,4.8rem);line-height:1.02;margin:8px 0 14px}.th-hero h2{color:var(--gold2);font-size:1.1rem;letter-spacing:.06em;margin:0 0 16px}.th-hero p{font-size:1.05rem;max-width:610px;color:#e7eef6}.th-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.th-problems{background:var(--ivory)}.th-question-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.th-question{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;display:flex;gap:12px;align-items:center;box-shadow:0 5px 16px rgba(6,27,53,.04)}.th-question img{width:34px;height:34px}.th-question span{font-size:.83rem;font-weight:700}.th-problems-end{margin-top:20px;padding:18px 22px;border-radius:12px;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line)}
.th-two-col{display:grid;grid-template-columns:1fr 1fr;gap:38px;align-items:center}.th-about p{color:#536273}.th-about blockquote{margin:24px 0 0;padding:18px 20px;border-left:4px solid var(--gold);background:var(--ivory);font-family:Georgia,serif}.th-image-card{border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}.th-image-card img{width:100%;height:360px;object-fit:cover}.th-image-card.wide img{height:300px}.th-subtitle{text-align:center;font-family:Georgia,serif;font-size:1.6rem;margin:44px 0 22px}.th-founder-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.th-founder{border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;gap:18px;background:#fff}.th-avatar{width:90px;height:110px;background:#ececec;border-radius:10px;display:grid;place-items:center;font-size:3rem;flex:0 0 auto}.th-founder h4{margin:0;color:var(--navy);font-family:Georgia,serif}.th-founder p{margin:2px 0}.th-founder ul{padding-left:17px;margin:8px 0;font-size:.8rem;color:#596879}
.th-services{background:#fff}.th-service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.th-service{border:1px solid var(--line);border-radius:13px;padding:20px;background:#fff;box-shadow:0 5px 18px rgba(6,27,53,.04);transition:.2s}.th-service:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.th-service-icon{width:52px;height:52px;border-radius:50%;background:var(--navy);border:2px solid var(--gold);display:grid;place-items:center;margin-bottom:12px}.th-service-icon img{width:30px;height:30px}.th-service h3{font-family:Georgia,serif;color:var(--navy);font-size:1rem;margin:0 0 8px}.th-service p{font-size:.78rem;color:#617080}.th-service a{color:#b97b18;font-weight:800;font-size:.75rem}
.th-cases{background:var(--ivory)}.th-case-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.th-case{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}.th-case-no{color:var(--gold);font-weight:900;font-size:.72rem}.th-case p{font-size:.72rem;margin:7px 0}.th-case strong{color:var(--navy)}
.th-experience{background:linear-gradient(120deg,var(--navy),var(--navy2));color:#fff}.th-counter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.th-counter{border:1px solid rgba(213,154,47,.35);border-radius:14px;padding:24px;text-align:center;background:rgba(255,255,255,.04)}.th-counter strong{display:block;font-family:Georgia,serif;color:var(--gold2);font-size:1.3rem}.th-counter span{font-size:.75rem;text-transform:uppercase;font-weight:800}
.th-clients{background:#fff}.th-client-types{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.th-client-types span,.th-tabs span{background:var(--ivory);border:1px solid var(--line);border-radius:999px;padding:8px 13px;font-size:.7rem;font-weight:800}.th-logo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.th-logo-grid div{height:100px;border:1px dashed #cdbd9f;border-radius:12px;display:grid;place-items:center;color:#9b8e79;font-size:.75rem}
.th-training{background:var(--ivory)}.th-event{margin-top:15px;padding:17px;border-radius:12px;background:#fff;border:1px solid var(--line)}.th-event h3{margin:0 0 7px;color:var(--navy);font-family:Georgia,serif}.th-event p{font-size:.8rem;margin:5px 0}.th-form{background:#fff;border:1px solid var(--line);border-radius:15px;padding:24px;box-shadow:var(--shadow);display:grid;grid-template-columns:1fr 1fr;gap:14px}.th-form h3{grid-column:1/-1;font-family:Georgia,serif;font-size:1.7rem;margin:0;color:var(--navy)}.th-form label{display:flex;flex-direction:column;gap:6px;font-size:.76rem;font-weight:700}.th-form input,.th-form select,.th-form textarea{width:100%;border:1px solid #d8d1c6;border-radius:8px;padding:11px;background:#fff;font:inherit}.th-form .full{grid-column:1/-1}.th-check{flex-direction:row!important;align-items:flex-start}.th-check input{width:auto;margin-top:3px}.th-success{grid-column:1/-1;background:#e7f7ec;color:#176c36;padding:10px;border-radius:8px}
.th-knowledge{background:#fff}.th-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.th-article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.th-article{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.th-article img{width:100%;height:165px;object-fit:cover}.th-article div{padding:16px}.th-article h3{font-family:Georgia,serif;color:var(--navy);font-size:1rem;margin:0 0 8px}.th-article p{font-size:.77rem;color:#627181}.th-article a{font-size:.72rem;font-weight:800;color:#b57b22}
.th-didyouknow{background:var(--ivory)}.th-fact-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.th-fact{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}.th-fact img{width:28px;height:28px}.th-fact h3{margin:7px 0;color:var(--navy);font-family:Georgia,serif}.th-fact p,.th-fact small{font-size:.7rem;color:#677585}
.th-testimonials{background:linear-gradient(120deg,var(--navy),var(--navy2));color:#fff}.th-testimonial-slider{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.th-testimonial{border:1px solid rgba(213,154,47,.35);border-radius:14px;padding:24px;background:rgba(255,255,255,.04)}.th-quote{font-size:3rem;color:var(--gold);font-family:Georgia,serif;line-height:.7}.th-testimonial p{font-family:Georgia,serif}.th-testimonial strong,.th-testimonial span{display:block}.th-testimonial span{font-size:.7rem;color:#ccd7e0;margin-top:4px}
.th-faq{background:#fff}.th-faq-list{max-width:900px;margin:auto}.th-faq details{border:1px solid var(--line);border-radius:10px;margin:9px 0;background:#fff}.th-faq summary{cursor:pointer;padding:15px 18px;font-weight:800}.th-faq details p{padding:0 18px 16px;color:#627181;font-size:.83rem}.th-disclaimer{max-width:900px;margin:18px auto 0;background:var(--ivory);padding:14px 18px;border-left:4px solid var(--gold);font-size:.78rem}
.th-contact{background:var(--ivory)}.th-contact-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px}.th-contact-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.th-contact-cards a{background:var(--navy);color:#fff;border-radius:12px;padding:16px}.th-contact-cards strong,.th-contact-cards span{display:block}.th-contact-cards strong{color:var(--gold2);font-size:1.25rem}.th-contact-cards span{font-size:.72rem}.th-map-placeholder{min-height:150px;border:1px dashed #b8aa93;border-radius:12px;display:grid;place-items:center;text-align:center;padding:20px;color:#8d806c;background:#fff}
.th-footer{background:#04172d;color:#fff;padding:45px 0 15px}.th-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:35px}.th-footer-logo{height:115px;width:auto;background:#fff;border-radius:12px;padding:4px}.th-footer h4{color:var(--gold2);font-size:.78rem;text-transform:uppercase}.th-footer a,.th-footer span,.th-footer p{display:block;color:#d3dde6;font-size:.73rem;margin:7px 0}.th-footer-bottom{border-top:1px solid #ffffff20;margin-top:24px;padding-top:14px;display:flex;justify-content:space-between}.th-wa-float{position:fixed;right:18px;bottom:18px;width:56px;height:56px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-size:1.8rem;z-index:998;box-shadow:0 8px 24px rgba(0,0,0,.25)}
@media(max-width:1050px){.th-nav{display:none;position:absolute;top:84px;left:0;right:0;background:var(--navy);padding:16px 22px;flex-direction:column;align-items:flex-start}.th-nav.open{display:flex}.th-nav a{padding:7px 0}.th-menu-toggle{display:block}.th-header-phones{display:none}.th-question-grid,.th-service-grid,.th-case-grid{grid-template-columns:repeat(2,1fr)}.th-counter-grid{grid-template-columns:repeat(2,1fr)}.th-fact-grid{grid-template-columns:repeat(2,1fr)}.th-article-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){body.admin-bar .th-header{top:46px}.th-container{width:min(100% - 24px,1220px)}.th-header-inner{min-height:72px}.th-brand{flex:0 0 auto}.th-brand-logo{height:54px}.th-hero,.th-hero-inner{min-height:600px}.th-hero-bg{background-position:67% center}.th-hero-bg:after{background:linear-gradient(90deg,rgba(6,27,53,.96),rgba(6,27,53,.77))}.th-hero-copy{width:100%}.th-two-col,.th-founder-grid,.th-question-grid,.th-service-grid,.th-case-grid,.th-counter-grid,.th-logo-grid,.th-article-grid,.th-fact-grid,.th-testimonial-slider,.th-contact-layout,.th-footer-grid{grid-template-columns:1fr}.th-problems-end{flex-direction:column;align-items:flex-start}.th-form{grid-template-columns:1fr}.th-form label,.th-form h3,.th-form .full{grid-column:1}.th-contact-cards{grid-template-columns:1fr}.th-footer-bottom{flex-direction:column;gap:6px}.th-section{padding:50px 0}}
