@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --red:      #C0281C;
  --red-2:    #E03020;
  --red-bg:   #FFF0EF;
  --black:    #0A0A0A;
  --gray-1:   #1A1A1A;
  --gray-2:   #404040;
  --gray-3:   #707070;
  --gray-4:   #A8A8A8;
  --gray-5:   #E8E8E8;
  --gray-6:   #F4F4F4;
  --white:    #FFFFFF;
  --yellow:   #E8A020;
  --font-h:   'Syne', sans-serif;
  --font-b:   'Inter', sans-serif;
  --r:        6px;
  --tr:       .22s ease;
  --shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:0 8px 32px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--gray-1); font-family: var(--font-b); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; display: block; }
a    { color: var(--red); text-decoration: none; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-5);
  padding: .9rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.nav-brand img { height: 40px; }
.brand-text-main { font-family: var(--font-h); font-size: 1.15rem; font-weight: 800; color: var(--black); letter-spacing: -.02em; }
.brand-text-main span { color: var(--red); }
.brand-text-sub { font-size: .6rem; color: var(--gray-3); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; }
.nav-links a { font-family: var(--font-b); font-size: .88rem; font-weight: 500; color: var(--gray-2); padding: .4rem .85rem; border-radius: 100px; transition: all var(--tr); }
.nav-links a:hover { background: var(--gray-6); color: var(--black); }
.nav-links a.active { color: var(--red); }
.nav-cta { background: var(--red) !important; color: #fff !important; padding: .45rem 1.2rem !important; border-radius: 100px !important; font-size: .85rem !important; }
.nav-cta:hover { background: var(--red-2) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--gray-5); border-radius: var(--r); padding: .4rem .6rem; cursor: pointer; color: var(--gray-1); }

/* ── HERO ── */
.hero {
  padding: 9rem 0 0;
  background: var(--white);
  overflow: hidden;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); background: var(--red-bg);
  padding: .3rem .9rem; border-radius: 100px; margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--font-h); font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 800; line-height: .95; letter-spacing: -.03em;
  color: var(--black); margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero-desc { font-size: 1.05rem; color: var(--gray-3); max-width: 460px; margin-bottom: 2.2rem; font-weight: 300; line-height: 1.8; }
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--gray-5); }
.hero-stat { padding: 1.5rem 2.5rem 1.5rem 0; border-right: 1px solid var(--gray-5); margin-right: 2.5rem; }
.hero-stat:last-child { border-right: none; margin-right: 0; }
.hero-stat-n { font-family: var(--font-h); font-size: 2rem; font-weight: 800; color: var(--black); letter-spacing: -.03em; line-height: 1; }
.hero-stat-l { font-size: .72rem; color: var(--gray-4); text-transform: uppercase; letter-spacing: .12em; margin-top: .2rem; }

.hero-img-wrap {
  position: relative;
  height: 100%;
  min-height: 520px;
}
.hero-img-main {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.hero-img-placeholder {
  width: 100%; min-height: 520px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: 16px 16px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: #ccc;
}
.hero-badge-float {
  position: absolute; bottom: 2rem; left: -1.5rem;
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  min-width: 200px;
}
.hero-badge-icon { width: 40px; height: 40px; background: var(--red-bg); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 1.1rem; flex-shrink: 0; }
.hero-badge-text { font-size: .8rem; color: var(--gray-2); line-height: 1.4; }
.hero-badge-text strong { display: block; font-size: .95rem; color: var(--black); font-weight: 600; }

/* ── BOTONES ── */
.btn-red { display: inline-flex; align-items: center; gap: .5rem; background: var(--red); color: #fff; font-family: var(--font-b); font-size: .9rem; font-weight: 600; padding: .75rem 1.75rem; border-radius: 100px; border: none; cursor: pointer; transition: all var(--tr); }
.btn-red:hover { background: var(--red-2); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(192,40,28,.3); }
.btn-ghost { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--gray-1); font-family: var(--font-b); font-size: .9rem; font-weight: 500; padding: .72rem 1.75rem; border-radius: 100px; border: 1.5px solid var(--gray-5); cursor: pointer; transition: all var(--tr); }
.btn-ghost:hover { border-color: var(--gray-2); color: var(--black); }

/* ── SECTION COMMON ── */
section { padding: 5.5rem 0; }
.section-tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); background: var(--red-bg); padding: .25rem .8rem; border-radius: 100px; margin-bottom: .8rem; }
.section-title { font-family: var(--font-h); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--black); letter-spacing: -.03em; line-height: 1.1; margin-bottom: .75rem; }
.section-sub { color: var(--gray-3); font-size: .95rem; max-width: 500px; }
.divider { width: 40px; height: 3px; background: var(--red); border-radius: 2px; margin: 1rem 0 2rem; }
.divider.center { margin-left: auto; margin-right: auto; }

/* ── CERTS ── */
.certs-band { background: var(--gray-6); border-top: 1px solid var(--gray-5); border-bottom: 1px solid var(--gray-5); padding: 3rem 0; }
.cert-card { background: var(--white); border: 1px solid var(--gray-5); border-radius: 12px; padding: 1.75rem; text-align: center; text-decoration: none; display: block; transition: all var(--tr); box-shadow: var(--shadow); }
.cert-card:hover { border-color: var(--red); box-shadow: 0 8px 32px rgba(192,40,28,.12); transform: translateY(-3px); }
.cert-num { font-family: var(--font-h); font-size: 1.6rem; font-weight: 800; color: var(--red); letter-spacing: -.02em; display: block; margin-bottom: .3rem; }
.cert-label { font-size: .82rem; color: var(--gray-2); font-weight: 500; display: block; margin-bottom: .2rem; }
.cert-meta { font-size: .75rem; color: var(--gray-4); }
.cert-cta { font-size: .75rem; color: var(--red); font-weight: 600; margin-top: .75rem; display: block; letter-spacing: .05em; }

/* ── SERVICES ── */
.services-section { background: var(--white); }
.service-item { padding: 2rem; border: 1px solid var(--gray-5); border-radius: 12px; height: 100%; transition: all var(--tr); position: relative; }
.service-item:hover { border-color: var(--red); box-shadow: var(--shadow-lg); }
.service-item:hover .service-arrow { opacity: 1; transform: translate(2px, -2px); }
.service-n { font-family: var(--font-h); font-size: .8rem; font-weight: 700; color: var(--gray-5); letter-spacing: .1em; margin-bottom: 1rem; }
.service-item h3 { font-family: var(--font-h); font-size: 1.15rem; font-weight: 700; color: var(--black); margin-bottom: .6rem; letter-spacing: -.01em; }
.service-item p { font-size: .88rem; color: var(--gray-3); line-height: 1.7; }
.service-arrow { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--red); font-size: 1rem; opacity: 0; transition: all var(--tr); }

/* ── ABOUT ── */
.about-section { background: var(--gray-6); }
.about-img { border-radius: 12px; overflow: hidden; position: relative; }
.about-img img { width: 100%; height: 480px; object-fit: cover; }
.about-badge { position: absolute; bottom: -1.5rem; right: -1rem; background: var(--red); color: #fff; padding: 1.25rem 1.5rem; border-radius: 10px; text-align: center; }
.about-badge-n { font-family: var(--font-h); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge-l { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.tab-pills { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-pill { background: var(--white); border: 1px solid var(--gray-5); color: var(--gray-2); font-size: .82rem; font-weight: 500; padding: .4rem 1rem; border-radius: 100px; cursor: pointer; transition: all var(--tr); }
.tab-pill.active { background: var(--red); border-color: var(--red); color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p { color: var(--gray-2); font-size: .93rem; line-height: 1.8; }
.values-wrap { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.val-tag { font-size: .8rem; font-weight: 500; padding: .3rem .8rem; border-radius: 100px; background: var(--white); border: 1px solid var(--gray-5); color: var(--gray-2); }

/* ── CLIENTS ── */
.clients-section { background: var(--white); }
.clients-grid { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.client-pill { background: var(--gray-6); border: 1px solid var(--gray-5); border-radius: 100px; padding: .6rem 1.5rem; font-size: .88rem; font-weight: 600; color: var(--gray-2); transition: all var(--tr); letter-spacing: .02em; }
.client-pill:hover { background: var(--red-bg); border-color: rgba(192,40,28,.2); color: var(--red); }

/* ── GALLERY ── */
.gallery-section { background: var(--gray-6); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-grid .big { grid-column: span 2; }
.photo-item { border-radius: 10px; overflow: hidden; background: var(--gray-5); aspect-ratio: 4/3; }
.photo-item.tall { aspect-ratio: 3/4; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-item:hover img { transform: scale(1.04); }

/* ── CTA BAND ── */
.cta-band { background: var(--black); padding: 5rem 0; }
.cta-band h2 { font-family: var(--font-h); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; color: var(--white); letter-spacing: -.03em; line-height: 1.05; margin-bottom: .75rem; }
.cta-band h2 span { color: var(--red); }
.cta-band p { color: rgba(255,255,255,.5); font-size: .95rem; }
.btn-white { display: inline-flex; align-items: center; gap: .5rem; background: var(--white); color: var(--black); font-weight: 600; font-size: .9rem; padding: .75rem 1.75rem; border-radius: 100px; transition: all var(--tr); text-decoration: none; }
.btn-white:hover { background: var(--gray-6); color: var(--black); transform: translateY(-1px); }
.btn-red-outline { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--red); border: 1.5px solid var(--red); font-weight: 600; font-size: .9rem; padding: .72rem 1.75rem; border-radius: 100px; transition: all var(--tr); text-decoration: none; }
.btn-red-outline:hover { background: var(--red); color: #fff; }

/* ── FOOTER ── */
.site-footer { background: var(--white); border-top: 1px solid var(--gray-5); padding: 4rem 0 2rem; }
.footer-brand { font-family: var(--font-h); font-size: 1.2rem; font-weight: 800; color: var(--black); letter-spacing: -.02em; margin-bottom: .5rem; }
.footer-brand span { color: var(--red); }
.footer-desc { font-size: .85rem; color: var(--gray-3); max-width: 240px; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-heading { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gray-3); margin-bottom: .9rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { font-size: .88rem; color: var(--gray-2); transition: color var(--tr); }
.footer-links a:hover { color: var(--red); }
.footer-contact-row { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .7rem; font-size: .87rem; color: var(--gray-2); }
.footer-contact-row i { color: var(--red); font-size: .9rem; margin-top: .2rem; flex-shrink: 0; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-5); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.footer-bottom p { font-size: .8rem; color: var(--gray-4); }
.social-row { display: flex; gap: .5rem; }
.social-btn { width: 34px; height: 34px; border: 1px solid var(--gray-5); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--gray-3); font-size: .85rem; transition: all var(--tr); }
.social-btn:hover { border-color: var(--red); color: var(--red); }
.conductix-tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--gray-3); background: var(--gray-6); border: 1px solid var(--gray-5); padding: .35rem .85rem; border-radius: 100px; margin-top: 1rem; }

/* ── FLOAT WA ── */
.float-wa { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; width: 52px; height: 52px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform var(--tr); text-decoration: none; }
.float-wa:hover { transform: scale(1.1); color: #fff; }

/* ── CONTAINER ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-5); gap: .1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .navbar { position: relative; }
  .hero { padding-top: 2rem; }
  .hero-img-wrap { min-height: 320px; margin-top: 2rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid .big { grid-column: span 1; }
}
@media (max-width: 576px) {
  .hero-btns { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { padding: 1rem 1.5rem 1rem 0; }
  .photo-grid { grid-template-columns: 1fr; }
}
.nav-brand img {
  height: 38px;
  width: auto;
  max-width: 220px;
  mix-blend-mode: multiply;
}
.certs-section .s-title {
  word-break: break-word;
  overflow-wrap: break-word;
}
.h-stat:last-child .h-stat-l {
  font-size: .58rem;
  line-height: 1.4;
}
.cert-card img {
  filter: grayscale(1) brightness(0.3);
}
.cert-card:hover img {
  filter: grayscale(1) brightness(0.2);
}
.cert-card img {
  filter: grayscale(1) brightness(0.3) !important;
}