:root {
  --navy-deep: #1B2348;
  --navy-mid: #253368;
  --navy-accent: #3B4F8A;
  --ice: #F4F6FA;
  --silver-perla: #C3C9D6;
  --silver-mid: #AAB2C0;
  --accent: #F4F6FA;
  --white: #FFFFFF;
  --accent-glow: rgba(244, 246, 250, 0.12);
  --border: rgba(195, 201, 214, 0.10);
  --border-strong: rgba(195, 201, 214, 0.18);
  --swal-success: #b9c6ba;
  --swal-error: #e74c5e;
  --swal-warning: #f0c040;
  --accent-blue: #1B59F8;
  --text-body: #4A5568;

  --font-title: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--silver-perla);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
}



.reveal {
  opacity: 0;
  transform: translateY(24px);
}

body.nav-open {
  overflow: hidden;
}



header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

header.header-scrolled {
  background: rgba(27, 35, 72, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 80px;
  padding: 14px 0;
  min-height: 64px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.logo-icon {
  flex-shrink: 0;
  color: var(--silver-perla);
}

.brand {
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--silver-mid);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--silver-perla); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--silver-perla);
  margin: 5px 0;
  transition: all 0.25s ease;
  border-radius: 1px;
}



.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 5px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.78rem;
  border-radius: 5px;
  justify-self: end;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--navy-deep);
  border: 1px solid var(--silver-perla);
}
.btn-accent:hover {
  background: var(--white);
  border-color: var(--white);
}

.btn-outline {
  border: 1px solid var(--silver-mid);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}



.hero {
  position: relative;
  padding: 190px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../img/hero-bg-v2.webp') center/cover no-repeat;
  animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(195, 201, 214, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 80%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  max-width: 820px;
  margin: 0 auto 24px;
  line-height: 1.25;
  min-height: 2.5em;
}

.hero h1 span {
  color: #b9c6ba;
  font-style: italic;
}

.hero p {
  max-width: 1100px;
  margin: 0 auto 42px;
  color: var(--silver-mid);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}


.trust-badges {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--silver-mid);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.trust-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}


.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  color: var(--silver-mid);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  animation: scrollFadeIn 0.6s 0.8s forwards, bounceDown 2s 1.4s ease-in-out infinite;
}

.scroll-indicator svg {
  display: block;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.scroll-indicator:hover svg {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes scrollFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}



section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: #E4E8E4;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

.section-head p {
  color: var(--silver-mid);
  font-size: 1.02rem;
  margin-top: 14px;
}



#nosotros {
  background: var(--ice);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-images {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.portrait {
  border-radius: 6px;
  object-fit: cover;
  display: block;
  border: 4px solid var(--white);
}

.portrait-front {
  width: 82%;
  aspect-ratio: 3 / 4;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.portrait-back {
  width: 70%;
  aspect-ratio: 3 / 4;
  position: absolute;
  bottom: -6%;
  right: 0;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--silver-mid);
  margin-bottom: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat {
  border-top: 1px solid var(--accent);
  padding-top: 14px;
}

.stat .num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--accent);
  display: block;
}

.stat .label {
  font-size: 0.78rem;
  color: var(--silver-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.stat-icon {
  color: var(--navy-accent);
  margin-bottom: 10px;
  display: block;
}



#servicios {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}






#proceso {
  background: var(--ice);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  position: relative;
  padding: 30px 0 100px;
}


.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M12.5,30 L37.5,110 L62.5,30 L87.5,110' stroke='%233B4F8A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  z-index: 0;
  pointer-events: none;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 200px;
  width: 100%;
}


.step:nth-child(odd) { margin-top: 0; }
.step:nth-child(even) { margin-top: 80px; }

.step-content {
  max-width: 200px;
  margin: 0 auto;
}

.step-content h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.step-content p {
  color: var(--silver-mid);
  font-size: 0.9rem;
  line-height: 1.5;
}

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--navy-mid);
  margin: 0 auto 18px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.step-badge:hover {
  transform: scale(1.12);
  border-color: #b9c6ba;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.step h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.step p {
  color: var(--silver-mid);
  font-size: 0.9rem;
}



#faq {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border-left: 3px solid #b9c6ba;
  margin-bottom: 12px;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-left-color: var(--navy-accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(27, 35, 72, 0.55);
  border: 1px solid var(--border);
  border-left: none;
  padding: 18px 24px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  text-align: left;
  transition: background 0.25s ease;
}

.faq-question:hover {
  background: rgba(27, 35, 72, 0.7);
}

.faq-chevron {
  flex-shrink: 0;
  color: #b9c6ba;
  transition: transform 0.35s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(27, 35, 72, 0.3);
  border: 1px solid var(--border);
  border-top: none;
  border-left: none;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 4px 24px 18px;
  color: var(--silver-perla);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-cta {
  text-align: center;
  margin-top: 36px;
  color: var(--silver-mid);
  font-size: 0.95rem;
}

.faq-cta a {
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s ease;
}

.faq-cta a:hover {
  color: #b9c6ba;
}



#contacto {
  background: var(--ice);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--navy-deep);
}

.contact-info > p {
  color: var(--navy-mid);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--silver-perla);
}

.ci-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--navy-accent);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-accent);
  background: rgba(59, 79, 138, 0.06);
}

.ci-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-mid);
  margin-bottom: 4px;
}

.ci-value {
  color: var(--navy-deep);
  font-size: 1rem;
}

.ci-value a:hover {
  color: var(--navy-accent);
}


#contacto form {
  background: var(--navy-mid);
  border: 1px solid rgba(195, 201, 214, 0.15);
  border-radius: 8px;
  padding: 52px 42px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: grid;
  gap: 28px;
}

#contacto form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

#contacto form label {
  color: var(--silver-perla);
  margin-bottom: 10px;
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

#contacto form input,
#contacto form select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--silver-perla);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.25s ease;
}

#contacto form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--silver-perla);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-height: 80px;
  transition: border-color 0.25s ease;
}

#contacto form input::placeholder,
#contacto form textarea::placeholder {
  color: var(--silver-mid);
}



.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--silver-perla);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.25s ease;
  text-align: left;
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  border-color: #b9c6ba;
  box-shadow: 0 0 0 3px rgba(59, 79, 138, 0.12);
  outline: none;
}

.custom-select-arrow {
  flex-shrink: 0;
  color: var(--silver-mid);
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--silver-perla);
  border-radius: 8px;
  display: none;
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.custom-select.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy-deep);
  cursor: pointer;
}

.custom-select-option:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.custom-select-option.selected {
  background: var(--navy-accent);
  color: var(--white);
  font-weight: 500;
}

#contacto form input:focus,
#contacto form textarea:focus,
#contacto form select:focus {
  outline: none;
  border-color: #b9c6ba;
  box-shadow: 0 0 0 3px rgba(59, 79, 138, 0.12);
}

#contacto form textarea {
  min-height: 120px;
  resize: vertical;
}

#contacto form .btn-form {
  background: var(--white);
  color: var(--navy-deep);
  border: none;
  padding: 14px 44px;
  border-radius: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  justify-self: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

#contacto form .btn-form:hover {
  background: var(--ice);
  transform: translateY(-1px);
}

#contacto form input:disabled,
#contacto form select:disabled,
#contacto form textarea:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#contacto form .btn-form:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.g-recaptcha {
  display: flex;
  justify-content: center;
}



.swal-ias {
  background: var(--navy-deep) !important;
  border: 1px solid rgba(195, 201, 214, 0.12) !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
}

.swal-ias .swal2-title {
  color: var(--white) !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 600 !important;
}

.swal-ias .swal2-html-container {
  color: var(--silver-perla) !important;
  font-size: 0.95rem !important;
}

.swal-ias .swal2-icon {
  border-color: transparent !important;
}
.swal-ias .swal2-icon.swal2-success {
  color: var(--swal-success) !important;
}
.swal-ias .swal2-icon.swal2-error {
  color: var(--swal-error) !important;
}
.swal-ias .swal2-icon.swal2-warning {
  color: var(--swal-warning) !important;
}

.swal-ias-btn {
  border-radius: 5px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 0.82rem !important;
  padding: 12px 28px !important;
  background: var(--white) !important;
  color: var(--navy-deep) !important;
  border: 1px solid var(--ice) !important;
  transition: background 0.25s ease !important;
}

.swal-ias-btn:hover {
  background: var(--ice) !important;
}

.swal-ias-progress {
  background: rgba(195, 201, 214, 0.15) !important;
}

.swal-ias-progress::-webkit-progress-bar {
  background: rgba(195, 201, 214, 0.15) !important;
}

.swal-ias-progress::-webkit-progress-value {
  background: var(--ice) !important;
}

.swal-ias-progress::-moz-progress-bar {
  background: var(--ice) !important;
}



footer {
  border-top: 1px solid var(--border-strong);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.footer-brand .logo-group {
  margin-bottom: 18px;
}

.footer-desc {
  color: var(--silver-mid);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--silver-mid);
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: var(--accent);
}

.footer-email {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--silver-perla);
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--silver-mid);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.copyright {
  font-size: 0.8rem;
  color: var(--silver-mid);
  text-align: center;
  padding: 28px 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}



.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--silver-mid);
  background: rgba(27, 35, 72, 0.9);
  color: var(--silver-perla);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--navy-mid);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-glow);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}



#nosotros .about-text h3,
#proceso .section-head h2,
#proceso .step h4,
#contacto .section-head h2,
#contacto .contact-info h3 {
  color: var(--navy-deep);
}

#nosotros .about-text p,
#proceso .section-head p,
#proceso .step p,
#contacto .section-head p {
  color: var(--navy-mid);
}

#nosotros .stat .num {
  color: var(--navy-accent);
}
#nosotros .stat .label {
  color: var(--navy-mid);
}
#nosotros .stat {
  border-top-color: var(--navy-accent);
}
#nosotros .stat-icon {
  color: var(--navy-accent);
}

#proceso .step-badge {
  background: var(--navy-deep);
  color: var(--ice);
  border-color: #b9c6ba;
}

#proceso .section-head {
  max-width: 700px;
}




.reveal.revealed {
  animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--reveal-delay, 0s) forwards;
}


.hero .reveal {
  transform: translateY(0);
}
.hero .reveal.revealed {
  animation-name: heroFadeIn;
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.revealed { animation: none; }
}






@media (max-width: 1024px) {

  
  header,
  .navbar,
  header.header-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  
  .container {
    padding-left: clamp(32px, 8vw, 48px);
    padding-right: clamp(32px, 8vw, 48px);
  }

  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .btn-sm { display: none; }

  .menu-toggle {
    display: block;
    z-index: 110;
    position: relative;
  }
  .menu-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    background: var(--navy-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 105;
  }
  .nav-links.open { transform: translateY(0); }

  .nav-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.16s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.22s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.28s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.34s; }

  .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }
  .nav-links a::after { display: none; }

  
  section { padding: 72px 0; }


  .steps  { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps::before { display: none; }
  .step { margin-top: 0 !important; max-width: none; }

  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-text {
    text-align: center;
  }
  .about-text h3,
  .contact-info h3 {
    text-align: center;
  }
  .about-text p {
    text-align: justify;
  }
  .contact-info > p {
    text-align: justify;
  }
  .stats {
    justify-items: center;
  }
  .stat {
    text-align: center;
  }
  .stat-icon {
    margin: 0 auto 10px;
  }

  .service-card-v2 .card-body {
    padding: 18px;
  }
  .service-card-v2.dark-theme .card-body p {
    margin-bottom: 16px;
  }
  .section-head {
    padding-bottom: 36px;
  }
  .about-images {
    max-width: 360px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }
  .footer-brand {
    padding-bottom: 24px;
  }
  .footer-brand .logo-group {
    justify-self: center;
  }
  .footer-links-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
  }
  .footer-links-col .footer-heading {
    width: 100%;
  }
  .footer-contact-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 20px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
  }
  .footer-contact-col .footer-heading {
    width: 100%;
  }
  .footer-contact-col .footer-social {
    width: 100%;
    justify-content: center;
  }
  .footer-desc {
    max-width: none;
  }
  .footer-links-col a {
    padding: 6px 0;
  }
  .copyright {
    margin-top: 24px;
    padding: 20px 0;
  }
}


@media (max-width: 640px) {

  .container {
    padding-left: clamp(20px, 5vw, 32px);
    padding-right: clamp(20px, 5vw, 32px);
  }

  .hero {
    padding: 130px 0 72px;
  }
  .hero-bg::after {
    background-size: 30px 30px;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.1rem);
  }
  .hero p {
    font-size: 0.95rem;
  }

  .trust-badges {
    gap: 20px;
  }
  .trust-badge {
    font-size: 0.72rem;
    gap: 8px;
  }

  .cards     { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 32px 24px; }
  .card:nth-child(2) { padding-bottom: 32px; border-top-width: 2px; }
  .steps     { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { display: none; }
  .step { margin-top: 0 !important; max-width: 360px; }
  .stats     { grid-template-columns: 1fr; gap: 16px; }
  .stat:first-child {
    border-top: none;
  }

  .form-row { grid-template-columns: 1fr !important; }

  #contacto form {
    padding: 28px 16px;
  }
  #contacto form input,
  #contacto form select,
  #contacto form textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  #contacto form textarea {
    min-height: 80px;
  }

  .btn-row {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 370px) {
  .g-recaptcha {
    transform: scale(0.88);
    transform-origin: center center;
  }
  #contacto form {
    min-width: 0;
    overflow-x: hidden;
  }
  #contacto form > * {
    min-width: 0;
  }
}

@media (max-width: 330px) {
  .g-recaptcha {
    transform: scale(0.80);
    transform-origin: center center;
  }
}

.service-cards-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: end;
}
@media (max-width: 1024px) {
  .service-cards-v2 {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

.service-card-v2 {
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease-out, border-color 0.4s ease-out;
  position: relative;
  text-align: left;
  padding: 16px;
}
.service-card-v2.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.service-card-v2.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.service-card-v2.reveal.revealed:hover {
  transform: translateY(-4px);
}
.service-card-v2:hover {
  transform: translateY(-4px);
}

.service-card-v2.dark-theme {
  background: var(--navy-deep);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-card-v2.dark-theme:hover {
  border-color: var(--swal-success);
}
.service-card-v2.light-theme {
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  z-index: 2;
}

.card-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 20px;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10,15,35,0.1) 0%, rgba(10,15,35,0.9) 100%);
}

.card-icon-box {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 56px;
  height: 56px;
  background: var(--accent-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 10;
}

.cutout-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 88px;
  border-bottom-right-radius: 20px;
  z-index: 5;
}
.service-card-v2.light-theme .cutout-wrapper { background: var(--white); }
.service-card-v2.dark-theme .cutout-wrapper { background: var(--navy-deep); }

.cutout-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 20px;
  height: 20px;
  background: transparent;
  border-top-left-radius: 20px;
}
.service-card-v2.light-theme .cutout-wrapper::before { box-shadow: -5px -5px 0 5px var(--white); }
.service-card-v2.dark-theme .cutout-wrapper::before { box-shadow: -5px -5px 0 5px var(--navy-deep); }

.cutout-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 20px;
  height: 20px;
  background: transparent;
  border-top-left-radius: 20px;
}
.service-card-v2.light-theme .cutout-wrapper::after { box-shadow: -5px -5px 0 5px var(--white); }
.service-card-v2.dark-theme .cutout-wrapper::after { box-shadow: -5px -5px 0 5px var(--navy-deep); }

.card-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.5rem;
  color: white;
  z-index: 10;
  margin: 0;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  margin-top: 16px;
  padding: 24px;
}
.service-card-v2.dark-theme .card-body {
  border: 1px solid var(--navy-mid);
}
.service-card-v2.light-theme .card-body {
  border: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 96px;
}
.service-card-v2.dark-theme .card-body p {
  color: var(--silver-perla);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-card-v2.light-theme .card-body p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 32px;
}
