/* Secciones propias de tanerf.com (cifras, proyectos, proceso, página de proyectos).
   Siguen los estilos del tema: Poppins 700 en títulos, Arial en texto, dorado #D3980F y azul #0C243B. */
:root {
  --tnf-navy: #0C243B;
  --tnf-navy-2: #0E2557;
  --tnf-title: #060E62;
  --tnf-gold: #D3980F;
  --tnf-ink: #141414;
  --tnf-muted: #5B6372;
  --tnf-soft: #F4F5F8;
  --tnf-line: #E3E6EC;
}

.tnf-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.tnf-sec { padding: 80px 0; font-family: Arial, Helvetica, sans-serif; color: var(--tnf-ink); }
.tnf-head { display: grid; justify-items: center; gap: 16px; text-align: center; margin-bottom: 44px; }
.tnf-pill { display: inline-block; background: var(--tnf-gold); color: #fff; font: 700 13px/1 "Poppins", Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; padding: 10px 20px; border-radius: 25px; }
.tnf-h2 { margin: 0; font: 700 clamp(28px, 4vw, 42px)/1.1 "Poppins", Arial, sans-serif; color: var(--tnf-title); text-transform: uppercase; text-wrap: balance; }
.tnf-lead { margin: 0; max-width: 680px; font-size: 15px; line-height: 1.6; }
.tnf-btn { display: inline-block; background: var(--tnf-gold); color: #fff !important; font: 700 12px/1.7 Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; padding: 10px 24px; border-radius: 25px; text-decoration: none; transition: background .2s; }
.tnf-btn:hover, .tnf-btn:focus-visible { background: var(--tnf-navy-2); }
.tnf-center { text-align: center; margin-top: 40px; }

/* Cifras */
.tnf-stats { background: #fff; padding: 56px 0; }
.tnf-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.tnf-stats li { display: grid; grid-template-rows: auto 1fr; gap: 8px; align-content: start; text-align: center; padding: 0 8px; border-left: 1px solid var(--tnf-line); }
.tnf-stats li:first-child { border-left: 0; }
.tnf-stats b { font: 700 clamp(24px, 2.6vw, 34px)/1.1 "Poppins", Arial, sans-serif; color: var(--tnf-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tnf-stats span { font-size: 14px; line-height: 1.4; color: var(--tnf-title); }

/* Proyectos destacados */
.tnf-featured { background: var(--tnf-soft); }
.tnf-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tnf-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 11px; overflow: hidden; background: var(--tnf-navy); color: #fff !important; text-decoration: none; }
.tnf-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tnf-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 36, 59, 0) 35%, rgba(12, 36, 59, .92) 100%); }
.tnf-card .tnf-card-txt { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px; display: grid; gap: 6px; }
.tnf-card small { font: 700 11px/1.2 "Poppins", Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--tnf-gold); }
.tnf-card strong { font: 700 17px/1.25 "Poppins", Arial, sans-serif; }
.tnf-card span { font-size: 13px; line-height: 1.4; color: #D7DEEA; }
.tnf-card:hover img, .tnf-card:focus-visible img { transform: scale(1.05); }

/* Proceso */
.tnf-process { background: var(--tnf-navy); color: #fff; }
.tnf-process .tnf-h2 { color: #fff; }
.tnf-process .tnf-lead { color: #D7DEEA; }
.tnf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: paso; }
.tnf-steps li { counter-increment: paso; border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.tnf-steps li::before { content: "0" counter(paso); font: 700 14px/1 "Poppins", Arial, sans-serif; color: var(--tnf-gold); letter-spacing: 1px; }
.tnf-steps h3 { margin: 0; font: 700 18px/1.2 "Poppins", Arial, sans-serif; color: #fff; text-transform: uppercase; }
.tnf-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: #D7DEEA; }

/* Oficinas (Contacto) */
.tnf-offices { background: var(--tnf-soft); }
.tnf-office-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tnf-office { display: grid; gap: 8px; align-content: start; background: #fff; border: 1px solid var(--tnf-line); border-radius: 11px; padding: 22px; }
.tnf-office small { font: 700 11px/1.3 "Poppins", Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--tnf-gold); }
.tnf-office strong { font: 700 17px/1.3 "Poppins", Arial, sans-serif; color: var(--tnf-title); }
.tnf-office address { font-style: normal; font-size: 14px; line-height: 1.55; color: var(--tnf-ink); }
.tnf-office a { justify-self: start; font: 700 12px/1.2 "Poppins", Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; color: var(--tnf-title); text-decoration: underline; text-decoration-color: var(--tnf-gold); text-underline-offset: 4px; }
.tnf-office-main { grid-column: 1 / -1; background: var(--tnf-navy); border-color: var(--tnf-navy); }
.tnf-office-main strong, .tnf-office-main address, .tnf-office-main a { color: #fff; }
.tnf-office-main strong { font-size: 20px; }
.tnf-office-main address { font-size: 15px; color: #D7DEEA; }

/* Página de proyectos */
.tnf-banner { position: relative; background: var(--tnf-navy) center / cover no-repeat; color: #fff; padding: 200px 0 80px; text-align: center; }
.tnf-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 36, 59, .82) 0%, rgba(12, 36, 59, .55) 55%, rgba(12, 36, 59, .85) 100%); }
.tnf-banner .tnf-wrap { position: relative; display: grid; justify-items: center; gap: 16px; }
.tnf-banner h1 { margin: 0; font: 700 clamp(34px, 6vw, 56px)/1.05 "Poppins", Arial, sans-serif; text-transform: uppercase; color: #fff; }
.tnf-banner p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: #E3E8F1; }

.tnf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 48px; padding: 0; list-style: none; }
.tnf-filters a { display: inline-block; padding: 9px 18px; border-radius: 25px; border: 1px solid var(--tnf-line); background: #fff; color: var(--tnf-title); font: 700 12px/1.2 "Poppins", Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; }
.tnf-filters a:hover, .tnf-filters a:focus-visible { border-color: var(--tnf-gold); }
.tnf-filters a[aria-current="true"] { background: var(--tnf-gold); border-color: var(--tnf-gold); color: #fff; }

.tnf-cat { display: grid; gap: 24px; margin-bottom: 64px; scroll-margin-top: 140px; }
.tnf-cat[hidden] { display: none; }
.tnf-cat > h2 { margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--tnf-gold); font: 700 24px/1.2 "Poppins", Arial, sans-serif; color: var(--tnf-title); text-transform: uppercase; }
.tnf-proj { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding: 24px; border-radius: 11px; background: #fff; border: 1px solid var(--tnf-line); scroll-margin-top: 140px; }
.tnf-proj-info { display: grid; gap: 10px; align-content: start; }
.tnf-proj-info h3 { margin: 0; font: 700 20px/1.25 "Poppins", Arial, sans-serif; color: var(--tnf-title); }
.tnf-proj-info .tnf-dato { justify-self: start; font: 700 12px/1.2 "Poppins", Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; color: var(--tnf-gold); }
.tnf-proj-info .tnf-lugar { margin: 0; font-size: 13px; color: var(--tnf-muted); }
.tnf-proj-info p { margin: 0; font-size: 15px; line-height: 1.6; }
.tnf-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-content: start; }
.tnf-gal button { padding: 0; border: 0; background: var(--tnf-soft); border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.tnf-gal button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.tnf-gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tnf-gal button:hover img, .tnf-gal button:focus-visible img { transform: scale(1.04); }
.tnf-gal button:focus-visible { outline: 3px solid var(--tnf-gold); outline-offset: 2px; }
.tnf-gal .tnf-vid { position: relative; cursor: pointer; }
.tnf-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(12, 36, 59, .8); border: 2px solid var(--tnf-gold); }
.tnf-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }

/* Visor de fotos */
.tnf-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 18, 32, .94); display: grid; grid-template-rows: 1fr auto; padding: 56px 64px 24px; }
.tnf-lb[hidden] { display: none; }
.tnf-lb figure { margin: 0; display: grid; place-items: center; min-height: 0; }
.tnf-lb img, .tnf-lb video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.tnf-lb img[hidden], .tnf-lb video[hidden] { display: none; }
.tnf-lb figcaption { color: #fff; text-align: center; font: 400 15px/1.5 Arial, sans-serif; padding-top: 14px; }
.tnf-lb figcaption b { font-family: "Poppins", Arial, sans-serif; color: var(--tnf-gold); }
.tnf-lb button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 22px; line-height: 1; cursor: pointer; }
.tnf-lb button:hover, .tnf-lb button:focus-visible { background: var(--tnf-gold); }
.tnf-lb .tnf-lb-x { top: 12px; right: 12px; }
.tnf-lb .tnf-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.tnf-lb .tnf-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1024px) {
  .tnf-cards { grid-template-columns: repeat(2, 1fr); }
  .tnf-steps { grid-template-columns: repeat(2, 1fr); }
  .tnf-stats ul { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .tnf-stats li:nth-child(4) { border-left: 0; }
  .tnf-proj { grid-template-columns: 1fr; }
  .tnf-office-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .elementor-element-4983b648 .swiper-slide .elementor-slide-heading { font-size: 30px !important; line-height: 1.1 !important; }
  .tnf-sec { padding: 56px 0; }
  .tnf-stats ul { grid-template-columns: repeat(2, 1fr); }
  .tnf-stats li { border-left: 0; }
  .tnf-stats li:last-child { grid-column: 1 / -1; }
  .tnf-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tnf-card { aspect-ratio: 4 / 5; }
  .tnf-card .tnf-card-txt { padding: 12px; }
  .tnf-card strong { font-size: 14px; }
  .tnf-card span { display: none; }
  .tnf-steps { grid-template-columns: 1fr; }
  .tnf-office-list { grid-template-columns: 1fr; }
  .tnf-banner { padding: 150px 0 56px; }
  .tnf-proj { padding: 16px; gap: 18px; }
  .tnf-lb { padding: 56px 8px 16px; }
  .tnf-lb .tnf-lb-prev, .tnf-lb .tnf-lb-next { top: auto; bottom: 12px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tnf-card img, .tnf-gal img { transition: none; }
}

/* El primer título del slider es H1 (SEO): mismo color que las demás diapositivas */
.elementor-slides h1.elementor-slide-heading { color: #fff !important; margin: 0 0 30px; }

/* ===== Menú para celular ===== */
.lqd-mobile-sec .lqd-mobile-sec-inner { background: #fff; box-shadow: 0 1px 0 var(--tnf-line); }
.lqd-mobile-sec .navbar-brand { padding: 14px 0; }
.lqd-mobile-sec .navbar-brand img.logo-default { display: block; width: 116px !important; height: auto !important; max-height: none; }
.lqd-mobile-sec .lqd-mobile-sec-nav { display: none !important; }
.lqd-mobile-sec .nav-trigger .bar { background: var(--tnf-title) !important; }

.tnf-mn-abierto, .tnf-mn-abierto body { overflow: hidden; }
.tnf-mn { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; background: var(--tnf-navy); color: #fff; font-family: "Poppins", Arial, sans-serif; opacity: 0; transform: translateY(-12px); transition: opacity .3s ease, transform .3s ease; overflow-y: auto; overscroll-behavior: contain; }
.tnf-mn[hidden] { display: none; }
.tnf-mn.is-open { opacity: 1; transform: none; }
.tnf-mn::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(/assets/img/obras/min/p97_400.jpg) center bottom / cover no-repeat; opacity: .12; }
.tnf-mn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 55% at 100% 100%, rgba(211, 152, 15, .2), transparent 60%); }
.tnf-mn-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: #fff; }
.tnf-mn-logo img { display: block; width: 116px; height: auto; }
.tnf-mn-x { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tnf-soft); cursor: pointer; }
.tnf-mn-x span { position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: var(--tnf-title); border-radius: 2px; transform: rotate(45deg); }
.tnf-mn-x span + span { transform: rotate(-45deg); }
.tnf-mn-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 26px; padding: 22px 24px 36px; }
.tnf-mn-links { margin: 0; padding: 0; list-style: none; }
.tnf-mn-links li { border-bottom: 1px solid rgba(255, 255, 255, .1); opacity: 0; transform: translateX(-14px); transition: opacity .35s ease, transform .35s ease; }
.tnf-mn.is-open .tnf-mn-links li { opacity: 1; transform: none; }
.tnf-mn.is-open .tnf-mn-links li:nth-child(2) { transition-delay: .04s; }
.tnf-mn.is-open .tnf-mn-links li:nth-child(3) { transition-delay: .08s; }
.tnf-mn.is-open .tnf-mn-links li:nth-child(4) { transition-delay: .12s; }
.tnf-mn.is-open .tnf-mn-links li:nth-child(5) { transition-delay: .16s; }
.tnf-mn.is-open .tnf-mn-links li:nth-child(6) { transition-delay: .2s; }
.tnf-mn-links a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; color: #fff !important; font-size: 23px; font-weight: 700; line-height: 1.1; text-transform: uppercase; text-decoration: none; letter-spacing: .3px; }
.tnf-mn-num { min-width: 22px; font-size: 12px; font-weight: 600; color: var(--tnf-gold); letter-spacing: 1px; }
.tnf-mn-links a[aria-current="page"] { color: var(--tnf-gold) !important; }
.tnf-mn-links a[aria-current="page"]::after { content: ""; align-self: center; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--tnf-gold); }
.tnf-mn-cta { align-self: stretch; text-align: center; padding: 15px 24px; font-size: 13px; }
.tnf-mn-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tnf-mn-quick a { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff !important; font-size: 12px; font-weight: 600; text-decoration: none; }
.tnf-mn-quick svg { width: 22px; height: 22px; fill: var(--tnf-gold); }
.tnf-mn-dir { margin: 0; font: 13px/1.6 Arial, sans-serif; color: #C9D2E3; }
.tnf-mn-dir strong { display: block; margin-bottom: 2px; color: #fff; font: 700 11px/1.4 "Poppins", Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
@media (min-width: 1200px) { .tnf-mn { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .tnf-mn, .tnf-mn-links li { transition: none; } }
