/*
Theme Name: CL Abogados
Theme URI: https://cuyutupa.com/
Author: Cuyutupa Luque Abogados
Description: Tema institucional de Cuyutupa Luque Abogados. Paleta de marca #232a2c / #5c686e / #ffffff, tipografía Neutraface 2 Text (con Jost como alternativa).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Uso exclusivo de Cuyutupa Luque Abogados
Text Domain: cl
*/

:root {
  --ink: #232a2c;
  --slate: #5c686e;
  --paper: #ffffff;
  --mist: #f3f4f4;
  --line: #e3e6e7;
  --line-2: #d9dddf;
  --text-2: #3d474b;
  --text-3: #4f5a5f;
  --deep: #1b2123;
  --font: 'Neutraface 2 Text', 'Jost', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --pad-section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--slate); }
h1, h2, h3, h4 { font-weight: 300; line-height: 1.18; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--paper); padding: 12px 18px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

/* Etiquetas y botones */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--slate); }
.eyebrow--light { color: rgba(255,255,255,0.75); }
.h-section { font-size: clamp(30px, 3.4vw, 46px); }
.label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,0.7); color: var(--paper); background: transparent; }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--slate); color: var(--paper); }
.btn svg, .link-arrow svg { flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.link-arrow--light { color: var(--paper); }
.link-arrow--light:hover { color: rgba(255,255,255,0.75); }

/* Barra superior */
.topbar { background: var(--ink); color: rgba(255,255,255,0.78); font-size: 13px; letter-spacing: 0.04em; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 10px; }
.topbar a { color: rgba(255,255,255,0.88); text-decoration: none; }
.topbar a:hover { color: var(--paper); }
.topbar__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* Cabecera */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 16px; }
.brand { display: block; line-height: 0; }
.brand img { height: 76px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.nav a { display: block; padding: 10px 0; font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.nav a:hover, .nav .current-menu-item > a { color: var(--slate); }
.nav .boton > a, .nav .menu-cta > a { padding: 12px 22px; border: 1px solid var(--ink); }
.nav .boton > a:hover, .nav .menu-cta > a:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; }
  .nav.is-open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .nav li { border-top: 1px solid var(--line); }
  .nav a { padding: 16px 0; }
  .nav .boton > a, .nav .menu-cta > a { border: 0; padding: 16px 0; }
  .brand img { height: 58px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 640px) { .topbar__addr { display: none; } .topbar .wrap { justify-content: center; } }

/* Portada */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero__mono { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); height: 118%; width: auto; max-width: none; opacity: 0.10; pointer-events: none; }
.hero__inner { position: relative; display: flex; flex-direction: column; gap: 36px; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(64px, 8vw, 110px); }
.hero__kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.72); display: flex; align-items: center; gap: 16px; }
.hero__kicker::before { content: ""; display: inline-block; width: 48px; height: 1px; background: rgba(255,255,255,0.6); }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.08; letter-spacing: -0.01em; max-width: 880px; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; line-height: 1.65; color: rgba(255,255,255,0.82); max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.stats { border-top: 1px solid rgba(255,255,255,0.16); position: relative; }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 48px; padding-block: 36px; }
.stat { display: flex; align-items: baseline; gap: 18px; }
.stat strong { font-size: 44px; font-weight: 300; line-height: 1; }
.stat span { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,0.78); }

/* Cabecera de páginas internas */
.page-hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.page-hero .hero__mono { height: 160%; opacity: 0.08; }
.page-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 20px; padding-block: clamp(64px, 8vw, 112px); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 60px); max-width: 900px; }
.page-hero__meta { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.page-hero__meta a { color: rgba(255,255,255,0.86); text-decoration: none; }

/* Secciones */
.section { padding-block: var(--pad-section); }
.section--mist { background: var(--mist); }
.section--stack > .wrap { display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head__text { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split__title { display: flex; flex-direction: column; gap: 24px; }
.split__body { display: flex; flex-direction: column; gap: 20px; color: var(--text-2); padding-top: 44px; }
.split__body .link-arrow { align-self: flex-start; margin-top: 12px; }
@media (max-width: 900px) { .split__body { padding-top: 0; } }

/* Áreas */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.area { background: var(--paper); padding: 40px 36px 36px; display: flex; flex-direction: column; gap: 16px; min-height: 250px; text-decoration: none; color: var(--ink); transition: background .2s; }
.area:hover { background: #fafbfb; color: var(--ink); }
.area__n { font-size: 14px; font-weight: 500; letter-spacing: 0.16em; color: var(--slate); }
.area__title { font-size: 23px; font-weight: 400; line-height: 1.25; }
.area__text { font-size: 16px; line-height: 1.6; color: var(--text-3); flex-grow: 1; }
.area__more { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }

/* Destacado */
.feature { background: var(--slate); color: var(--paper); padding-block: clamp(64px, 8vw, 104px); }
.feature .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 80px; }
.feature__main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.feature__quote { font-weight: 300; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.3; }
.feature__aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border: 1px solid rgba(255,255,255,0.55); font-size: 15px; }

/* Equipo */
.team { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.person--lead { flex: 2 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 36px; }
.person--lead .portrait { flex: 0 1 300px; min-width: 240px; }
.person--lead .person__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.person { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.portrait { aspect-ratio: 4 / 5; background: #e9ecec; overflow: hidden; max-width: 300px; width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait--empty { display: flex; align-items: center; justify-content: center; }
.portrait--empty img { width: 55%; height: auto; opacity: 0.35; object-fit: contain; }
.person__role { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.person__name { font-size: 32px; font-weight: 400; line-height: 1.2; }
.person .person__name { font-size: 26px; }
.person__bio { color: var(--text-2); }
.person__links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 8px; }
.person__links a { font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* Clientes */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; padding-block: 48px; }
.clients__list { flex: 1 1 600px; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px 48px; font-size: 18px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #6b767b; list-style: none; margin: 0; padding: 0; }

/* Publicaciones */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--paper); padding: 36px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.post-card:hover { color: var(--ink); box-shadow: 0 10px 30px rgba(35,42,44,0.08); transform: translateY(-2px); }
.section:not(.section--mist) .post-card { border: 1px solid var(--line); }
.post-card__thumb { margin: -36px -36px 4px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__meta { font-size: 13px; letter-spacing: 0.12em; color: var(--slate); text-transform: uppercase; }
.post-card__title { font-size: 22px; line-height: 1.35; font-weight: 400; flex-grow: 1; }
.post-card__excerpt { font-size: 16px; color: var(--text-3); }
.alert-card { background: var(--ink); color: var(--paper); padding: 36px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; }
.alert-card__title { font-size: 22px; line-height: 1.35; font-weight: 300; flex-grow: 1; }
.inline-form { display: flex; }
.inline-form input { flex: 1 1 auto; min-width: 0; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.4); border-right: 0; background: transparent; color: var(--paper); font-family: inherit; font-size: 16px; }
.inline-form input::placeholder { color: rgba(255,255,255,0.55); }
.inline-form button { padding: 14px 20px; background: var(--paper); color: var(--ink); border: 0; font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }

/* Contacto */
.contact { background: var(--ink); color: var(--paper); }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 56px 96px; }
.contact__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__list { display: flex; flex-direction: column; gap: 22px; margin-top: 12px; font-size: 16px; }
.contact__list div { display: flex; flex-direction: column; gap: 4px; }
.contact__list .label { color: rgba(255,255,255,0.65); }
.contact__list a { color: var(--paper); text-decoration: none; }
.contact-form { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full, .contact-form__foot, .form-msg { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.field input, .field textarea { padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,0.45); background: transparent; color: var(--paper); font-family: inherit; font-size: 17px; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); }
.field textarea { resize: vertical; min-height: 110px; }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(255,255,255,0.7); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 18px; border: 1px solid rgba(255,255,255,0.4); font-size: 15px; }
.form-msg--ok { background: rgba(255,255,255,0.08); }
.contact .wpcf7 { flex: 1 1 460px; min-width: 0; }
.contact .wpcf7 input:not([type=submit]), .contact .wpcf7 textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,0.45); background: transparent; color: var(--paper); font-family: inherit; font-size: 17px; }
.contact .wpcf7 input[type=submit] { padding: 16px 34px; background: var(--paper); color: var(--ink); border: 0; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }

/* Contenido de artículos y páginas */
.content-wrap { max-width: 780px; margin: 0 auto; padding-inline: var(--gutter); }
.prose { font-size: 18px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 32px; font-weight: 400; color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 24px; font-weight: 400; color: var(--ink); margin-top: 1.6em; }
.prose h4 { font-size: 19px; font-weight: 500; color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--slate); font-size: 21px; font-weight: 300; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img, .prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--slate); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .alignwide { margin-inline: calc(-1 * min(120px, 8vw)); }
.article-foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags a { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line-2); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line-2); text-decoration: none; font-size: 15px; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.search-form { display: flex; max-width: 520px; }
.search-form input[type=search] { flex: 1; padding: 14px 16px; border: 1px solid var(--line-2); font-family: inherit; font-size: 16px; }
.search-form button, .search-form input[type=submit] { padding: 14px 22px; background: var(--ink); color: var(--paper); border: 0; font-family: inherit; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; cursor: pointer; }

.empty { color: var(--text-3); }

/* Pie */
.site-footer { background: var(--deep); color: rgba(255,255,255,0.75); font-size: 15px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 48px; padding-top: 64px; padding-bottom: 40px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-top img { height: 72px; width: auto; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .label { color: var(--paper); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.libro-rec { display: inline-flex; align-items: center; gap: 8px; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.whatsapp-float:hover { background: var(--slate); color: var(--paper); }

/* Clases de WordPress */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: 14px; color: var(--slate); }
.sticky, .bypostauthor, .gallery-caption { }
