/*
Theme Name: SCLOG Software Legacy
Theme URI: https://sclogsoftware.com/
Author: SCLOG Software
Description: Réplica editable en WordPress del sitio corporativo Joomla de SCLOG Software.
Version: 1.0.2
Text Domain: sclog-legacy
*/

:root {
  --red: #ef1745;
  --deep-red: #7d0023;
  --ink: #151515;
  --muted: #707070;
  --line: #ececec;
  --paper: #ffffff;
  --soft: #f7f7f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Montserrat, Arial, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.topbar { background: #171717; color: #fff; font-size: 11px; }
.topbar .wrap { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar__locations { display: flex; gap: 18px; overflow: hidden; white-space: nowrap; color: #d8d8d8; }
.topbar__call { flex: 0 0 auto; font-weight: 700; color: #fff; }
.topbar__call strong { color: var(--red); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 185px; max-height: 58px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 34px; font-family: Exo, Montserrat, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.nav a { position: relative; padding: 34px 0; }
.nav a::after { content: ""; position: absolute; height: 3px; left: 0; right: 100%; bottom: 24px; background: var(--red); transition: right .25s ease; }
.nav a:hover::after, .nav .current-menu-item a::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 26px; }

.hero { min-height: 560px; position: relative; overflow: hidden; background: #fff; }
.hero__slides { min-height: 560px; position: relative; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease; background-size: cover; background-position: center; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__content { min-height: 560px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { color: var(--red); letter-spacing: .18em; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-family: Exo, Montserrat, sans-serif; font-size: clamp(42px, 6vw, 82px); line-height: .98; max-width: 610px; margin: 12px 0 20px; font-weight: 700; }
.hero h1 span { color: var(--red); }
.hero p { font-size: 19px; max-width: 580px; margin: 0 0 30px; color: #454545; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; background: var(--red); color: #fff; font-family: Exo, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.button:hover { background: #c70034; }
.hero__dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: flex; gap: 9px; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border: 1px solid var(--red); background: transparent; border-radius: 50%; }
.hero__dots button.is-active { background: var(--red); }

.section { padding: 82px 0; }
.section--soft { background: var(--soft); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section__head h2, .page-hero h1 { margin: 0; font-family: Exo, Montserrat, sans-serif; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.section__head h2::after, .page-hero h1::after { content: ""; display: block; width: 58px; height: 4px; margin-top: 16px; background: var(--red); }

.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.partner-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(0,0,0,.12); }
.partner-card__media { height: 180px; background: #f1f1f1; overflow: hidden; }
.partner-card__media img { width: 100%; height: 100%; object-fit: cover; }
.partner-card h3 { font-family: Exo, sans-serif; font-size: 16px; line-height: 1.35; margin: 0; padding: 18px; }

.stats { background: linear-gradient(120deg, #75001f, #df0b3b); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 52px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.22); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: Exo, sans-serif; font-size: 48px; line-height: 1; }
.stat span { display: block; margin-top: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

.page-hero { padding: 74px 0; background: linear-gradient(120deg, #fafafa 0 60%, #870028 60% 100%); }
.content-shell { width: min(980px, calc(100% - 40px)); margin-inline: auto; padding: 70px 0; }
.content-shell h2 { margin: 38px 0 12px; font-family: Exo, sans-serif; font-size: 30px; }
.content-shell p { color: #4c4c4c; }
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 54px; }
.contact-form label { display: block; font-weight: 700; margin: 0 0 8px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d8d8d8; padding: 13px 14px; font: inherit; margin-bottom: 18px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-notice { padding: 13px 16px; border-left: 4px solid; font-weight: 600; }
.form-notice--success { color: #14532d; background: #ecfdf3; border-color: #16a34a; }
.form-notice--error { color: #7f1d1d; background: #fff1f2; border-color: #e11d48; }
.contact-card { background: #171717; color: #fff; padding: 34px; align-self: start; }
.contact-card a { color: #fff; text-decoration: underline; }

.site-footer { background: #111; color: #e9e9e9; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 45px; }
.site-footer h3 { color: #fff; font-family: Exo, sans-serif; margin-top: 0; }
.site-footer p, .site-footer li { color: #bdbdbd; font-size: 13px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a:hover { color: var(--red); }
.copyright { border-top: 1px solid #333; margin-top: 36px; padding-top: 22px; color: #8a8a8a; font-size: 12px; }

@media (max-width: 980px) {
  .topbar__locations { display: none; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 24px; background: #fff; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 15px 35px rgba(0,0,0,.12); }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .site-header .wrap { min-height: 72px; }
  .brand img { width: 150px; }
  .hero, .hero__slides, .hero__content { min-height: 520px; }
  .hero__slide { background-position: 67% center; }
  .hero__slide::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.76); }
  .hero__content { position: relative; z-index: 2; }
  .hero h1 { font-size: 44px; max-width: 92%; }
  .hero p { font-size: 16px; max-width: 90%; }
  .partners, .stats .wrap, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .page-hero { background: #fafafa; }
}
