/* =============================================================
   Proyectos Trexa · style.css
   Construcción y mantenimiento — Panamá.
   Diseño limpio, serio y moderno sobre la paleta de marca.
   ============================================================= */

/* --- Tokens de marca ---------------------------------------- */
:root {
    /* Paleta de marca */
    --tx-crimson:   #BE0027;   /* rojo carmesí (primario) */
    --tx-orange:    #F47200;   /* naranja (secundario)    */
    --tx-ink:       #14161F;   /* azul noche / casi negro */
    --tx-ink-2:     #1E212E;   /* superficie oscura 2     */
    --tx-slate:     #4A4A4A;   /* gris carbón (texto)     */
    --tx-muted:     #7A7E89;   /* gris medio              */
    --tx-line:      #E7E7EA;   /* bordes suaves           */
    --tx-light:     #F7F7F9;   /* fondo claro             */
    --tx-cream:     #FAF9F7;   /* crema                   */
    --tx-white:     #FFFFFF;

    /* Gradiente firma */
    --tx-grad: linear-gradient(120deg, var(--tx-crimson) 0%, var(--tx-orange) 100%);

    /* Sombras */
    --tx-shadow-sm: 0 4px 16px rgba(20, 22, 31, 0.06);
    --tx-shadow-md: 0 14px 38px rgba(20, 22, 31, 0.10);
    --tx-shadow-lg: 0 28px 64px rgba(20, 22, 31, 0.16);
    --tx-shadow-brand: 0 16px 34px rgba(190, 0, 39, 0.26);

    /* Tipografía */
    --tx-font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tx-font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Radii */
    --tx-radius-sm: 10px;
    --tx-radius-md: 16px;
    --tx-radius-lg: 24px;
    --tx-radius-pill: 999px;
}

/* --- Reset mínimo ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--tx-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--tx-slate);
    background: var(--tx-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 { font-family: var(--tx-font-display); color: var(--tx-ink); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
video, iframe, svg, picture { max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }

.container, .container-fluid, .container-sm, .container-md,
.container-lg, .container-xl, .container-xxl { max-width: 100%; }
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1160px; } }
@media (min-width: 1400px) { .container { max-width: 1280px; } }

section[id] { scroll-margin-top: 80px; }
@media (min-width: 992px) { section[id] { scroll-margin-top: 116px; } }
#hero { scroll-margin-top: 0; }

.grad {
    background: var(--tx-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* --- Encabezado de sección genérico ------------------------ */
.section-head { max-width: 760px; margin: 0 auto 3rem; }
.section-head__eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--tx-font-display);
    font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--tx-crimson); margin: 0 0 .85rem;
}
.section-head__eyebrow::before,
.section-head__eyebrow::after {
    content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--tx-grad);
}
.section-head__eyebrow::after { display: none; }
.section-head__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; margin: 0; letter-spacing: -.02em; }
.section-head__description { margin: 1rem 0 0; color: var(--tx-muted); font-size: 1.05rem; }

/* --- Botones ----------------------------------------------- */
.btn-tx {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 1.7rem; border-radius: var(--tx-radius-pill);
    font-family: var(--tx-font-display); font-weight: 700; font-size: .98rem;
    border: 2px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-tx i { font-size: 1.2rem; transition: transform .25s ease; }
.btn-tx--primary { background: var(--tx-grad); color: var(--tx-white); box-shadow: var(--tx-shadow-brand); }
.btn-tx--primary:hover { transform: translateY(-2px); color: var(--tx-white); box-shadow: 0 22px 44px rgba(190,0,39,.34); }
.btn-tx--primary:hover i { transform: translateX(4px); }
.btn-tx--ghost { background: transparent; color: var(--tx-white); border-color: rgba(255,255,255,.45); }
.btn-tx--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--tx-white); color: var(--tx-white); transform: translateY(-2px); }

/* =============================================================
   TOPBAR
   ============================================================= */
#topbar {
    height: 42px;
    background: var(--tx-ink);
    color: rgba(255,255,255,.82);
    font-size: .85rem;
    z-index: 1031;
    transition: opacity .3s ease, transform .3s ease;
}
#topbar.topbar-scrolled { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.topbar__contact { display: flex; gap: 1.6rem; align-items: center; }
.topbar__link { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.82); transition: color .2s ease; }
.topbar__link:hover { color: var(--tx-white); }
.topbar__link i { font-size: 1.05rem; color: var(--tx-orange); }
.topbar__link--soft { color: rgba(255,255,255,.6); }
.topbar__socials { display: flex; gap: .55rem; align-items: center; }
.topbar__social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: var(--tx-white); transition: background .2s ease, transform .2s ease;
}
.topbar__social:hover { background: var(--tx-grad); transform: translateY(-1px); }
.topbar__social i { font-size: 1rem; }

/* =============================================================
   NAVBAR
   ============================================================= */
#header {
    top: 42px;
    background: transparent;
    transition: background .3s ease, top .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: .35rem 0;
}
#header.header-scrolled {
    top: 0;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 26px rgba(20,22,31,.08);
}
@media (max-width: 991.98px) { #header { top: 0; background: rgba(20,22,31,.0); } }

.navbar-tx { padding-top: .5rem; padding-bottom: .5rem; }
.navbar-tx .navbar-brand { display: inline-flex; align-items: center; gap: .6rem; padding: .2rem 0; }
.navbar-brand__logo { height: 44px; width: auto; transition: filter .3s ease; }
/* Sobre el hero oscuro el wordmark (texto oscuro) se vuelve blanco; al hacer scroll recupera color */
#header:not(.header-scrolled) .navbar-brand__logo { filter: brightness(0) invert(1); }

.tx-emblem {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; background: var(--tx-grad); color: #fff;
    font-family: var(--tx-font-display); font-weight: 800;
}
.navbar-brand__lockup { font-family: var(--tx-font-display); font-weight: 800; font-size: 1.15rem; color: var(--tx-ink); }
#header:not(.header-scrolled) .navbar-brand__lockup { color: #fff; }

.navbar-tx .navbar-nav { gap: .15rem; }
.navbar-tx .nav-link {
    font-family: var(--tx-font-display); font-weight: 600; font-size: .96rem;
    color: var(--tx-ink); padding: .5rem .95rem; border-radius: var(--tx-radius-pill);
    position: relative; transition: color .2s ease, background .2s ease;
}
#header:not(.header-scrolled) .navbar-tx .nav-link { color: rgba(255,255,255,.9); }
.navbar-tx .nav-link:hover,
.navbar-tx .nav-item.active > .nav-link,
.navbar-tx .nav-link.active { color: var(--tx-crimson); }
#header:not(.header-scrolled) .navbar-tx .nav-link:hover,
#header:not(.header-scrolled) .navbar-tx .nav-link.active { color: var(--tx-white); background: rgba(255,255,255,.12); }

/* CTA en navbar */
.nav-link--cta, .navbar-tx .nav-link--cta {
    background: var(--tx-grad); color: #fff !important; padding: .55rem 1.3rem !important;
    box-shadow: var(--tx-shadow-brand);
}
.nav-link--cta:hover { transform: translateY(-1px); color: #fff !important; }
.nav-item--cta { margin-left: .4rem; }

.navbar-toggler { border: none; font-size: 1.7rem; color: var(--tx-ink); padding: .25rem .4rem; box-shadow: none !important; }
#header:not(.header-scrolled) .navbar-toggler { color: #fff; }
.navbar-toggler:focus { outline: none; }

@media (max-width: 991.98px) {
    .navbar-tx .navbar-collapse {
        background: var(--tx-white); margin-top: .6rem; border-radius: var(--tx-radius-md);
        padding: .6rem; box-shadow: var(--tx-shadow-md);
    }
    .navbar-tx .nav-link, #header:not(.header-scrolled) .navbar-tx .nav-link { color: var(--tx-ink); }
    #header:not(.header-scrolled) .navbar-tx .nav-link:hover { background: var(--tx-light); color: var(--tx-crimson); }
    .nav-item--cta { margin: .4rem 0 0; }
    .nav-link--cta { display: block; text-align: center; }
}

/* =============================================================
   HERO
   ============================================================= */
#hero {
    display: flex; align-items: center;
    background: radial-gradient(120% 120% at 80% 0%, #232734 0%, var(--tx-ink) 55%, #0E0F16 100%);
    color: #fff; padding: 7rem 0 4rem;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(110% 80% at 70% 10%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(110% 80% at 70% 10%, #000 30%, transparent 75%);
}
.hero-aurora { position: absolute; inset: 0; overflow: hidden; }
.hero-aurora__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.hero-aurora__blob--crimson { width: 460px; height: 460px; background: var(--tx-crimson); top: -120px; right: -80px; }
.hero-aurora__blob--orange { width: 380px; height: 380px; background: var(--tx-orange); bottom: -140px; left: -60px; opacity: .35; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,15,22,0) 60%, rgba(14,15,22,.6) 100%); }

.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 760px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--tx-font-display); font-weight: 600; font-size: .82rem;
    letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    padding: .5rem 1rem; border-radius: var(--tx-radius-pill); margin: 0 0 1.6rem;
}
.hero-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tx-grad); box-shadow: 0 0 0 4px rgba(244,114,0,.18); }
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.03em; color: #fff; margin: 0 0 1.3rem; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.78); max-width: 620px; margin: 0 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
    display: flex; flex-wrap: wrap; gap: 2.4rem; margin: 3.2rem 0 0;
    padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat__value { font-family: var(--tx-font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; line-height: 1; }
.hero-stat__label { font-size: .9rem; color: rgba(255,255,255,.62); margin-top: .35rem; }

.hero-scroll {
    position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2;
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
    animation: tx-bounce 2s infinite; transition: background .2s ease;
}
.hero-scroll:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-scroll i { font-size: 1.5rem; }
@keyframes tx-bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* =============================================================
   STATS BAND
   ============================================================= */
.stats { padding: 0; margin-top: -3.5rem; position: relative; z-index: 5; }
.stats__band {
    background: var(--tx-white); border-radius: var(--tx-radius-lg);
    box-shadow: var(--tx-shadow-lg); padding: 2.6rem clamp(1.4rem, 4vw, 3.2rem);
    border: 1px solid var(--tx-line);
}
.stats__intro { text-align: center; color: var(--tx-muted); max-width: 760px; margin: 0 auto 2.2rem; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stats__item {
    text-align: center; padding: 1.4rem 1rem; border-radius: var(--tx-radius-md);
    background: var(--tx-cream); border: 1px solid var(--tx-line); transition: transform .3s ease, box-shadow .3s ease;
}
.stats__item:hover { transform: translateY(-4px); box-shadow: var(--tx-shadow-md); }
.stats__value { display: block; font-family: var(--tx-font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; background: var(--tx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats__label { display: block; font-family: var(--tx-font-display); font-weight: 700; color: var(--tx-ink); margin: .6rem 0 .35rem; font-size: 1.05rem; }
.stats__desc { display: block; font-size: .9rem; color: var(--tx-muted); }
@media (max-width: 767.98px) { .stats__grid { grid-template-columns: 1fr; } }

/* =============================================================
   ABOUT
   ============================================================= */
.about { padding: 6rem 0; }
.about__figure { margin: 0; border-radius: var(--tx-radius-lg); overflow: hidden; box-shadow: var(--tx-shadow-md); height: 100%; }
.about__figure img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.about__artwork {
    position: relative; height: 100%; min-height: 360px; border-radius: var(--tx-radius-lg);
    background: radial-gradient(120% 120% at 20% 10%, #232734 0%, var(--tx-ink) 100%);
    overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 2rem;
}
.about__art-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: var(--tx-grad); filter: blur(70px); opacity: .4; top: -40px; right: -40px; }
.about__art-tile {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
    border-radius: var(--tx-radius-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    color: #fff; font-size: 2.6rem;
}
.about__art-tile--2, .about__art-tile--3 { color: var(--tx-orange); }
.about__art-tile i { filter: drop-shadow(0 6px 14px rgba(0,0,0,.3)); }

.about__pillars { display: flex; flex-direction: column; gap: 1.1rem; }
.pillar-card {
    display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem;
    background: var(--tx-white); border: 1px solid var(--tx-line); border-radius: var(--tx-radius-md);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pillar-card:hover { transform: translateX(4px); box-shadow: var(--tx-shadow-md); border-color: transparent; }
.pillar-card__icon {
    flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(190,0,39,.08); color: var(--tx-crimson); font-size: 1.7rem;
}
.pillar-card:hover .pillar-card__icon { background: var(--tx-grad); color: #fff; }
.pillar-card__title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem; }
.pillar-card__description { margin: 0; color: var(--tx-muted); font-size: .96rem; }

.about__values {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 3rem;
}
.about__value {
    display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.3rem;
    background: var(--tx-light); border: 1px solid var(--tx-line); border-radius: var(--tx-radius-pill);
    font-family: var(--tx-font-display); font-weight: 600; color: var(--tx-ink); font-size: .95rem;
}
.about__value i { font-size: 1.25rem; color: var(--tx-orange); }

/* =============================================================
   SERVICES
   ============================================================= */
.services { padding: 6rem 0; background: var(--tx-cream); }
.services__areas { margin-bottom: 3.5rem; }
.area-card {
    position: relative; height: 100%; padding: 2.4rem; border-radius: var(--tx-radius-lg);
    background: var(--tx-white); border: 1px solid var(--tx-line); overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.area-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--tx-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.area-card:hover { transform: translateY(-6px); box-shadow: var(--tx-shadow-lg); }
.area-card:hover::before { transform: scaleX(1); }
.area-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 18px; background: var(--tx-grad); color: #fff;
    font-size: 2rem; margin-bottom: 1.3rem; box-shadow: var(--tx-shadow-brand);
}
.area-card__title { font-size: 1.4rem; font-weight: 800; margin: 0 0 .7rem; }
.area-card__description { color: var(--tx-muted); margin: 0 0 1.4rem; }
.area-card__cta { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--tx-font-display); font-weight: 700; color: var(--tx-crimson); }
.area-card__cta i { transition: transform .25s ease; }
.area-card__cta:hover { color: var(--tx-orange); }
.area-card__cta:hover i { transform: translateX(4px); }

.services__catalog { margin-top: 1rem; }
.services__catalog-title { text-align: center; font-family: var(--tx-font-display); font-weight: 800; font-size: 1.5rem; color: var(--tx-ink); margin: 0 0 1.6rem; }
.services__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 0 2.2rem; }
.services__filter {
    display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
    padding: .6rem 1.2rem; border-radius: var(--tx-radius-pill);
    background: var(--tx-white); border: 1px solid var(--tx-line);
    font-family: var(--tx-font-display); font-weight: 600; font-size: .9rem; color: var(--tx-slate);
    transition: all .25s ease;
}
.services__filter i { font-size: 1.1rem; }
.services__filter:hover { border-color: var(--tx-crimson); color: var(--tx-crimson); }
.services__filter.is-active { background: var(--tx-grad); color: #fff; border-color: transparent; box-shadow: var(--tx-shadow-brand); }

.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.service-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem;
    background: var(--tx-white); border: 1px solid var(--tx-line); border-radius: var(--tx-radius-md);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .28s ease;
}
.service-card.is-leaving { opacity: 0; transform: scale(.96); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--tx-shadow-md); border-color: transparent; }
.service-card__icon {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(244,114,0,.1); color: var(--tx-orange); font-size: 1.5rem; transition: all .3s ease;
}
.service-card:hover .service-card__icon { background: var(--tx-grad); color: #fff; }
.service-card__name { font-size: 1rem; font-weight: 600; font-family: var(--tx-font-body); color: var(--tx-ink); margin: 0; }
.services__empty { text-align: center; color: var(--tx-muted); padding: 2rem 0; }
@media (max-width: 991.98px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .services__grid { grid-template-columns: 1fr; } }

/* =============================================================
   PROJECTS (galería)
   ============================================================= */
.projects { padding: 6rem 0; background: var(--tx-white); }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project-card {
    position: relative; border-radius: var(--tx-radius-lg); overflow: hidden;
    box-shadow: var(--tx-shadow-sm); background: var(--tx-ink);
    transition: transform .35s ease, box-shadow .35s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--tx-shadow-lg); }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-card__media img { transform: scale(1.08); }

.project-card__chip {
    position: absolute; top: .85rem; left: .85rem; z-index: 2;
    background: var(--tx-grad); color: #fff; font-family: var(--tx-font-display);
    font-weight: 600; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase;
    padding: .35rem .75rem; border-radius: var(--tx-radius-pill); box-shadow: var(--tx-shadow-brand);
}
.project-card__zoom {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.8); z-index: 2;
    width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.92); color: var(--tx-crimson); font-size: 1.6rem;
    opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.project-card:hover .project-card__zoom { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.project-card__caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.4rem 1.2rem 1.1rem;
    background: linear-gradient(to top, rgba(14,15,22,.92) 0%, rgba(14,15,22,.55) 55%, transparent 100%);
    color: #fff;
}
.project-card__title { color: #fff; font-size: 1.08rem; font-weight: 700; margin: 0; line-height: 1.25; }
.project-card__location { display: flex; align-items: center; gap: .3rem; margin: .35rem 0 0; font-size: .85rem; color: rgba(255,255,255,.78); }
.project-card__location i { color: var(--tx-orange); }

/* Ítems extra ocultos hasta "Ver más" */
.project-card--extra { display: none; }
.projects__grid.is-expanded .project-card--extra { display: block; animation: tx-fade-up .5s ease both; }
@keyframes tx-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.projects__actions { text-align: center; margin-top: 2.8rem; }
.btn-tx--outline { background: var(--tx-white); color: var(--tx-ink); border-color: var(--tx-line); }
.btn-tx--outline:hover { background: var(--tx-grad); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: var(--tx-shadow-brand); }
.projects__more-icon { transition: transform .3s ease; }
.projects__more.is-open .projects__more-icon { transform: rotate(180deg); }

@media (max-width: 991.98px) { .projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .projects__grid { grid-template-columns: 1fr; } }

/* =============================================================
   TEAM
   ============================================================= */
.team { padding: 6rem 0; background: var(--tx-cream); }
.team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; max-width: 880px; margin: 0 auto; }
.team-card {
    display: flex; gap: 1.3rem; align-items: center; padding: 1.8rem;
    background: var(--tx-white); border: 1px solid var(--tx-line); border-radius: var(--tx-radius-lg);
    transition: transform .3s ease, box-shadow .3s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--tx-shadow-lg); }
.team-card__avatar {
    flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tx-grad); color: #fff;
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.team-card__initials { font-family: var(--tx-font-display); font-weight: 800; font-size: 1.8rem; }
.team-card__name { font-size: 1.25rem; font-weight: 800; margin: 0; }
.team-card__role { font-family: var(--tx-font-display); font-weight: 600; color: var(--tx-crimson); margin: .2rem 0 .5rem; font-size: .95rem; }
.team-card__bio { margin: 0; color: var(--tx-muted); font-size: .95rem; }
@media (max-width: 767.98px) { .team__grid { grid-template-columns: 1fr; } .team-card { flex-direction: column; text-align: center; } }

/* =============================================================
   CONTACT
   ============================================================= */
.contact { padding: 6rem 0; background: var(--tx-white); }
.contact__panel-card {
    height: 100%; padding: 2.4rem; border-radius: var(--tx-radius-lg); color: #fff;
    background: radial-gradient(120% 120% at 100% 0%, #232734 0%, var(--tx-ink) 100%);
    position: relative; overflow: hidden;
}
.contact__panel-card::before { content:""; position:absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--tx-grad); filter: blur(70px); opacity:.35; top:-60px; right:-60px; }
.contact__panel-title { position: relative; font-family: var(--tx-font-display); font-weight: 800; font-size: 1.5rem; margin: 0 0 .5rem; }
.contact__panel-subtitle { position: relative; color: rgba(255,255,255,.74); margin: 0 0 1.8rem; }
.contact__cta-wa {
    position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; margin-bottom: 1.8rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--tx-radius-md); color: #fff;
    transition: background .25s ease, transform .25s ease;
}
.contact__cta-wa:hover { background: rgba(37,211,102,.16); transform: translateY(-2px); color: #fff; }
.contact__cta-wa > i:first-child { font-size: 2rem; color: #25D366; }
.contact__cta-wa span { display: flex; flex-direction: column; line-height: 1.2; }
.contact__cta-wa small { color: rgba(255,255,255,.7); }
.contact__cta-wa-arrow { margin-left: auto; font-size: 1.4rem; }

.contact__info { position: relative; display: flex; flex-direction: column; gap: 1.2rem; margin: 0 0 1.8rem; }
.contact__info-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact__info-item > i { font-size: 1.35rem; color: var(--tx-orange); margin-top: .15rem; }
.contact__info-label { font-family: var(--tx-font-display); font-weight: 700; font-size: .85rem; color: rgba(255,255,255,.6); margin: 0 0 .2rem; text-transform: uppercase; letter-spacing: .05em; }
.contact__info-value { display: block; color: #fff; }
.contact__info-value small { color: rgba(255,255,255,.55); }
a.contact__info-value:hover { color: var(--tx-orange); }
.contact__socials { position: relative; display: flex; gap: .6rem; }
.contact__social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 1.3rem; transition: background .25s ease, transform .25s ease; }
.contact__social:hover { background: var(--tx-grad); transform: translateY(-2px); color: #fff; }

.contact__form-wrap { }
.contact__form { background: var(--tx-white); border: 1px solid var(--tx-line); border-radius: var(--tx-radius-lg); padding: 2.2rem; box-shadow: var(--tx-shadow-sm); }
.contact__form .form-control { border-radius: var(--tx-radius-sm); border: 1px solid var(--tx-line); }
.contact__form .form-control:focus { border-color: var(--tx-crimson); box-shadow: 0 0 0 .2rem rgba(190,0,39,.12); }
.contact__form .form-floating > label { color: var(--tx-muted); }
.contact__textarea { min-height: 140px; }
.contact__form-status { margin-bottom: 1rem; }
.contact__form-status .loading,
.contact__form-status .error-message,
.contact__form-status .sent-message { display: none; padding: .85rem 1rem; border-radius: var(--tx-radius-sm); font-size: .95rem; }
.contact__form-status .loading { display: none; background: var(--tx-light); color: var(--tx-slate); }
.contact__form-status .loading.d-block,
.php-email-form .loading.d-block { display: block !important; }
.contact__form-status .error-message { background: #fdecec; color: #c0271f; }
.contact__form-status .sent-message { background: #e8f7ee; color: #1c7a43; }
.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message { display: none; }
.php-email-form .loading:not(:empty),
.php-email-form .error-message:not(:empty),
.php-email-form .sent-message.d-block { display: block; }
.contact__form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.contact__form-hint { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .82rem; color: var(--tx-muted); }
.contact__form-hint i { color: var(--tx-orange); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { position: relative; background: var(--tx-ink); color: rgba(255,255,255,.72); padding: 4.5rem 0 1.8rem; overflow: hidden; }
.footer__bg { position: absolute; inset: 0; background: radial-gradient(80% 120% at 90% 0%, rgba(190,0,39,.16) 0%, transparent 55%); }
.footer .container { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.2rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand-logo { filter: brightness(0) invert(1); margin-bottom: 1.1rem; }
.footer__brand { font-family: var(--tx-font-display); font-weight: 800; font-size: 1.3rem; color: #fff; margin: 0 0 1rem; }
.footer__description { font-size: .95rem; margin: 0 0 1.3rem; max-width: 320px; }
.footer__socials { display: flex; gap: .6rem; }
.footer__social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; font-size: 1.25rem; transition: background .25s ease, transform .25s ease; }
.footer__social:hover { background: var(--tx-grad); transform: translateY(-2px); color: #fff; }
.footer__col-title { font-family: var(--tx-font-display); font-weight: 700; color: #fff; font-size: 1.02rem; margin: 0 0 1.1rem; }
.footer__nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav-link { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.72); transition: color .2s ease, transform .2s ease; }
.footer__nav-link i { color: var(--tx-orange); }
.footer__nav-link:hover { color: #fff; transform: translateX(3px); }
.footer__contact { display: flex; flex-direction: column; gap: .8rem; }
.footer__contact-item { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.footer__contact-item i { color: var(--tx-orange); font-size: 1.15rem; margin-top: .1rem; }
.footer__contact-item a:hover { color: #fff; }
.footer__bottom { padding-top: 1.6rem; }
.footer__copy { font-size: .88rem; margin: 0; color: rgba(255,255,255,.6); }
.footer__dev-link { color: rgba(255,255,255,.85); }
.footer__dev-link:hover { color: var(--tx-orange); }
.footer__recaptcha-notice { margin: .8rem 0 0; color: rgba(255,255,255,.45); }
.footer__recaptcha-notice a { color: rgba(255,255,255,.65); text-decoration: underline; }
@media (max-width: 991.98px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .footer__grid { grid-template-columns: 1fr; } }

/* =============================================================
   WHATSAPP FLOAT
   ============================================================= */
.whatsapp-float {
    position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 1040;
    display: inline-flex; align-items: center; gap: .6rem;
    background: #25D366; color: #fff; padding: .8rem 1.1rem; border-radius: var(--tx-radius-pill);
    box-shadow: 0 12px 30px rgba(37,211,102,.4); font-family: var(--tx-font-display); font-weight: 700;
    transition: transform .25s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); color: #fff; }
.whatsapp-float__icon { font-size: 1.6rem; }
.whatsapp-float__pulse { position: absolute; inset: 0; border-radius: var(--tx-radius-pill); background: #25D366; opacity: .5; animation: tx-pulse 2.2s infinite; z-index: -1; }
@keyframes tx-pulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 575.98px) { .whatsapp-float__label { display: none; } .whatsapp-float { padding: .9rem; } }

/* =============================================================
   PRELOADER
   ============================================================= */
.preloader { position: fixed; inset: 0; z-index: 2000; background: var(--tx-white); display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s ease; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__center { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.preloader__logo { width: 96px; height: 96px; object-fit: contain; animation: tx-pop .8s ease; }
.tx-emblem--loader { width: 80px; height: 80px; border-radius: 20px; font-size: 1.8rem; }
.preloader__lockup { font-family: var(--tx-font-display); font-weight: 800; color: var(--tx-ink); }
.preloader__bar { width: 160px; height: 4px; border-radius: 4px; background: var(--tx-line); overflow: hidden; }
.preloader__bar-fill { display: block; width: 40%; height: 100%; background: var(--tx-grad); border-radius: 4px; animation: tx-load 1.1s ease-in-out infinite; }
@keyframes tx-load { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes tx-pop { 0% { transform: scale(.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* =============================================================
   LIGHTBOX
   ============================================================= */
.img-modal { position: fixed; inset: 0; z-index: 2100; background: rgba(14,15,22,.92); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.img-modal[hidden] { display: none; }
.img-modal__img { max-width: 92vw; max-height: 88vh; border-radius: var(--tx-radius-md); box-shadow: var(--tx-shadow-lg); animation: tx-pop .3s ease; }
.img-modal__close { position: absolute; top: 1.2rem; right: 1.4rem; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; cursor: pointer; transition: background .2s ease; }
.img-modal__close:hover { background: var(--tx-grad); }

/* --- Accesibilidad: respeta reduce-motion ------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
