/*
 * Carlos Cagigas: estilos del sitio. Reproduce el tema "PJ" de ThemeREX del WordPress anterior
 * (colores, fuentes y medidas tomados del sitio en producción el 22-oct-2026) sin sus 20 hojas de estilo.
 */

/* ---------- Fuentes (las mismas del tema; Quattrocento Sans y Open Sans vienen de Google) ---------- */
@font-face { font-family: 'Sinkin Sans'; font-weight: 200; font-style: normal; font-display: swap;
    src: url('../fonts/sinkinsans-200xlight.woff2') format('woff2'), url('../fonts/sinkinsans-200xlight.woff') format('woff'); }
@font-face { font-family: 'Sinkin Sans'; font-weight: 300; font-style: normal; font-display: swap;
    src: url('../fonts/sinkinsans-300light.woff2') format('woff2'), url('../fonts/sinkinsans-300light.woff') format('woff'); }
@font-face { font-family: 'Sinkin Sans'; font-weight: 400; font-style: normal; font-display: swap;
    src: url('../fonts/sinkinsans-400regular.woff2') format('woff2'), url('../fonts/sinkinsans-400regular.woff') format('woff'); }
@font-face { font-family: 'Encode Sans'; font-weight: 400; font-style: normal; font-display: swap;
    src: url('../fonts/encodesans-regular.woff2') format('woff2'), url('../fonts/encodesans-regular.woff') format('woff'); }

:root {
    --accent: #f7542b;
    --accent-dark: #d9431d;
    --dark: #1d1d1d;
    --text: #5f5f5f;
    --muted: #909090;
    --on-dark: #bac0c3;
    --light-bg: #f1f5f8;
    --line: #e5e5e5;
    --sans: 'Quattrocento Sans', 'Helvetica Neue', Arial, sans-serif;
    --display: 'Sinkin Sans', 'Helvetica Neue', Arial, sans-serif;
    --header-h: 86px;
    --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: #fff; color: var(--text);
    font: 400 15px/1.87 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--dark); }
strong, b { color: var(--dark); font-weight: 700; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 300; color: var(--dark); line-height: 1.3; }
p { margin: 0 0 1.4em; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--dark); color: #fff; padding: 8px 14px; }
.skip-link:focus { top: 8px; color: #fff; }
.icon { width: 1em; height: 1em; flex: none; }
.container { width: 100%; max-width: calc(1000px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(660px + 2 * var(--gutter)); }
.center { text-align: center; }
.accent { color: var(--accent); }

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: #fff; transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.08); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; flex-direction: column; font-family: 'Encode Sans', var(--sans); line-height: 1.3; }
.logo__name { font-size: 25px; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); }
.logo__slogan { font-size: 13px; letter-spacing: 1px; color: var(--text); }
.logo:hover .logo__name { color: var(--accent); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; }
.site-nav a {
    display: block; padding: 12px 18px;
    font: 400 12px/18px var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--dark);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { position: relative; }
.site-nav > ul > li > a::after {
    content: ''; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 1px;
    background: var(--accent); transform: scaleX(0); transition: transform .25s;
}
.site-nav > ul > li > a:hover::after, .site-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.submenu {
    position: absolute; top: 100%; left: 50%; min-width: 260px; padding: 30px 0 !important;
    background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.1);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-children:hover > .submenu, .has-children:focus-within > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a { padding: 8px 38px; color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 999px) {
    :root { --header-h: 72px; }
    .logo__name { font-size: 20px; letter-spacing: 3px; }
    .nav-toggle {
        display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
        background: none; border: 0; color: var(--dark); font-size: 26px; cursor: pointer;
    }
    .site-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08); padding: 10px 0 20px;
        display: none;
    }
    .no-js .site-nav, .site-nav.is-open { display: block; }
    .no-js .site-nav { position: static; box-shadow: none; }
    .no-js .site-header { height: auto; }
    .no-js .site-header__inner { flex-wrap: wrap; padding-top: 14px; }
    .no-js .nav-toggle { display: none; }
    .site-nav > ul { flex-direction: column; }
    .site-nav a { padding: 12px var(--gutter); }
    .site-nav > ul > li > a::after { display: none; }
    .submenu { position: static; min-width: 0; padding: 0 !important; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .submenu a { padding: 9px calc(var(--gutter) + 20px); }
}

/* ---------- Bloques comunes ---------- */
.section { padding: 100px 0; }
.section--tight { padding: 40px 0 0; }
.section--flush-top { padding-top: 0; }
.band { padding: 95px 0; }
.band--dark { background: var(--dark); color: var(--on-dark); }
.band--dark h2, .band--dark strong { color: #fff; }
.band--light { background: var(--light-bg); padding: 70px 0 90px; }

.display-title { font-weight: 200; font-size: 49px; line-height: 1.3; margin-bottom: 0; }
.band--dark .display-title { color: #fff; }
.caps-title { font-weight: 300; font-size: 28px; line-height: 1.3; letter-spacing: 3px; text-transform: uppercase; color: #fff; margin-bottom: 30px; }
.eyebrow {
    margin: 21px 0 40px; font: 400 14px/1.6 var(--display);
    letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
}
.lead { font: 400 15px/28px var(--display); color: #fff; }
.h3 { font-weight: 300; font-size: 24px; margin: 0 0 22px; }

.page-head { padding: 50px 0 70px; text-align: center; }
.page-head .eyebrow { margin-bottom: 0; }
.page-head__img { margin-top: 50px; }

.cols { display: grid; gap: 40px 30px; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--middle { align-items: center; }
.cols--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 767px) {
    .cols--2, .cols--contact { grid-template-columns: minmax(0, 1fr); }
}

.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.4em 0 .7em; }
.prose > h2:first-child, .prose > h3:first-child, .prose > .h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.4em; padding-left: 1.3em; }
.dash-list, .link-list { list-style: none; padding: 0 !important; margin: 0 0 1.4em; }
.dash-list li::before { content: '-'; margin-right: .35em; }
.link-list li { line-height: 2; }
.shadow-img { margin: 0 0 40px; box-shadow: 0 24px 18px -18px rgba(0,0,0,.45); }
.shadow-img img { width: 100%; }

.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 16px 40px;
    background: var(--accent); color: #fff; border: 0; cursor: pointer;
    font: 700 12px/28px var(--sans); letter-spacing: 3px; text-transform: uppercase;
    transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--dark); color: #fff; }
.band--dark .btn:hover, .sidebar .btn:hover { background: #fff; color: var(--dark); }
.btn .icon { width: 14px; height: 14px; }
.prose + .btn, p + .btn { margin-top: 10px; }

/* Videos: portada + botón; el iframe de YouTube (sin cookies) solo se crea al dar clic. */
.video { position: relative; aspect-ratio: 16 / 9; background: #111; margin-bottom: 40px; overflow: hidden; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video__icon { position: relative; z-index: 1; }
.video__icon .icon { width: 70px; height: 70px; color: var(--accent); transition: transform .2s; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.video__play:hover .video__icon .icon { transform: scale(1.08); }
.video--plain { background: var(--dark); }
.video--plain .video__play { align-content: center; gap: 18px; }
.video__title { order: 2; font: 400 13px/1.4 var(--display); letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.band--light .video { box-shadow: 0 24px 18px -18px rgba(0,0,0,.45); }

/* Carruseles (testimonios y reconocimientos): sin JavaScript se deslizan con el dedo o la barra. */
.slider { position: relative; }
.slider__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    list-style: none; margin: 0; padding: 0; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.slider__dots button {
    width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: #d6d6d6; transition: background-color .2s;
}
.slider__dots button[aria-current="true"] { background: var(--accent); }
.slider--gallery .slider__slide a { display: block; background: var(--light-bg); }
.slider--gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }

/* ---------- Home ---------- */
.hero { position: relative; min-height: min(790px, calc(100vh - var(--header-h))); display: flex; align-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__inner { position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero__title {
    margin: 0 0 50px; font: 400 60px/1.25 'Open Sans', var(--sans); color: #4f4f4f;
}
.hero__title strong { font-weight: 700; color: #424242; }
@media (max-width: 767px) {
    .hero { display: block; min-height: 0; }
    .hero__img { position: static; aspect-ratio: 3 / 2; object-position: 75% center; }
    .hero__inner { padding-top: 30px; padding-bottom: 50px; }
    .hero__title { font-size: 36px; margin-bottom: 30px; }
}

.services .display-title { margin-bottom: 60px; }
.services__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; list-style: none; margin: 0; padding: 0; text-align: center; }
.services__list a { display: flex; flex-direction: column; align-items: center; gap: 22px; color: var(--dark); font: 400 15px/24px var(--display); }
.services__list .icon { width: 77px; height: 77px; color: var(--accent); transition: transform .25s; }
.services__list a:hover { color: var(--accent); }
.services__list a:hover .icon { transform: translateY(-4px); }
@media (max-width: 767px) { .services__list { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }

.promo .display-title { margin-bottom: 0; }
.band--dark .promo p { color: var(--on-dark); }
.band--dark .promo .lead { color: #fff; }

.testimonials .display-title { margin-bottom: 20px; }
.testimonial { text-align: center; padding: 0 10px; }
.testimonial > .icon { width: 28px; height: 28px; color: var(--accent); margin: 0 auto 20px; }
.testimonial blockquote { margin: 0 0 40px; font: 400 15px/30px var(--display); color: var(--text); }
.testimonial blockquote p { margin: 0 0 .8em; }
.testimonial__author {
    display: inline-flex; align-items: center; gap: 22px; padding: 22px 34px 22px 22px;
    background: var(--dark); text-align: left; max-width: 100%;
}
.testimonial__author img { width: 75px; height: 75px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial__author p { margin: 0; display: flex; flex-direction: column; }
.testimonial__author strong { font: 400 15px/24px var(--display); color: #fff; }
.testimonial__author span { font-size: 13px; line-height: 1.3; color: #ddd; margin-top: 6px; }

.contact-block { margin: 30px 0 0; }
.contact-block strong { text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.band--dark .contact-block a { color: var(--accent); }
.band--dark .contact-block a:hover { color: #fff; }
.cols--contact .contact-block { text-align: right; margin-top: 0; }

/* ---------- Sobre mí ---------- */
.about__grid { display: grid; grid-template-columns: 47% 49%; gap: 4%; align-items: center; }
.about__photo img { width: 100%; max-width: 470px; margin: 0 auto; }
.about .promo { padding: 6em 0; }
.about .prose { margin-bottom: 40px; }
.brand-logos { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; list-style: none; }
.brand-logos img { width: 200px; height: 200px; object-fit: contain; }
@media (max-width: 767px) {
    .about__grid { grid-template-columns: minmax(0, 1fr); }
    .about .promo { padding: 0; }
    .about__photo img { max-width: 300px; }
}

/* ---------- Formulario ---------- */
.form-field { margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
    display: block; width: 100%; padding: 14px 18px; border: 1px solid transparent; border-radius: 0;
    font: 400 15px/1.5 var(--sans); color: var(--dark); background: var(--light-bg);
    transition: border-color .2s, background-color .2s;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.contact-form [aria-invalid="true"] { border-color: #d93025; }
.contact-form--dark input, .contact-form--dark textarea { background: #2a2a2a; color: #fff; }
.contact-form--dark input:focus, .contact-form--dark textarea:focus { background: #333; }
.contact-form .btn { margin-top: 8px; }
.form-error { color: #d93025; font-size: 13px; line-height: 1.4; margin: 6px 0 0; }
.contact-form--dark .form-error { color: #ff8a7a; }
.form-status { padding: 14px 18px; margin-bottom: 18px; font-weight: 700; line-height: 1.5; }
.form-status--success { background: #e9f5ec; color: #1e5c2d; border-left: 3px solid #1e5c2d; }
.form-status--error { background: #fdecee; color: #8a1020; border-left: 3px solid #d93025; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Blog ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 660px) 300px; justify-content: space-between; gap: 40px; align-items: start; }
.blog-layout > .post { padding-top: 40px; }
@media (max-width: 999px) { .blog-layout { grid-template-columns: minmax(0, 1fr); } }

.post-card { padding-bottom: 60px; margin-bottom: 60px; border-bottom: 1px solid var(--line); }
.post-card:last-child { border-bottom: 0; margin-bottom: 0; }
.post-card__img, .post__featured { display: block; margin-bottom: 39px; }
.post-card__img img, .post__featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post__title { font-weight: 300; font-size: 28px; line-height: 1.6; letter-spacing: 3px; text-transform: uppercase; color: var(--dark); }
.post__title a { color: inherit; }
.post__title a:hover { color: var(--accent); }
.post__meta { margin: 5px 0 30px; font-size: 13px; color: var(--text); }
.post__cats { color: var(--accent); }
.post__meta .post__cats::after { content: '|'; margin: 0 12px; color: var(--line); }
.post__header { margin-bottom: 10px; }
@media (max-width: 600px) { .post__title { font-size: 22px; letter-spacing: 2px; } }

.post__body blockquote {
    margin: 0 0 36px; padding: 60px 19%; background: var(--light-bg);
    font: 400 15px/30px var(--display); color: var(--dark);
}
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body .callout { margin: 0 0 40px; padding: 20px 30px; background: #313131; color: #ff6900; font-size: 36px; line-height: 1.3; text-align: center; }
.post-figure { margin: 0 0 40px; }
.post-figure img { width: 100%; }
.post-figure figcaption { font-size: 13px; line-height: 1.3; padding: 7px 13px; background: var(--light-bg); }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 30px 0 0; padding: 0; }
.post__tags li { padding: 4px 10px; background: var(--dark); color: #fff; font-size: 11px; line-height: 1.6; letter-spacing: 1px; text-transform: uppercase; }
@media (max-width: 600px) { .post__body blockquote { padding: 30px 24px; } .post__body .callout { font-size: 26px; } }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 80px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-nav a { display: flex; flex-direction: column; color: var(--dark); font: 400 14px/1.5 var(--display); }
.post-nav a:hover { color: var(--accent); }
.post-nav span { font: 700 11px/2 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.post-nav__next { grid-column: 2; text-align: right; }

.related { margin-top: 70px; }
.related__title { font: 400 14px/1.6 var(--display); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px; }
.related__list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; list-style: none; margin: 0; padding: 0; }
.related__list a { display: flex; flex-direction: column; gap: 6px; color: var(--dark); font-size: 13px; }
.related__list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 10px; }
.related__list strong { font: 300 16px/1.5 var(--display); letter-spacing: 1px; text-transform: uppercase; }
.related__list a:hover strong { color: var(--accent); }
.related__list time { color: var(--text); }
@media (max-width: 600px) { .related__list, .post-nav { grid-template-columns: 1fr; } .post-nav__next { grid-column: auto; } }

.sidebar { background: var(--dark); color: var(--on-dark); margin-top: 40px; }
.widget { padding: 49px; }
.widget + .widget { border-top: 1px solid #2c2c2c; }
.widget__title { font: 400 14px/1.6 var(--display); letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 30px; }
.widget__list { list-style: none; margin: 0; padding: 0; }
.widget__list li { position: relative; padding-left: 18px; margin-bottom: 12px; line-height: 1.6; }
.widget__list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; background: var(--accent); }
.widget__list a { color: var(--muted); }
.widget__list a:hover, .widget__list a[aria-current="page"] { color: #fff; }
.widget__date { display: block; font-size: 12px; color: #6f6f6f; }
.widget p { margin-bottom: 24px; }
.widget .btn { padding: 12px 22px; letter-spacing: 2px; white-space: nowrap; }
@media (max-width: 999px) { .sidebar { margin: 0 0 60px; } }

/* ---------- Pie ---------- */
.site-footer { margin-top: 120px; padding: 42px 0; background: var(--dark); color: var(--muted); text-align: center; }
.site-footer__copy { margin: 0 0 18px; font-size: 14px; }
.social { display: flex; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; background: var(--accent); color: #fff; transition: background-color .2s, color .2s; }
.social a:hover { background: #fff; color: var(--dark); }
.social .icon { width: 16px; height: 16px; }
main:has(> .band--dark:last-child) + .site-footer { margin-top: 0; border-top: 1px solid #2c2c2c; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 42px; height: 42px;
    display: grid; place-items: center; background: var(--accent); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background-color .2s;
}
.to-top.is-visible, .no-js .to-top { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--dark); color: #fff; }
.to-top .icon { width: 18px; height: 18px; }

/* ---------- Visor de imágenes ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; margin: 0; }
.lightbox button {
    position: fixed; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
    background: rgba(255,255,255,.1); color: #fff; border: 0;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .icon { width: 24px; height: 24px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox img { max-width: 100vw; } .lightbox__prev, .lightbox__next { top: auto; bottom: 50px; transform: none; } }

/* ---------- Celular ---------- */
@media (max-width: 767px) {
    .section { padding: 60px 0; }
    .band { padding: 60px 0; }
    .band--light { padding: 50px 0 60px; }
    .page-head { padding: 36px 0 44px; }
    .display-title { font-size: 34px; }
    .caps-title { font-size: 22px; letter-spacing: 2px; }
    .site-footer { margin-top: 70px; }
    .widget { padding: 36px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
