/* ============================================================
   ET CONSULTORES — styles.css
   Ingeniería Hidráulica · Vial · Infraestructura
   ============================================================ */

/* ------------------------------------------------------------
   1. SELF-HOSTED FONTS
   Montserrat (variable, 400-800) y Lato (300, 400, 700)
   Subconjunto latin, formato woff2, sin dependencia externa.
   ------------------------------------------------------------ */

/* Montserrat — Variable font (todos los pesos en un archivo) */
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-vf-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Lato — Light (300) */
@font-face {
  font-family: 'Lato';
  src: url('../assets/fonts/lato-300-latin.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Lato — Regular (400) */
@font-face {
  font-family: 'Lato';
  src: url('../assets/fonts/lato-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Lato — Bold (700) */
@font-face {
  font-family: 'Lato';
  src: url('../assets/fonts/lato-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------
   2. CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  /* Paleta ET */
  --color-dark: #0B1D2D;
  --color-blue: #0F4C81;
  --color-accent: #22B5E5;
  --color-light: #D5DFE6;
  --color-white: #FFFFFF;

  /* Textos */
  --color-text: #4a5568;
  --color-text-dark: #1a202c;
  --color-text-muted: #718096;

  /* Fondos */
  --color-bg: #FFFFFF;
  --color-bg-light: #f7f9fc;
  --color-bg-section: #EEF3F8;

  /* Tipografía */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;

  /* Espaciado */
  --section-py: 90px;
  --container: 1200px;

  /* Transiciones */
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(11, 29, 45, 0.08);
  --shadow-md: 0 4px 20px rgba(11, 29, 45, 0.12);
  --shadow-lg: 0 8px 40px rgba(11, 29, 45, 0.16);
  --shadow-blue: 0 4px 20px rgba(34, 181, 229, 0.25);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ------------------------------------------------------------
   3. RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin: 0;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: var(--color-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

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

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

button,
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

/* ------------------------------------------------------------
   4. UTILIDADES GLOBALES
   ------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-py {
  padding: var(--section-py) 0;
}

.section-py-sm {
  padding: 60px 0;
}

/* Section Title */
.sec-title {
  margin-bottom: 56px;
}

.sec-title .label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.sec-title h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--color-dark);
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.sec-title h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.sec-title.centered h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.sec-title.centered {
  text-align: center;
}

.sec-title .subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.7;
  max-width: 640px;
}

.sec-title.centered .subtitle {
  margin: 0 auto;
}

.sec-title.light h2,
.sec-title.light .label {
  color: var(--color-white);
}

.sec-title.light h2::after {
  background: var(--color-accent);
}

.sec-title.light .subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn-primary:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn-dark:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Background helpers */
.bg-dark {
  background-color: var(--color-dark);
}

.bg-blue {
  background-color: var(--color-blue);
}

.bg-light {
  background-color: var(--color-bg-light);
}

.bg-section {
  background-color: var(--color-bg-section);
}

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
  border: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.scroll-to-top svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------
   5. PRELOADER
   ------------------------------------------------------------ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-logo {
  width: 160px;
  opacity: 0.9;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 2px;
  animation: preload 0.8s ease forwards;
}

@keyframes preload {
  to {
    width: 100%;
  }
}

/* ------------------------------------------------------------
   6. HEADER
   ------------------------------------------------------------ */
.main-header {
  position: relative;
  z-index: 100;
  width: 100%;
}

/* Top bar */
.header-top {
  background: var(--color-dark);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-heading);
}

.top-info-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.top-info-item a {
  color: rgba(255, 255, 255, 0.65);
}

.top-info-item a:hover {
  color: var(--color-accent);
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.top-social a:hover {
  color: var(--color-accent);
}

.top-social svg {
  width: 15px;
  height: 15px;
}

/* Header principal */
.header-upper {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(11, 29, 45, 0.08);
  transition: var(--transition);
}

.header-upper-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 80px;
}

.logo-outer {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
}

/* Navegación */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav ul li a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-dark);
  transition: var(--transition);
  border-radius: var(--radius-sm);
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--color-blue);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: 16px;
}

/* Sticky header */
.main-header.sticky .header-upper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  animation: slideDown 0.4s ease;
  box-shadow: 0 4px 24px rgba(11, 29, 45, 0.14);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition);
  border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------
   7. HERO / MAIN SLIDER
   ------------------------------------------------------------ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-single {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-single .hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right -120px center;
  background-repeat: no-repeat;
}

/* Hero principal con fallback WebP → PNG */
.hero-bg-main {
  background-image: url('../assets/img/hero_3.png');
  background-image: image-set(
    url('../assets/img/hero_3.webp') type('image/webp'),
    url('../assets/img/hero_3.png') type('image/png')
  );
}

.hero-single .hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(11, 29, 45, 0.88) 0%,
      rgba(15, 76, 129, 0.70) 55%,
      rgba(11, 29, 45, 0.50) 100%);
}



.hero-content {
  position: relative;
  z-index: 5;
  max-width: 720px;
  padding: 100px 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.hero-content h1,
.hero-content .hero-title {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.hero-content h1 span,
.hero-content .hero-title span {
  color: var(--color-accent);
}

.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}


/* Stats bar */
.hero-stats {
  position: relative;
  background: var(--color-blue);
  z-index: 3;
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span {
  color: var(--color-accent);
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0.5px;
}


/* ------------------------------------------------------------
   8. QUIÉNES SOMOS (about)
   ------------------------------------------------------------ */
.about-section {
  padding: var(--section-py) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image .main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.about-image .badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 140px;
  height: 140px;
  background: var(--color-blue);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-white);
}

.about-image .badge .num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.about-image .badge .num span {
  color: var(--color-accent);
}

.about-image .badge .txt {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-top: 4px;
}

.about-content .sec-title {
  margin-bottom: 28px;
}

.about-content p {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.value-tag {
  padding: 14px 16px;
  background: var(--color-bg-section);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.value-tag:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   9. SERVICIOS
   ------------------------------------------------------------ */
.services-section {
  padding: var(--section-py) 0;
  background: var(--color-bg-section);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid rgba(213, 223, 230, 0.6);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-blue), var(--color-accent));
  opacity: 0;
  transition: var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  background: var(--color-bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  transition: var(--transition);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  color: var(--color-blue);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.15);
}

.service-card:hover .service-icon svg {
  color: var(--color-white);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  transition: var(--transition);
}

.service-card p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  transition: var(--transition);
}

.service-card:hover h3,
.service-card:hover p {
  color: var(--color-white);
}

/* Página servicios — bloques detallados */
.service-detail-block {
  padding: 48px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light);
  margin-bottom: 32px;
  transition: var(--transition);
}

.service-detail-block:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(34, 181, 229, 0.3);
}

.service-detail-block .block-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-light);
}

.service-detail-block .block-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-detail-block .block-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-blue);
}

.service-detail-block .block-title h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.service-detail-block .block-title p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.service-detail-block .sub-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.service-detail-block .sub-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
}

.service-detail-block .sub-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Acompañamiento / Alcance de intervención */
.acompanamiento-section {
  background: #f4f8fb;
  position: relative;
  overflow: hidden;
}

.acompanamiento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 60px;
  position: relative;
}

.acompanamiento-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(11, 29, 45, 0.14);
  z-index: 0;
}

.acompanamiento-item {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 10px;
}

.acompanamiento-num {
  width: 70px;
  height: 70px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--color-dark);
  border: 6px solid var(--color-accent);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acompanamiento-item h4 {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.acompanamiento-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .acompanamiento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 30px;
  }

  .acompanamiento-grid::before {
    display: none;
  }
}

@media (max-width: 576px) {
  .acompanamiento-grid {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }

  .acompanamiento-item {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* Etapas de trabajo */
.etapas-section {
  padding: var(--section-py) 0;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.etapas-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(34, 181, 229, 0.05);
}

.etapas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.etapa-item {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.etapa-item:hover {
  background: rgba(34, 181, 229, 0.08);
  border-color: rgba(34, 181, 229, 0.3);
}

.etapa-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: rgba(34, 181, 229, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.etapa-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.etapa-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   10. EXPERIENCIA / EQUIPO
   ------------------------------------------------------------ */
.team-section {
  padding: var(--section-py) 0;
  background: var(--color-bg-section);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-card-img img {
  transform: scale(1.05);
}

.team-card-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 76, 129, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.team-card:hover .team-card-img .overlay {
  opacity: 1;
}

.team-card-body {
  padding: 24px 28px;
}

.team-card-body h3 {
  font-size: 18px;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.team-card-body .role {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.team-card-body .specialty {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Placeholder equipo */
.team-placeholder {
  background: var(--color-bg-section);
  border: 2px dashed var(--color-light);
  border-radius: var(--radius-md);
  padding: 48px 28px;
  text-align: center;
}

.team-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-light);
  margin: 0 auto 16px;
}

.team-placeholder p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   11. METODOLOGÍA
   ------------------------------------------------------------ */
.methodology-section {
  padding: var(--section-py) 0;
}

.methodology-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.methodology-steps::before {
  content: '';
  position: absolute;
  top: 42px;
  left: calc(12.5% + 42px);
  right: calc(12.5% + 42px);
  height: 2px;
  background: var(--color-light);
  z-index: 0;
}

.method-step {
  position: relative;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.step-number {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  border: 5px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 28px;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.method-step:hover .step-number {
  background: var(--color-accent);
  border-color: var(--color-dark);
  transform: scale(1.08);
}

.method-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.method-step p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   12. NOSOTROS — HISTORIA / MISIÓN / VALORES
   ------------------------------------------------------------ */
.mision-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.mv-card {
  padding: 40px 36px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.mv-card.mision {
  background: var(--color-dark);
}

.mv-card.vision {
  background: var(--color-blue);
}

.mv-card .mv-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.2);
}

.mv-card h3 {
  font-size: 20px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.mv-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.8;
}

.mv-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.valores-section {
  padding: 56px 0;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.valor-card {
  padding: 28px;
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-top: 4px solid var(--color-accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: var(--transition);
}

.valor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.valor-card {
  min-height: 210px;
}

.valor-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.valor-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Historia */
.historia-section {
  padding: var(--section-py) 0;
  background: var(--color-bg-section);
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.historia-text p {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 20px;
}

.historia-text .highlight {
  padding: 24px 28px;
  background: var(--color-dark);
  border-left: 4px solid var(--color-accent);
  margin-top: 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.historia-text .highlight p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  margin: 0;
  font-style: italic;
}

.historia-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.h-stat {
  padding: 28px 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-bottom: 3px solid var(--color-accent);
}

.h-stat .num {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.h-stat .lbl {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ------------------------------------------------------------
   13. CONTACTO
   ------------------------------------------------------------ */
.contact-section {
  padding: var(--section-py) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  padding: 44px 40px;
  background: var(--color-dark);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.contact-info::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(34, 181, 229, 0.06);
}

.contact-info h3 {
  font-size: 22px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.contact-info .subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.contact-info-item .ci-icon {
  width: 40px;
  height: 40px;
  background: rgba(34, 181, 229, 0.12);
  border: 1px solid rgba(34, 181, 229, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item .ci-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.contact-info-item .ci-text label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.contact-info-item .ci-text span,
.contact-info-item .ci-text a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-info-item .ci-text a:hover {
  color: var(--color-accent);
}

.contact-social {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.contact-social p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.contact-social-links {
  display: flex;
  gap: 10px;
}

.contact-social-links a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.contact-social-links a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.contact-social-links svg {
  width: 15px;
  height: 15px;
}

/* Formulario */
.contact-form-wrapper {
  padding: 44px 40px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light);
}

.contact-form-wrapper h3 {
  font-size: 22px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.contact-form-wrapper .subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--color-text-dark);
  background: var(--color-bg-light);
  border: 1.5px solid var(--color-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(34, 181, 229, 0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.form-group .error-msg {
  display: block;
  font-size: 12px;
  color: #e53e3e;
  margin-top: 5px;
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aab1bb;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 14px;
}

.form-success {
  display: none;
  padding: 20px;
  background: #f0fff4;
  border: 1px solid #68d391;
  border-radius: var(--radius-sm);
  text-align: center;
  color: #276749;
  font-size: 15px;
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}


.quick-info-section {
  padding: var(--section-py) 0;
  background: var(--color-bg-section);
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quick-info-card {
  position: relative;
  overflow: hidden;

  background: #fff;
  border: 1px solid rgba(11, 29, 45, 0.10);
  border-radius: 12px;

  padding: 36px 30px;

  text-align: center;

  min-height: 220px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  transition: all .35s ease;
}

.quick-info-card {
  box-shadow: 0 10px 25px rgba(11, 29, 45, 0.05);
}

.quick-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transition: left .35s ease;
}

.quick-info-card:hover::before {
  left: 0;
}

.quick-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(11, 29, 45, 0.08);
}

.quick-info-icon {
  width: 64px;
  height: 64px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px;

  border-radius: 50%;

  background: rgba(34, 181, 229, 0.08);
}

/* Tablet */
@media (max-width: 992px) {
  .quick-info-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .quick-info-section {
    padding: 56px 0;
  }

  .quick-info-grid {
    gap: 18px;
  }
}

/* ------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------ */
.main-footer {
  background: #06121D;
}

.footer-top {
  padding: 64px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand .footer-logo {
  margin-bottom: 18px;
}

.footer-brand .footer-logo img {
  height: 48px;
  width: auto;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
}

.footer-contact-list li svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-list li a {
  color: rgba(255, 255, 255, 0.50);
}

.footer-contact-list li a:hover {
  color: var(--color-accent);
}

/* Footer bottom */
.footer-bottom {
  padding: 18px 0;
  background: var(--color-white);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright {
  font-size: 13px;
  color: var(--color-text-dark);
  font-weight: 400;
}

.copyright strong {
  font-weight: 700;
}

.footer-nav-bottom {
  display: flex;
  gap: 20px;
}

.footer-nav-bottom a {
  font-size: 13px;
  color: #64748b;
  transition: var(--transition);
}

.footer-nav-bottom a:hover {
  color: var(--color-blue);
}

/* ------------------------------------------------------------
   15. PAGE TITLE / BANNER INTERIOR
   ------------------------------------------------------------ */
.page-banner {
  position: relative;
  padding: 20px 0 22px;
  background: var(--color-dark);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 29, 45, 0.95) 0%, rgba(15, 76, 129, 0.85) 100%);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.48);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

.breadcrumb .current {
  color: rgba(34, 181, 229, 0.75);
}

/* ------------------------------------------------------------
   16. CTA SECTION
   ------------------------------------------------------------ */
.cta-section {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: 10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(34, 181, 229, 0.08);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.cta-text h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   17. ANIMACIONES SCROLL
   ------------------------------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Delay helpers */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* ------------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------------ */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --section-py: 72px;
  }

  .header-top-left {
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .methodology-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .methodology-steps::before {
    display: none;
  }

  .etapas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .historia-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .historia-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Mobile grande (≤768px) ---- */
@media (max-width: 768px) {
  :root {
    --section-py: 56px;
  }

  .header-top {
    display: none;
  }

  .header-upper-inner {
    padding: 0 4px;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 200;
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .main-nav.open ul li {
    width: 100%;
  }

  .main-nav.open ul li a {
    padding: 12px 16px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-single {
    min-height: 480px;
  }

  .hero-content {
    padding: 60px 0;
  }

  .hero-btns .btn:last-child {
    display: none;
  }

  .hero-stats-inner {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image .badge {
    width: 100px;
    height: 100px;
    right: 0;
    bottom: -16px;
  }

  .about-image .badge .num {
    font-size: 24px;
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .mision-vision-grid {
    grid-template-columns: 1fr;
  }

  .valores-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper,
  .contact-info {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-nav-bottom {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .metodologia-steps {
    grid-template-columns: 1fr;
  }

  .etapas-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-block {
    padding: 28px 20px;
  }

  .service-detail-block .sub-items {
    grid-template-columns: 1fr;
  }

  .historia-stats {
    grid-template-columns: 1fr 1fr;
  }

  .historia-content {
    grid-template-columns: 1fr;
    gap: 40px;
    overflow-x: hidden;
  }

  .historia-text,
  .historia-stats,
  .h-stat {
    min-width: 0;
  }

  .historia-stats {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-col {
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-logo,
  .footer-social,
  .footer-contact-list li {
    justify-content: center;
  }

  .footer-links li a {
    justify-content: center;
  }

  .footer-contact-list li {
    align-items: center;
  }

  .footer-logo img {
    margin-left: auto;
    margin-right: auto;
  }

}

/* ---- Mobile pequeño (≤480px) ---- */
@media (max-width: 480px) {

  .hero-content h1,
  .hero-content .hero-title {
    font-size: 28px;
  }

  .sec-title h2 {
    font-size: 24px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .historia-stats {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   ACCESIBILIDAD — Foco visible y movimiento reducido
   ------------------------------------------------------------ */

/* Foco visible consistente para navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Respetar la preferencia de movimiento reducido del usuario */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* formulario */
.form-hp {
  display: none;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
  cursor: pointer;
}

.privacy-check input {
  margin-top: 4px;
}

#submitBtn {
  position: relative;
}

#submitBtn .btn-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

#submitBtn.is-loading .btn-default {
  display: none;
}

#submitBtn.is-loading .btn-loading {
  display: inline-flex;
}

#submitBtn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-success,
.form-error {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
}

.form-success {
  background: rgba(34, 197, 94, 0.10);
  color: #15803d;
}

.form-error {
  background: rgba(220, 38, 38, 0.10);
  color: #b91c1c;
}


/* Legal notice */

.privacy-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--color-blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.privacy-link:hover {
  color: var(--color-accent);
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.privacy-modal.is-open {
  display: block;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 29, 45, 0.72);
}

.privacy-modal-box {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 8vh auto;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.privacy-modal-box h3 {
  margin-bottom: 18px;
  color: var(--color-dark);
}

.privacy-modal-box p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.privacy-modal-box a {
  color: var(--color-blue);
  font-weight: 600;
}

.privacy-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-text-muted);
}

@media (max-width: 680px) {
  .privacy-modal-box {
    margin: 6vh 18px;
    padding: 28px 22px;
  }
}


.privacy-modal-actions{
    margin-top:32px;
    text-align:right;
}