/* ============ CC&NDT México — estilos ============ */

:root{
  --dark: #262b31;
  --dark-2: #3a414a;
  --dark-3: #4c545f;
  --orange: #e2691f;
  --orange-dark: #c0530f;
  --orange-light: #f0954f;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --gray: #5c6470;
  --gray-light: #88919b;
  --border: #e6e8eb;
  --radius: 14px;
  --shadow: 0 20px 45px -25px rgba(38,43,49,0.35);
  --font-head: "Barlow Condensed", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

ul{ list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4{
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}

h1{ font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1em; color: var(--gray); }

.container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section{ padding: 96px 0; }
.section-alt{ background: var(--bg-alt); }

.section-head{ max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head--tight{ margin-bottom: 32px; }
.section-lead{ font-size: 1.05rem; }

.tag{
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  font-size: .85rem;
  margin-bottom: 12px;
}
.tag-light{ color: var(--orange-light); }

/* ============ Botones ============ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary{
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(226,105,31,.55);
}
.btn-primary:hover{ background: var(--orange-dark); transform: translateY(-2px); }

.btn-outline{
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline:hover{ background: rgba(255,255,255,.12); transform: translateY(-2px); }

.btn-outline-light{
  border-color: rgba(255,255,255,.4);
  color: #fff;
  margin-top: 12px;
}
.btn-outline-light:hover{ background: rgba(255,255,255,.1); }

.btn-block{ width: 100%; }

.link-arrow{
  display: inline-block;
  font-weight: 600;
  color: var(--dark);
  font-size: .92rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  transition: color .18s ease;
}
.link-arrow:hover{ color: var(--orange); }

/* ============ Header ============ */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled{
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.35);
  border-bottom-color: var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  gap: 24px;
  height: 82px;
}

.brand{ display: flex; align-items: center; flex-shrink: 0; }
.brand-logo{ height: 56px; width: auto; }

.nav{ flex: 1; }
.nav ul{ display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.nav a{
  font-size: .93rem;
  font-weight: 600;
  color: var(--dark-2);
  position: relative;
  padding: 6px 0;
}
.nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .2s ease;
}
.nav a:hover{ color: var(--orange); }
.nav a:hover::after{ width: 100%; }

.btn-nav{ padding: 11px 22px; font-size: .88rem; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{
  width: 26px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  position: fixed;
  top: 82px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 490;
  box-shadow: 0 20px 30px -25px rgba(0,0,0,.4);
}
.mobile-nav.open{
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.mobile-nav ul{ padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a{
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--dark-2);
  border-bottom: 1px solid var(--border);
}
.mobile-nav li:last-child a{ border-bottom: none; margin-top: 10px; text-align: center; }

/* ============ Hero ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero-media{ position: absolute; inset: 0; z-index: 0; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(20,22,26,.92) 10%, rgba(30,33,38,.72) 55%, rgba(226,105,31,.35) 130%);
}

.hero-content{
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 90px;
  max-width: 820px;
}
.hero .eyebrow{
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--orange-light);
  margin-bottom: 18px;
  font-size: .95rem;
}
.hero h1{ color: #fff; margin-bottom: 22px; }
.hero-lead{ color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 620px; margin-bottom: 34px; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badges{
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
}
.hero-badges-inner{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding: 22px 24px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: rgba(255,255,255,.9);
}
.hero-badges-inner span{ display: flex; align-items: center; gap: 8px; }
.hero-badges-inner span::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ============ Split (Nosotros) ============ */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.split-copy p{ font-size: 1.02rem; }
.stat-row{
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat-row li{ display: flex; flex-direction: column; }
.stat-row strong{
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--orange);
  line-height: 1;
}
.stat-row span{ font-size: .85rem; color: var(--gray); margin-top: 6px; }

/* ============ Política ============ */
.policy{
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 96px 0;
}
.policy-inner{ max-width: 860px; margin: 0 auto; text-align: center; }
.policy h2{ color: #fff; }
.policy-text{ color: rgba(255,255,255,.78); font-size: 1.02rem; }
.policy-pillars{
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.pillar{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 22px 28px;
  min-width: 140px;
  font-weight: 600;
  font-size: .9rem;
}
.pillar-icon{ font-size: 1.7rem; }

/* ============ Servicios ============ */
.service-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card-media{ height: 200px; overflow: hidden; }
.service-card-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-card-media img{ transform: scale(1.06); }
.service-card-media--icon{
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  font-size: 3.4rem;
}
.service-card-body{ padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-card-body p{ flex: 1; font-size: .95rem; }

/* ============ Certificación de grúas ============ */
.equip-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 24px;
  margin-bottom: 64px;
}
.equip-card{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px -20px rgba(38,43,49,.3);
}
.equip-card img{ width: 100%; height: 190px; object-fit: cover; }
.equip-card h3{ font-size: 1.05rem; margin: 16px 18px 4px; }
.equip-card p{ font-size: .88rem; margin: 0 18px 18px; }

.equip-card--big{ grid-column: span 2; }
.equip-card--big img{ height: 230px; }
.equip-card-tags{ display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.equip-card-tags img{ height: 110px; }

.equip-card--list{
  grid-column: span 2;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-style: dashed;
}
.equip-card--list h3{ margin: 0 0 8px; }
.equip-card--list p{ margin: 0; font-size: .88rem; }

.tool-gallery{ margin-top: 20px; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.gallery-grid img{
  width: 100%; height: 150px; object-fit: cover;
  border-radius: 10px;
  transition: transform .25s ease;
}
.gallery-grid img:hover{ transform: scale(1.04); }

/* ============ NDT ============ */
.ndt-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.ndt-card{ text-align: left; }
.ndt-card-media{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  height: 170px;
}
.ndt-card-media img{ width: 100%; height: 100%; object-fit: cover; }
.ndt-card h3{ font-size: 1.05rem; }
.ndt-card p{ font-size: .9rem; }

/* ============ Video ============ */
.video-section{
  background: linear-gradient(160deg, var(--dark-2) 0%, var(--dark) 100%);
  padding: 96px 0;
  color: #fff;
}
.video-inner{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.video-copy h2{ color: #fff; }
.video-copy p{ color: rgba(255,255,255,.78); }
.video-media video{
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}

/* ============ Capacitación ============ */
.training-banner{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}
.training-banner img{ width: 100%; max-height: 420px; object-fit: cover; }

.course-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.course-grid ul{ display: flex; flex-direction: column; gap: 10px; }
.course-grid li{
  font-size: .92rem;
  color: var(--dark-2);
  padding-left: 22px;
  position: relative;
}
.course-grid li::before{
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  background: var(--orange);
  border-radius: 2px;
}
.course-more{ font-weight: 700; color: var(--orange) !important; }
.course-more::before{ display: none; }

/* ============ Contacto ============ */
.contact{
  background: linear-gradient(160deg, var(--dark) 0%, #1c2025 100%);
  color: #fff;
}
.contact-inner{
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 56px;
}
.contact .tag{ color: var(--orange-light); }
.contact h2{ color: #fff; }
.contact-copy > p{ color: rgba(255,255,255,.78); max-width: 480px; }

.contact-list{ display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.contact-list li{ display: flex; gap: 16px; align-items: flex-start; }
.contact-icon{
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-list li > div{ display: flex; flex-direction: column; gap: 3px; }
.contact-list strong{ font-size: 1rem; }
.contact-list span{ color: rgba(255,255,255,.6); font-size: .85rem; }
.contact-list a{ font-weight: 600; }
.contact-list a:hover{ color: var(--orange-light); }

.contact-cta{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 36px;
  align-self: start;
}
.contact-cta h3{ color: #fff; margin-bottom: 8px; }
.contact-cta p{ color: rgba(255,255,255,.72); font-size: .92rem; }

/* ============ Footer ============ */
.site-footer{
  background: #16181b;
  color: rgba(255,255,255,.6);
  padding: 48px 0 28px;
  text-align: center;
}
.footer-logo{
  height: 56px;
  margin: 0 auto 20px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  display: block;
}
.footer-inner p{ color: rgba(255,255,255,.55); max-width: 560px; margin: 0 auto 14px; font-size: .88rem; }
.footer-copy{ font-size: .8rem; margin-top: 18px; color: rgba(255,255,255,.35); }

/* ============ WhatsApp flotante ============ */
.whatsapp-float{
  position: fixed;
  right: 24px; bottom: 24px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.6);
  z-index: 400;
  transition: transform .2s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }

/* ============ Animación de aparición ============ */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px){
  .equip-grid{ grid-template-columns: repeat(2, 1fr); }
  .equip-card--big{ grid-column: span 2; }
  .ndt-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
  .course-grid{ grid-template-columns: repeat(2, 1fr); }
  .video-inner{ grid-template-columns: 1fr; }
  .video-media{ order: -1; }
}

@media (max-width: 900px){
  .nav, .btn-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .split{ grid-template-columns: 1fr; gap: 40px; }
  .split-media img{ height: 320px; }
  .service-grid{ grid-template-columns: 1fr; }
  .contact-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 620px){
  .section{ padding: 64px 0; }
  .hero-content{ padding-top: 120px; padding-bottom: 60px; }
  .equip-grid{ grid-template-columns: 1fr; }
  .equip-card--big{ grid-column: span 1; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .ndt-grid{ grid-template-columns: 1fr; }
  .course-grid{ grid-template-columns: 1fr 1fr; }
  .stat-row{ gap: 20px; }
  .header-inner{ height: 72px; }
  .brand-logo{ height: 46px; }
  .mobile-nav{ top: 72px; }
}

@media (max-width: 420px){
  .course-grid{ grid-template-columns: 1fr; }
  .hero-badges-inner{ font-size: .78rem; gap: 10px 20px; }
}
