/* ==========================================================================
   CADRIX GESTIÓN COMERCIAL - HOJA DE ESTILOS PRINCIPAL
   Paleta: Navy Profundo (#132C46), Teal (#299493), Carbón (#333333),
           Blanco (#FFFFFF), Gris Claro (#EEF3F6)
   Tipografía: Manrope
   ========================================================================== */

:root {
  --navy: #132C46;
  --navy-deep: #0D1F33;
  --teal: #299493;
  --teal-dark: #1E7473;
  --teal-light: #3DB7B5;
  --charcoal: #333333;
  --text-muted: #526273;
  --white: #FFFFFF;
  --gray-light: #EEF3F6;
  --border-subtle: rgba(19, 44, 70, 0.1);
  --shadow-sm: 0 4px 16px rgba(19, 44, 70, 0.06);
  --shadow-md: 0 12px 32px rgba(19, 44, 70, 0.1);
  --shadow-lg: 0 20px 48px rgba(19, 44, 70, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 80px;
}

/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Tipografía y utilidades */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.eyebrow-light {
  color: var(--teal-light);
}

.accent-dot {
  color: var(--teal);
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
  position: relative;
}

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 18px;
}

.section-title.title-light {
  color: var(--white);
}

.section-intro {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

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

.btn-navy:hover {
  background-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(41, 148, 147, 0.28);
}

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

.btn-teal:hover {
  background-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(19, 44, 70, 0.24);
}

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

.btn-outline-teal:hover {
  background-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN (TRANSPARENTE EN HERO -> BLANCO FROSTED AL HACER SCROLL)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(13, 31, 51, 0.25);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.brand-logo .logo-dark {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled .brand-logo .logo-light {
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled .brand-logo .logo-dark {
  opacity: 1;
  pointer-events: auto;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.site-header.scrolled .nav-link {
  color: var(--navy);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--teal-light);
  transition: width var(--transition), background-color var(--transition);
}

.site-header.scrolled .nav-link::after {
  background-color: var(--teal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-light);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--teal-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions .btn {
  display: none;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), border-color var(--transition);
}

.site-header.scrolled .menu-toggle {
  background: var(--gray-light);
  border-color: var(--border-subtle);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background-color var(--transition);
}

.site-header.scrolled .menu-toggle span {
  background-color: var(--navy);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background-color: var(--navy);
  color: var(--white);
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform var(--transition);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-drawer-header img {
  height: 38px;
  width: auto;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  padding: 4px 8px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-link {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition);
}

.mobile-link:hover {
  color: var(--teal-light);
}

.mobile-cta {
  margin-top: 12px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 51, 0.6);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   1. HERO FULL-BLEED EJECUTIVO
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--navy-deep);
  color: var(--white);
  padding-top: calc(var(--header-height) + clamp(48px, 6vw, 88px));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg,
      rgba(13, 31, 51, 0.94) 0%,
      rgba(19, 44, 70, 0.86) 52%,
      rgba(19, 44, 70, 0.68) 100%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-content {
  max-width: 780px;
}

.hero-title {
  font-size: clamp(2.15rem, 4.6vw, 3.65rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 22px;
}

.hero-title .accent-dot {
  color: var(--teal-light);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 14px;
}

.hero-sublead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Marquee Bar */
.marquee-bar {
  position: relative;
  z-index: 1;
  background-color: var(--navy-deep);
  color: var(--white);
  padding: 16px 0;
  overflow: hidden;
  border-top: 2px solid var(--teal);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-content .dot {
  color: var(--teal-light);
  font-size: 1.1rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   3. SERVICIOS
   ========================================================================== */
.services-section {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background-color: var(--gray-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  background-color: var(--white);
  border-color: rgba(41, 148, 147, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.service-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 0.08em;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   2. NOSOTROS (QUIÉNES SOMOS + MISIÓN + VISIÓN)
   ========================================================================== */
.about-section {
  background-color: var(--gray-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 56px;
}

.about-photo-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-accent-frame {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
}

.about-text {
  font-size: 1.02rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.about-text:last-child {
  margin-bottom: 0;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.mv-card {
  background-color: var(--white);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.mv-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.mv-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mv-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.mv-text {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ==========================================================================
   VALORES (BANDA OSCURA NAVY CON LOGO CADRIX_BCO)
   ========================================================================== */
.values-section {
  background-color: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.values-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.values-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.values-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 44, 70, 0.94) 0%, rgba(13, 31, 51, 0.86) 100%);
}

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

.values-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.values-brand-mark img {
  height: 46px;
  width: auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}

.value-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(41, 148, 147, 0.32);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  background: rgba(41, 148, 147, 0.16);
  border-color: var(--teal-light);
}

.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: rgba(41, 148, 147, 0.2);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

/* ==========================================================================
   4. METODOLOGÍA DE TRABAJO
   ========================================================================== */
.methodology-section {
  background-color: var(--white);
}

.methodology-subtitle {
  margin-top: 16px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.methodology-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  position: relative;
}

.step-item {
  background-color: var(--gray-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.step-item:hover {
  background-color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-marker {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(41, 148, 147, 0.25);
}

.step-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.55;
}

/* ==========================================================================
   5. CONTACTO
   ========================================================================== */
.contact-section {
  background-color: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}

.contact-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 18px;
}

.contact-lead {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-data-heading {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: border-color var(--transition), transform var(--transition);
}

.contact-pill:hover {
  border-color: var(--teal);
  transform: translateX(4px);
}

.pill-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(41, 148, 147, 0.12);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-text {
  font-size: 0.95rem;
  color: var(--charcoal);
  min-width: 0;
  overflow-wrap: break-word;
}

.contact-form-card {
  background-color: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background-color: var(--gray-light);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(41, 148, 147, 0.16);
}

.form-feedback {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 22px;
}

.form-feedback.success {
  color: var(--teal-dark);
}

.form-feedback.error {
  color: #B42318;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy-deep);
  color: var(--white);
  padding: 36px 0;
  border-top: 3px solid var(--teal);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

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

.footer-copy {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.footer-link-btn:hover {
  color: var(--teal-light);
}

.back-to-top {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), transform var(--transition);
}

.back-to-top:hover {
  background-color: var(--teal-light);
  transform: translateY(-3px);
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 31, 51, 0.65);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px);
  transition: transform var(--transition);
}

.modal.open .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
  font-size: 1.25rem;
  color: var(--navy);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
}

.modal-body p {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

/* ==========================================================================
   ANIMACIONES SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   MEDIA QUERIES (TABLET & DESKTOP)
   ========================================================================== */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 960px) {
  .main-nav {
    display: block;
  }

  .header-actions .btn {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

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

  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
  }

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

  .step-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px;
  }

  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
  }

  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}