:root {
  --primary: #142286;
  --primary-dark: #0d165c;
  --accent: #e84118;
  --accent-hover: #cf3712;
  --dark: #1e2022;
  --muted: #5a626a;
  --light: #f8f9fa;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-info h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.brand-info span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* HERO */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(20, 34, 134, 0.85)), 
              url('../img/vapeu03.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 5.5rem 0;
}

.hero-content {
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero h2 {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero h2 span {
  color: #ff6b4a;
}

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2.2rem;
  max-width: 680px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* RECONOCIMIENTO HUAICO I */
.banner-award {
  background-color: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.award-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--white);
  border-left: 6px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.award-badge-pill {
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  white-space: nowrap;
}

.award-box h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.award-box p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* MÉTRICAS */
.metrics {
  padding: 3.5rem 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.metric-item strong {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

/* SECCIONES Y GRILLAS */
.section {
  padding: 4.5rem 0;
}

.section-gray {
  background-color: var(--light);
}

.section-head {
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.75rem;
}

.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: var(--accent);
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
}

.project-img-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  overflow: hidden;
}

.project-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  z-index: 2;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.project-location {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.project-meta {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--dark);
  font-weight: 600;
}

/* FOOTER */
.site-footer {
  background-color: var(--dark);
  color: #a0aec0;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

@media (max-width: 868px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary);
  }
  .nav-menu.open {
    display: flex;
  }
  .hero h2 {
    font-size: 2.1rem;
  }
  .award-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   PÁGINAS INTERNAS & NOSOTROS
   ========================================================================== */

/*.page-header {
  background: linear-gradient(135deg, #0f172a 0%, #142286 100%);
  color: var(--white);
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--accent);
}*/

.page-header {
  background: linear-gradient(rgba(15, 23, 42, 0.78), rgba(20, 34, 134, 0.88)), 
              url('../img/vapeu03.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 4.5rem 0;
  border-bottom: 3px solid var(--accent);
}
.page-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.page-header p {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 600px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.img-fallback {
  height: 420px;
  background: linear-gradient(135deg, var(--primary), #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.sub-badge {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  line-height: 1.25;
  margin: 0.4rem 0 1.2rem;
}

.about-text p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.about-quote {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background-color: var(--light);
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: var(--dark);
  font-weight: 500;
  border-radius: 0 var(--radius) var(--radius) 0;
}

@media (max-width: 868px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-img,
  .img-fallback {
    height: 280px;
  }
}

/* ==========================================================================
   CONTACTO (ESTILO THD)
   ========================================================================== */

.contact-card-wrapper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.contact-form-card {
  width: 100%;
  max-width: 580px;
  background-color: #f1f3f5;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.contact-form-card .form-group {
  margin-bottom: 1.25rem;
}

.contact-form-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.contact-form-card .form-control {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  transition: var(--transition);
}

.contact-form-card .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 34, 134, 0.12);
}

.contact-form-card textarea.form-control {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

.btn-dark-pill {
  background-color: #0b0f19;
  color: #ffffff;
  padding: 0.8rem 2.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-dark-pill:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 65, 24, 0.25);
}

/* Isotipo flotante circular estilo THD */
.contact-badge-circle {
  position: absolute;
  right: 40px;
  width: 220px;
  height: 220px;
  background-color: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 8px solid var(--white);
  pointer-events: none;
}

.badge-logo-img {
  width: 130px;
  height: auto;
  object-fit: contain;
}

/* Sección Ubicación THD */
.location-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: flex-start;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.location-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.location-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.link-hover {
  color: var(--primary);
  text-decoration: underline;
}

.link-hover:hover {
  color: var(--accent);
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.location-map iframe {
  display: block;
}

/* Responsive para tablet y mobile */
@media (max-width: 868px) {
  .contact-card-wrapper {
    flex-direction: column;
  }
  .contact-form-card {
    max-width: 100%;
    padding: 1.8rem;
  }
  .contact-badge-circle {
    display: none; /* Se oculta en pantallas chicas para no tapar el form */
  }
  .location-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   SERVICIOS (ESTILO DESGLOSE TÉCNICO THD)
   ========================================================================== */

.services-detail-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-detail-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-detail-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.service-detail-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.service-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.service-specs-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  background-color: var(--light);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid #edf2f7;
}

.spec-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 800;
}

.spec-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.45;
}

.spec-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.spec-highlight {
  border-left: 2px solid var(--border);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spec-highlight p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.spec-highlight p strong {
  color: var(--dark);
}

/* Banner de Cierre CTA */
.services-cta {
  background: linear-gradient(135deg, #0f172a 0%, #142286 100%);
  color: var(--white);
  padding: 3.5rem 0;
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-flex h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.cta-flex p {
  color: #cbd5e1;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 868px) {
  .service-detail-item {
    padding: 1.5rem;
  }
  .service-specs-grid {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }
  .spec-highlight {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.2rem;
  }
  .cta-flex {
    flex-direction: column;
    text-align: center;
  }
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .cta-buttons .btn {
    text-align: center;
  }
}

/* Filtros de Obras */
.filter-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: flex-start;
}

.filter-btn {
  background-color: var(--white);
  border: 1px solid #cbd5e1;
  color: var(--muted);
  padding: 0.55rem 1.3rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(20, 34, 134, 0.25);
}

.project-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   ESTILOS PARA BROCHURES & VISORES DE DESCARGA
   ========================================================================== */

.section-brochures {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.brochures-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem auto;
}

.brochures-header h2 {
    font-size: 2rem;
    color: #0f172a;
    margin: 0.5rem 0 1rem 0;
}

.brochures-header p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
}

.brochures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.brochure-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brochure-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08);
}

.brochure-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: #dc2626;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 48px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.brochure-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e3a8a;
    background: #eff6ff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.brochure-info h3 {
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.brochure-info p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.brochure-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.brochure-meta li {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.brochure-meta li strong {
    color: #334155;
}

.brochure-action .btn {
    width: 100%;
    text-align: center;
    display: block;
    padding: 0.85rem 1.2rem;
}
/* ==========================================================================
   VIDEO HERO (PORTADA NOSOTROS)
   ========================================================================== */

.video-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background-color: #0f172a;
}

.video-hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: block;
}





/* ==========================================================================
   MÉTRICAS CON ÍCONOS (ESTILO RAC)
   ========================================================================== */
.intro-statement {
    max-width: 860px;
    margin: 0 auto 3.5rem auto;
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    color: #334155;
    line-height: 1.7;
}

.rac-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.rac-metric-card {
    background: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rac-icon {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.rac-number {
    font-size: 2.6rem;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.rac-label {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.4;
}

/* ==========================================================================
   CARRUSEL EQUIPO
   ========================================================================== */
.carousel-container {
    position: relative;
    max-width: 960px;
    margin: 2.5rem auto 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    background: #0f172a;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 480px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    font-size: 1.8rem;
    padding: 1rem 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(15, 23, 42, 0.9);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Alineación perfecta superior para Misión y Visión */
.mision-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3.5rem;
    align-items: start !important; /* Fuerza a que ambas columnas arranquen arriba */
}

.mision-vision-grid .about-text {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mision-vision-grid h3 {
    margin-bottom: 1.25rem;
}
/* ==========================================================================
   VIDEO PANORÁMICO EN HOME (INDEX)
   ========================================================================== */
.section-home-video {
    padding: 3rem 0;
    background-color: #ffffff;
}

.home-video-wrapper {
    position: relative;
    width: 100%;
    height: 480px; /* Altura equilibrada y armónica */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
    background-color: #0f172a;
}

.home-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .section-home-video {
        padding: 1.5rem 0;
    }
    .home-video-wrapper {
        height: 280px; /* Adaptación a pantallas móviles */
        border-radius: 8px;
    }
}

/* ==========================================================================
   IMAGEN PANORÁMICA AL PIE DE CADA SERVICIO
   ========================================================================== */
.service-banner-img {
    margin-top: 2rem;
    width: 100%;
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.08);
}

.service-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-detail-item:hover .service-banner-img img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .service-banner-img {
        height: 180px;
        margin-top: 1.5rem;
    }
}

/* ==========================================================================
   TEXTO CENTRADO SOBRE VIDEO HERO (PORTADA INDEX)
   ========================================================================== */
.video-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
    pointer-events: none;
}

.hero-claim {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .hero-claim {
        font-size: 2.2rem;
    }
}
/* ==========================================================================
   AJUSTES PORTADA SIMPLE EN PÁGINAS INTERNAS
   ========================================================================== */
.page-header h2 {
    margin-top: 0;
    letter-spacing: 0.5px;
}

/* Espaciado del título directo en la cabecera del servicio */
.service-detail-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary);
}
/* ==========================================================================
   AJUSTES PARA TARJETAS MINIMALISTAS DE PROYECTOS
   ========================================================================== */
.project-card {
    cursor: pointer;
    border-radius: 10px;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-img-wrapper img {
    transition: transform 0.4s ease;
}

.project-body h3 {
    margin-bottom: 0.25rem;
}

.project-location {
    margin-bottom: 0; /* Quita el margen inferior sobrante al no tener descripción */
}
/* ==========================================================================
   SOLUCIÓN RESPONSIVE LISTAS Y GRILLAS EN MÓVIL (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Fuerza a que cualquier lista con atributo style="columns: 2..." pase a 1 columna en móvil */
    .spec-col ul[style*="columns"] {
        columns: 1 !important;
        -webkit-columns: 1 !important;
        column-count: 1 !important;
        gap: 0 !important;
    }

    /* Reduce los rellenos internos de la tarjeta en celulares */
    .service-detail-item {
        padding: 1.25rem 1rem !important;
    }

    /* Reduce el relleno del bloque gris */
    .service-specs-grid {
        padding: 1.1rem 0.9rem !important;
        gap: 1.5rem !important;
    }

    /* Ajuste de tipografía y sangría de viñetas */
    .spec-list li {
        font-size: 0.88rem !important;
        padding-left: 1.2rem !important;
        margin-bottom: 0.5rem !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    .spec-list li::before {
        font-size: 0.7rem !important;
    }

    /* Asegura que la columna de trayectoria no desborde */
    .spec-highlight {
        padding-top: 1rem !important;
        padding-left: 0 !important;
        border-left: none !important;
        border-top: 1px solid var(--border) !important;
    }
}


/* Redes Sociales en Footer */
.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.2rem;
    align-items: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #262626;
    color: #e5e7eb;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #3f3f46;
}

.social-btn svg {
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
}

.social-btn.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}