/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  color: #0A1628;
  background: #FAFBFC;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; line-height: 1.15; }
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #34D4B0;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #0A1628;
  margin-bottom: 1.2rem;
}
.section-desc {
  font-size: 1.05rem;
  color: #4A5568;
  max-width: 560px;
  line-height: 1.8;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 1px 30px rgba(10, 22, 40, 0.06); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0A1628;
  width: 36px;
  height: 36px;
  border: 1.5px solid #0A1628;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #0A1628;
  letter-spacing: 0.02em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-menu a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4A5568;
  transition: color 0.25s ease;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #34D4B0;
  transition: width 0.3s ease;
}
.nav-menu a:hover { color: #0A1628; }
.nav-menu a:hover::after { width: 100%; }
.nav-cta {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  text-transform: none !important;
  color: #0A1628 !important;
  border: 1px solid rgba(10, 22, 40, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: background 0.25s ease, border-color 0.25s ease !important;
}
.nav-cta:hover {
  background: #0A1628 !important;
  color: #FAFBFC !important;
  border-color: #0A1628 !important;
}
.nav-cta::after { display: none !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle-line {
  width: 22px;
  height: 1.5px;
  background: #0A1628;
  transition: all 0.3s ease;
}
.nav-toggle.active .nav-toggle-line:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.active .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background: #FAFBFC;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: linear-gradient(135deg, rgba(52, 212, 176, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #34D4B0;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 1.8rem;
  color: #0A1628;
}
.hero-accent {
  font-style: italic;
  color: #2A9D8F;
  font-weight: 300;
}
.hero-desc {
  font-size: 1.05rem;
  color: #4A5568;
  max-width: 480px;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #0A1628;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #718096;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(10, 22, 40, 0.12);
}
.hero-image { position: relative; }
.hero-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image-frame:hover img { transform: scale(1.02); }
.hero-image-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid #34D4B0;
  z-index: -1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-primary {
  background: #0A1628;
  color: #FAFBFC;
  border: 1.5px solid #0A1628;
}
.btn-primary:hover { background: #1A2B4A; border-color: #1A2B4A; }
.btn-ghost {
  background: transparent;
  color: #0A1628;
  border: 1.5px solid rgba(10, 22, 40, 0.25);
}
.btn-ghost:hover { border-color: #0A1628; }
.btn-white {
  background: #FAFBFC;
  color: #0A1628;
  border: 1.5px solid #FAFBFC;
}
.btn-white:hover { background: #34D4B0; border-color: #34D4B0; }
.btn-outline-white {
  background: transparent;
  color: #FAFBFC;
  border: 1.5px solid rgba(250, 251, 252, 0.4);
}
.btn-outline-white:hover { border-color: #FAFBFC; background: rgba(250, 251, 252, 0.08); }
.btn-small {
  font-size: 0.72rem;
  padding: 0.6rem 1.2rem;
}
.btn-full { width: 100%; justify-content: center; }

/* ===== DIVIDER ===== */
.section-divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 22, 40, 0.12), transparent);
}

/* ===== SERVICIOS ===== */
.servicios {
  padding: 7rem 0;
  background: #FAFBFC;
}
.servicios .section-header {
  margin-bottom: 4rem;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.servicio-card {
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.06);
  padding: 2.5rem 2rem;
  border-radius: 2px;
  transition: all 0.35s ease;
  position: relative;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #34D4B0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.servicio-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(10, 22, 40, 0.06); }
.servicio-card:hover::before { transform: scaleX(1); }
.servicio-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  color: #2A9D8F;
  transition: all 0.3s ease;
}
.servicio-card:hover .servicio-icon { background: #0A1628; border-color: #0A1628; color: #34D4B0; }
.servicio-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #0A1628;
}
.servicio-card p {
  font-size: 0.9rem;
  color: #4A5568;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.servicio-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0A1628;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, color 0.3s ease;
}
.servicio-link:hover { gap: 0.8rem; color: #2A9D8F; }

/* ===== NOSOTROS ===== */
.nosotros {
  padding: 7rem 0;
  background: #fff;
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 4rem;
  align-items: start;
}
.nosotros-image-col { position: relative; }
.nosotros-img-wrapper {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.nosotros-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.nosotros-img-wrapper:hover img { transform: scale(1.02); }
.nosotros-img-secondary {
  overflow: hidden;
  border-radius: 2px;
}
.nosotros-img-secondary img {
  width: 100%;
  object-fit: cover;
}
.nosotros-content .section-title { margin-bottom: 2rem; }
.nosotros-body { margin-bottom: 3rem; }
.nosotros-body p {
  font-size: 0.95rem;
  color: #4A5568;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.nosotros-body p:last-child { margin-bottom: 0; }
.nosotros-values { display: flex; flex-direction: column; gap: 2rem; }
.valor { display: flex; gap: 1.5rem; align-items: start; }
.valor-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #34D4B0;
  line-height: 1;
  min-width: 36px;
}
.valor h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #0A1628;
}
.valor p {
  font-size: 0.88rem;
  color: #718096;
  line-height: 1.7;
}

/* ===== MÉTODO ===== */
.metodo {
  padding: 7rem 0;
  background: #0A1628;
  color: #FAFBFC;
}
.metodo-header {
  text-align: center;
  margin-bottom: 4rem;
}
.metodo-header .section-eyebrow { color: #34D4B0; }
.metodo-header .section-title { color: #FAFBFC; }
.metodo-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.metodo-step {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(250, 251, 252, 0.08);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.metodo-step:hover { border-color: rgba(52, 212, 176, 0.3); background: rgba(250, 251, 252, 0.02); }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #34D4B0;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.metodo-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #FAFBFC;
}
.metodo-step p {
  font-size: 0.88rem;
  color: rgba(250, 251, 252, 0.55);
  line-height: 1.75;
}

/* ===== CTA ===== */
.cta {
  padding: 6rem 0;
  background: #2A9D8F;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-text { max-width: 560px; }
.cta-text .section-eyebrow { color: rgba(250, 251, 252, 0.7); }
.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #FAFBFC;
  margin-bottom: 1rem;
}
.cta-text p {
  font-size: 1rem;
  color: rgba(250, 251, 252, 0.8);
  line-height: 1.8;
}
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== CONTACTO ===== */
.contacto {
  padding: 7rem 0;
  background: #FAFBFC;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contacto-desc {
  font-size: 0.95rem;
  color: #4A5568;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.contacto-datos { display: flex; flex-direction: column; gap: 1.8rem; }
.dato { display: flex; gap: 1.2rem; align-items: start; }
.dato-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 2px;
  color: #2A9D8F;
}
.dato-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #718096;
  margin-bottom: 0.3rem;
}
.dato-value {
  display: block;
  font-size: 0.95rem;
  color: #0A1628;
  line-height: 1.6;
}
.dato-value a { transition: color 0.25s ease; }
.dato-value a:hover { color: #2A9D8F; }

/* Form */
.contacto-form {
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.06);
  padding: 2.5rem;
  border-radius: 2px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A5568;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #0A1628;
  background: #FAFBFC;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #34D4B0;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #A0AEC0; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-legal { margin-bottom: 1.5rem; }
.checkbox-label {
  display: flex !important;
  align-items: start;
  gap: 0.6rem;
  font-size: 0.8rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #718096 !important;
  cursor: pointer;
}
.checkbox-label input { margin-top: 3px; accent-color: #34D4B0; }
.checkbox-label a { color: #2A9D8F; text-decoration: underline; text-underline-offset: 3px; }
.form-note {
  font-size: 0.78rem;
  color: #A0AEC0;
  text-align: center;
  margin-top: 1rem;
}
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success.show { display: block; }
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border: 1.5px solid #34D4B0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34D4B0;
}
.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0A1628;
}
.form-success p { color: #4A5568; font-size: 0.95rem; }

/* ===== MAPA ===== */
.mapa {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.mapa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}
.mapa-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mapa-card {
  background: rgba(250, 251, 252, 0.95);
  backdrop-filter: blur(10px);
  padding: 2.5rem 3rem;
  text-align: center;
  border-radius: 2px;
}
.mapa-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #34D4B0;
  display: block;
  margin-bottom: 0.75rem;
}
.mapa-card h3 {
  font-size: 1.4rem;
  color: #0A1628;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

/* ===== FOOTER ===== */
.footer {
  background: #0A1628;
  color: #FAFBFC;
  padding: 4rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 251, 252, 0.08);
}
.footer-tagline {
  font-size: 0.88rem;
  color: rgba(250, 251, 252, 0.5);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}
.footer-nav a {
  font-size: 0.8rem;
  color: rgba(250, 251, 252, 0.6);
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}
.footer-nav a:hover { color: #34D4B0; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(250, 251, 252, 0.4);
  transition: color 0.25s ease;
}
.footer-legal a:hover { color: #34D4B0; }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(250, 251, 252, 0.35);
}
.footer-bottom a { color: rgba(250, 251, 252, 0.5); transition: color 0.25s ease; }
.footer-bottom a:hover { color: #34D4B0; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image { max-width: 480px; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid { grid-template-columns: 1fr; gap: 3rem; }
  .metodo-steps { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-nav, .footer-legal { text-align: center; }
  .footer-legal { align-items: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 251, 252, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .hero { padding: 6rem 0 3rem; min-height: auto; }
  .hero-stats { flex-wrap: wrap; }
  .servicios-grid { grid-template-columns: 1fr; }
  .metodo-steps { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .mapa { height: 240px; }
  .mapa-card { padding: 1.5rem 2rem; }
  .mapa-card h3 { font-size: 1.1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contacto-form { padding: 1.5rem; }
}
