/*
Theme Name: Tactical TGT Security
Author: Tactical TGT Security
Description: Sitio corporativo para servicios profesionales de seguridad privada en Ecuador.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tactical-tgt-security
*/

:root {
  --ink: #090a0b;
  --ink-2: #121417;
  --steel: #1c2024;
  --orange: #f39a16;
  --red: #a91f24;
  --paper: #f6f5f1;
  --white: #fff;
  --grey: #9fa3a7;
  --line: rgba(255,255,255,.16);
  --shell: 1240px;
  --heading: 'Barlow Condensed', Impact, sans-serif;
  --body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
body.admin-bar .site-header { top: 32px; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }
[id] { scroll-margin-top: 88px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); background: linear-gradient(180deg, rgba(7,8,9,.97), rgba(7,8,9,.78)); border-bottom: 1px solid rgba(243,154,22,.35); backdrop-filter: blur(12px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand span { line-height: .9; }
.brand strong, .brand small { display: block; font-family: var(--heading); letter-spacing: .06em; }
.brand strong { font-size: 1.18rem; }
.brand small { margin-top: 7px; color: var(--orange); font-size: .78rem; letter-spacing: .32em; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .83rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--orange); }
.main-nav .nav-cta { padding: 12px 18px; color: var(--ink); background: var(--orange); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.main-nav .nav-cta:hover { color: var(--ink); background: var(--white); }
.menu-toggle { display: none; width: 48px; height: 48px; flex: 0 0 48px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle i { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--white); }

.hero { position: relative; min-height: max(720px, 100svh); display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 62% center; }
.hero-shade { background: linear-gradient(90deg, rgba(5,6,7,.98) 0%, rgba(5,6,7,.86) 34%, rgba(5,6,7,.2) 70%, rgba(5,6,7,.06) 100%), linear-gradient(0deg, rgba(5,6,7,.72), transparent 55%); }
.hero-content { position: relative; z-index: 2; padding-top: 78px; }
.kicker { margin: 0 0 16px; color: var(--orange); font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.kicker.dark { color: #b56507; }
.hero h1, h2, h3 { font-family: var(--heading); text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(4.6rem, 8vw, 8.25rem); line-height: .78; letter-spacing: -.035em; }
.hero h1 span { color: var(--orange); font-size: .63em; letter-spacing: .015em; }
.hero-lead { max-width: 630px; margin: 34px 0 0; color: #e0e0df; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 0 25px; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: .2s ease; }
.button-primary { color: var(--ink); background: var(--orange); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.button-primary:hover { background: var(--white); transform: translateY(-2px); }
.button-ghost { border: 1px solid rgba(255,255,255,.55); }
.button-ghost:hover { color: var(--ink); background: var(--white); }
.hero-index { position: absolute; z-index: 2; right: 4%; bottom: 30px; color: rgba(255,255,255,.8); font-family: var(--heading); font-size: 1.2rem; font-weight: 800; }
.angle { position: absolute; z-index: 3; pointer-events: none; }
.angle-orange { right: -9%; bottom: -105px; width: 56%; height: 170px; background: var(--orange); transform: rotate(-6deg) skewX(-25deg); }
.angle-white { right: -12%; bottom: -105px; width: 48%; height: 150px; background: var(--paper); transform: rotate(-5deg) skewX(-25deg); }

.metrics { color: var(--white); background: var(--ink); border-bottom: 5px solid var(--orange); }
.metrics-grid { min-height: 142px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.metrics article { min-height: 72px; display: flex; align-items: center; gap: 17px; padding: 12px 26px; border-right: 1px solid var(--line); }
.metrics article:first-child { padding-left: 0; }
.metrics article:last-child { border-right: 0; }
.metrics strong { color: var(--orange); font-family: var(--heading); font-size: 2.6rem; line-height: 1; }
.metrics span { max-width: 110px; color: #d2d2d0; font-size: .78rem; font-weight: 700; line-height: 1.35; text-transform: uppercase; }

.editorial { min-height: 750px; display: grid; grid-template-columns: 52% 48%; }
.editorial-photo { min-height: 750px; overflow: hidden; background: var(--ink); }
.editorial-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.editorial-copy { position: relative; padding: 95px max(6vw, 70px); background: var(--paper); }
.section-number { position: absolute; right: 34px; top: 18px; margin: 0; color: var(--orange); font-family: var(--heading); font-size: 1.2rem; font-weight: 800; }
.editorial h2, .title-row h2, .method h2, .oversight h2, .contact h2 { margin: 0; font-size: clamp(3rem, 5vw, 5.4rem); line-height: .88; letter-spacing: -.03em; }
.editorial h2 { max-width: 680px; }
.lead-dark { margin: 34px 0 18px; color: #24282b; font-size: 1.1rem; font-weight: 600; }
.editorial-copy > p:not(.kicker):not(.section-number):not(.lead-dark) { color: #55595d; }
.promise-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 36px; }
.promise-grid div { padding-top: 16px; border-top: 3px solid var(--orange); }
.promise-grid b, .promise-grid span { display: block; }
.promise-grid b { font-family: var(--heading); font-size: 1.25rem; text-transform: uppercase; }
.promise-grid span { margin-top: 5px; color: #686b6e; font-size: .78rem; line-height: 1.45; }

.action-band { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--ink); }
.action-band > img, .action-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.action-band > img { object-fit: cover; object-position: center; }
.action-overlay { background: linear-gradient(90deg, rgba(7,8,9,.96), rgba(7,8,9,.7) 42%, rgba(7,8,9,.08) 75%); }
.action-content { position: relative; z-index: 2; }
.action-content h2 { margin: 0; font-size: clamp(4rem, 7vw, 7.2rem); line-height: .82; }
.action-content h2 span { color: var(--orange); }
.action-content > p:last-child { max-width: 520px; color: #e2e2e0; }

.services-intro { padding: 95px 0; color: var(--white); background: var(--ink); }
.title-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.title-row h2 { max-width: 720px; }
.title-row > p { max-width: 500px; margin: 0; color: #aeb2b5; }

.service-sheet { min-height: 720px; display: grid; grid-template-columns: 48% 52%; }
.reverse-sheet { grid-template-columns: 52% 48%; }
.reverse-sheet .service-portrait { order: 2; }
.service-portrait { min-height: 720px; overflow: hidden; background: #1a1c1e; }
.service-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-spec { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 70px max(7vw, 80px); }
.light-sheet { color: var(--ink); background: var(--paper); }
.dark-sheet { color: var(--white); background: var(--ink-2); }
.orange-sheet { color: var(--ink); background: var(--orange); }
.sheet-label { margin: 0 0 30px; font-size: .7rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.dark-sheet .sheet-label { color: var(--orange); }
.service-title { display: flex; align-items: flex-start; gap: 18px; }
.service-title > span { color: var(--orange); font-family: var(--heading); font-weight: 800; }
.orange-sheet .service-title > span { color: var(--white); }
.service-title h3 { margin: 0; font-size: clamp(3.8rem, 6vw, 6.4rem); line-height: .8; letter-spacing: -.035em; }
.service-summary { max-width: 700px; margin: 35px 0 28px; font-size: 1.05rem; font-weight: 600; }
.dark-sheet .service-summary { color: #d9dbdc; }
.spec-list { max-width: 740px; list-style: none; padding: 0; margin: 0; }
.spec-list li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 13px 0; border-top: 1px solid rgba(0,0,0,.17); }
.dark-sheet .spec-list li { border-color: rgba(255,255,255,.15); }
.spec-list b { font-family: var(--heading); text-transform: uppercase; }
.spec-list span { color: #565a5d; font-size: .88rem; }
.dark-sheet .spec-list span { color: #aeb2b5; }
.orange-sheet .spec-list span { color: #2b2d2f; }
.text-link { align-self: flex-start; margin-top: 35px; padding-bottom: 6px; border-bottom: 2px solid currentColor; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link b { margin-left: 8px; color: var(--orange); }
.orange-sheet .text-link b { color: var(--white); }

.capability { padding: 110px 0; color: var(--white); background: var(--ink); }
.light-title { margin-bottom: 50px; }
.capability-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(2, 285px); gap: 16px; }
.capability-grid article { position: relative; overflow: hidden; background: var(--steel); }
.capability-grid article.large { grid-row: 1 / 3; }
.capability-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.capability-grid article:hover img { transform: scale(1.025); }
.capability-grid article::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(5,6,7,.96), transparent); }
.capability-grid article > div { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 23px; }
.capability-grid article span { color: var(--orange); font-family: var(--heading); font-weight: 800; }
.capability-grid article h3 { margin: 3px 0; font-size: 2rem; }
.capability-grid article p { margin: 0; color: #d5d7d8; font-size: .86rem; }
.equipment-strip { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 16px; border-top: 4px solid var(--orange); background: var(--steel); }
.equipment-strip div { min-height: 145px; padding: 27px; border-right: 1px solid var(--line); }
.equipment-strip div:last-child { border-right: 0; }
.equipment-strip b, .equipment-strip span { display: block; }
.equipment-strip b { font-family: var(--heading); font-size: 1.3rem; text-transform: uppercase; }
.equipment-strip span { margin-top: 7px; color: #aeb2b5; font-size: .82rem; }

.method { padding: 110px 0; background: var(--paper); }
.method h2 { max-width: 850px; }
.method-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-top: 55px; }
.method-grid article { min-height: 260px; padding: 28px; color: var(--white); background: var(--ink-2); border-top: 5px solid var(--orange); }
.method-grid span { color: var(--orange); font-family: var(--heading); font-size: 1.2rem; font-weight: 800; }
.method-grid h3 { margin: 42px 0 8px; font-size: 1.75rem; }
.method-grid p { margin: 0; color: #aeb2b5; font-size: .86rem; }

.oversight { padding: 105px 0; color: var(--white); background: var(--red); }
.oversight-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.oversight h2 { font-size: clamp(3rem, 4.5vw, 5rem); }
.oversight .kicker { color: #ffd69b; }
.oversight p:last-child { color: #f2d7d8; }
.entity-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid rgba(255,255,255,.4); border-left: 1px solid rgba(255,255,255,.4); }
.entity-grid span { min-height: 100px; display: flex; align-items: center; padding: 20px; border-right: 1px solid rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.4); font-family: var(--heading); font-size: 1.05rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; }

.contact { padding: 110px 0; color: var(--white); background: var(--ink); }
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.contact h2 { max-width: 760px; }
.contact-inner > div:first-child > p:last-child { max-width: 620px; color: #aeb2b5; }
.contact-card { border-top: 5px solid var(--orange); background: var(--steel); }
.contact-card a, .contact-card > span { display: block; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.contact-card small, .contact-card strong { display: block; }
.contact-card small { color: var(--orange); font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-card strong { margin-top: 5px; font-size: 1rem; overflow-wrap: anywhere; }
.contact-card a:hover { background: rgba(255,255,255,.05); }

.whatsapp-float { position: fixed; z-index: 45; right: 24px; bottom: 24px; width: 58px; height: 58px; display: grid; place-items: center; color: var(--white); background: #20a866; border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 15px 35px rgba(0,0,0,.35); font-size: .74rem; font-weight: 900; }
.site-footer { padding: 42px 0; color: #b8bbbd; background: #050607; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 35px; align-items: center; }
.footer-brand img { width: 55px; height: 55px; }
.footer-grid p { margin: 0; font-size: .78rem; }
.copyright { text-align: right; }

@media (min-width: 1600px) {
  :root { --shell: 1380px; }
  .hero { min-height: min(940px, 100svh); }
  .hero h1 { max-width: 850px; }
  .editorial-copy, .service-spec { padding-inline: max(7vw, 110px); }
}

@media (max-width: 1180px) {
  .shell { width: min(var(--shell), calc(100% - 48px)); }
  .brand { min-width: 190px; }
  .main-nav { gap: 20px; font-size: .78rem; }
  .main-nav .nav-cta { padding-inline: 15px; }
  .hero h1 { font-size: clamp(4.4rem, 8vw, 7.2rem); }
}

@media (max-width: 1080px) {
  .main-nav { gap: 16px; }
  .editorial-copy, .service-spec { padding-inline: 50px; }
  .service-sheet, .reverse-sheet { grid-template-columns: 45% 55%; }
  .reverse-sheet { grid-template-columns: 55% 45%; }
  .method-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .shell { width: min(var(--shell), calc(100% - 36px)); }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 88px; left: 18px; right: 18px; max-height: calc(100svh - 110px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; overflow-y: auto; background: rgba(9,10,11,.98); border: 1px solid rgba(243,154,22,.35); box-shadow: 0 24px 55px rgba(0,0,0,.45); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px; }
  .main-nav .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: max(720px, 100svh); }
  .hero-image { object-position: 68% center; opacity: .76; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,6,7,.96), rgba(5,6,7,.5)); }
  .metrics-grid { grid-template-columns: repeat(2,1fr); padding-block: 20px; }
  .metrics article:nth-child(2) { border-right: 0; }
  .editorial, .service-sheet, .reverse-sheet, .oversight-inner, .contact-inner { grid-template-columns: 1fr; }
  .editorial-photo, .service-portrait { min-height: 520px; }
  .editorial-copy, .service-spec { padding: 75px 36px; }
  .reverse-sheet .service-portrait { order: 0; }
  .title-row { grid-template-columns: 1fr; gap: 22px; }
  .capability-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 440px 280px; }
  .capability-grid article.large { grid-column: 1 / 3; grid-row: auto; }
  .equipment-strip { grid-template-columns: 1fr; }
  .equipment-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .oversight-inner, .contact-inner { gap: 45px; }
}

@media (max-width: 768px) {
  .shell { width: min(var(--shell), calc(100% - 32px)); }
  .hero-content { padding-top: 88px; padding-bottom: 54px; }
  .hero h1 { max-width: 11ch; font-size: clamp(3.7rem, 13vw, 5.6rem); line-height: .82; }
  .hero h1 span { font-size: .58em; }
  .hero-lead { max-width: 38rem; }
  .angle-orange { right: -20%; width: 78%; }
  .action-overlay { background: linear-gradient(90deg, rgba(7,8,9,.94), rgba(7,8,9,.55) 68%, rgba(7,8,9,.22)); }
  .service-title h3 { font-size: clamp(3.5rem, 10vw, 5.2rem); overflow-wrap: anywhere; }
  .service-summary { margin-top: 26px; }
  .capability-grid article > div { left: 20px; right: 20px; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 78px; }
  .brand img { width: 54px; height: 54px; }
  .brand strong { font-size: 1rem; }
  .main-nav { top: 78px; }
  .hero { min-height: max(690px, 100svh); align-items: flex-end; }
  .hero-content { padding-top: 120px; padding-bottom: 72px; }
  .hero-image { object-position: 70% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,6,7,.94), rgba(5,6,7,.42)), linear-gradient(0deg, rgba(5,6,7,.92), transparent 70%); }
  .hero h1 { max-width: 100%; font-size: clamp(3.15rem, 16vw, 4.9rem); line-height: .84; }
  .hero-lead { font-size: .94rem; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .metrics article { padding: 16px 12px; }
  .metrics article:first-child { padding-left: 12px; }
  .metrics strong { font-size: 2rem; }
  .editorial h2, .title-row h2, .method h2, .oversight h2, .contact h2 { font-size: clamp(2.65rem, 13vw, 3.4rem); }
  .editorial-photo, .service-portrait { min-height: 430px; }
  .editorial-copy, .service-spec { padding: 64px 22px; }
  .promise-grid, .method-grid, .entity-grid, .footer-grid { grid-template-columns: 1fr; }
  .action-band { min-height: 600px; }
  .action-content h2 { font-size: clamp(3.25rem, 15vw, 4.2rem); }
  .services-intro, .capability, .method, .oversight, .contact { padding: 78px 0; }
  .service-title { gap: 10px; }
  .service-title h3 { font-size: clamp(3rem, 15vw, 3.8rem); line-height: .86; }
  .spec-list li { grid-template-columns: 1fr; gap: 3px; }
  .capability-grid { display: block; }
  .capability-grid article, .capability-grid article.large { min-height: 390px; margin-bottom: 14px; }
  .equipment-strip { margin-top: 0; }
  .entity-grid span { min-height: 80px; }
  .footer-grid { text-align: center; }
  .footer-brand { justify-content: center; }
  .copyright { text-align: center; }
  .whatsapp-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 54px; height: 54px; }
}

@media (max-width: 480px) {
  .shell { width: min(var(--shell), calc(100% - 24px)); }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 50px; height: 50px; }
  .brand strong { font-size: .92rem; }
  .brand small { font-size: .66rem; letter-spacing: .25em; }
  .kicker { font-size: .67rem; letter-spacing: .14em; }
  .hero-content { padding-top: 110px; }
  .hero h1 { font-size: clamp(2.95rem, 15vw, 4rem); }
  .hero h1 span { font-size: .56em; }
  .button { min-height: 52px; padding-inline: 18px; }
  .metrics article { min-height: 82px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
  .metrics span { max-width: none; font-size: .67rem; }
  .editorial-photo, .service-portrait { min-height: 370px; }
  .editorial-copy, .service-spec { padding: 54px 18px; }
  .promise-grid { gap: 20px; }
  .sheet-label { margin-bottom: 22px; letter-spacing: .14em; }
  .service-title { display: block; }
  .service-title > span { display: block; margin-bottom: 5px; }
  .service-title h3 { font-size: clamp(2.85rem, 14vw, 3.45rem); }
  .service-summary { font-size: .96rem; }
  .spec-list li { padding-block: 12px; }
  .capability-grid article, .capability-grid article.large { min-height: 330px; }
  .capability-grid article h3 { font-size: 1.65rem; }
  .equipment-strip div { min-height: 0; padding: 23px 20px; }
  .method-grid article { min-height: 220px; }
  .entity-grid span { padding: 17px; font-size: .96rem; overflow-wrap: anywhere; }
  .contact-card a, .contact-card > span { padding: 19px; }
}

@media (max-width: 360px) {
  .brand span { display: none; }
  .hero h1 { font-size: 2.85rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metrics article, .metrics article:nth-child(2) { min-height: 72px; flex-direction: row; align-items: center; padding-inline: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics article:last-child { border-bottom: 0; }
  .metrics span { max-width: 120px; }
  .section-number { right: 18px; }
  .editorial-copy, .service-spec { padding-inline: 15px; }
  .action-content h2 { font-size: 3rem; }
  .service-title h3 { font-size: 2.65rem; }
}

@media (max-height: 560px) and (min-width: 700px) {
  .hero { min-height: 640px; }
  .hero-content { padding-top: 120px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(4rem, 9vw, 6rem); }
  .hero-lead { margin-top: 22px; }
  .hero-actions { margin-top: 22px; }
  .main-nav { max-height: calc(100svh - 96px); }
}

@media (hover: none) {
  .capability-grid article:hover img, .button-primary:hover { transform: none; }
}

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