/* ===================== DESIGN TOKENS ===================== */
:root {
  --navy:   #1E3A5F;
  --blue:   #3B5BDB;
  --orange: #F4845F;
  --stone:  #F1EFE9;
  --white:  #FDFCFA;
  --sky:    #EBF0FF;
  --ink:    #1A1A2E;
  --mid:    #6B7280;
  --line:   rgba(30,58,95,0.10);
  --font:   'Plus Jakarta Sans', sans-serif;
  --radius: 12px;
  --max-w:  1100px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  height: 40px;
  font-size: 18px; font-weight: 800; color: var(--white);
  letter-spacing: -0.02em; text-decoration: none; flex-shrink: 0;
}
.nav-logo .bit { color: #7B9EFF; }
.nav-logo img { height: 45px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a,
.nav-dropdown-toggle {
  font-size: 14px; font-weight: 500;
  color: rgba(253,252,250,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-dropdown-toggle:hover { color: var(--white); text-decoration: none; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; background: none; border: none;
  font-family: var(--font); padding: 0;
}
.nav-dropdown-toggle svg {
  width: 12px; height: 12px;
  color: rgba(253,252,250,0.4);
  transition: transform 0.2s;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 20px); left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 300px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  z-index: 300;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px; font-weight: 500;
  color: rgba(253,252,250,0.55);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}
.nav-cta {
  background: var(--orange); color: var(--white);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  padding: 10px 22px; border: none; border-radius: 8px;
  cursor: pointer; text-decoration: none; flex-shrink: 0;
  transition: background 0.2s;
}
.nav-cta:hover { background: #e5744f; text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.2s;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--navy);
  color: rgba(253,252,250,0.5);
  padding: 40px 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-copy { font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px; color: rgba(253,252,250,0.5); text-decoration: none;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-locations { display: flex; gap: 8px; }
.footer-loc {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  padding: 5px 12px; border-radius: 6px;
  color: rgba(253,252,250,0.45);
}

/* ===================== WHATSAPP ===================== */
.whatsapp-btn {
  position: fixed; bottom: 24px; left: 24px;
  width: 60px; height: 60px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 200; transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.08); }
.whatsapp-btn svg { width: 32px; height: 32px; fill: #fff; }

/* ===================== ANIMATIONS ===================== */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition:
    opacity 650ms cubic-bezier(0.22, 0.9, 0.35, 1),
    transform 650ms cubic-bezier(0.34, 1.3, 0.64, 1);
}
.reveal.revealed { opacity: 1; transform: none; }

/* ===================== RESPONSIVE: TABLET ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 32px 70px; }
  .hero-image { max-width: 300px; }
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .metric-item:nth-child(2) { border-right: none; }
  .metric-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image img { aspect-ratio: 16/9; max-height: 400px; }
  .features-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .dossier-cta { flex-direction: column; text-align: center; padding: 40px 32px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
}

/* ===================== RESPONSIVE: MOBILE ===================== */
@media (max-width: 640px) {
  .section { padding: 64px 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 4px;
  }
  .nav.open .nav-links a,
  .nav.open .nav-dropdown-toggle { padding: 10px 0; font-size: 16px; }
  .nav.open .nav-dropdown-menu {
    position: static; transform: none;
    background: transparent; border: none;
    box-shadow: none; padding: 0; min-width: auto;
    display: none;
  }
  .nav.open .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav.open .nav-dropdown-menu a { padding: 8px 0 8px 20px; font-size: 15px; }

  .hero-inner { padding: 48px 20px 60px; }
  .hero-tagline { font-size: clamp(26px, 7vw, 34px); }
  .hero-subtitle { font-size: 15px; }
  .hero-body { font-size: 14px; }
  .hero-ctas { flex-direction: column; }
  .btn-coral, .btn-ghost { width: 100%; text-align: center; }
  .hero-image { display: none; }

  .metric-item { padding: 26px 14px; }
  .metric-number { font-size: 30px; }
  .metric-label { font-size: 12px; }

  .process-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { aspect-ratio: 4/3; }

  .dossier-cta { padding: 32px 24px; }
  .dossier-text h3 { font-size: 19px; }

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

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition-duration: 0.01s; }
  .service-card, .process-card, .team-card, .feature-card { transition-duration: 0.01s; }
  .hero::before, .hero-badge, .hero-badge-dot, .service-icon,
  .feature-icon, .metric-label::before, .ritmo-rule, .metrics-wrap::before {
    animation: none !important;
  }
}

.dossier-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* TEXTO */
.dossier-text {
  flex: 1;
  max-width: 520px;
}

.dossier-text h2 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.dossier-text p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 24px;
}

.dossier-label {
  font-size: 14px;
  opacity: 0.6;
  display: block;
  margin-bottom: 10px;
}

/* IMAGEN */
.dossier-image {
  flex: 1;
  text-align: right;
}

.dossier-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
  .dossier-layout {
    flex-direction: column;
    text-align: center;
  }

  .dossier-image {
    text-align: center;
  }
}

.section--stone {
  background: linear-gradient(180deg, #f7f9fc, #eef2f7);
  border-radius: 20px;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-v12-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* ===================== TOAST SUCCESS ===================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;

  background: #ffffff; /* 👈 clave */
  color: #1E3A5F;

  border-left: 4px solid #22c55e; /* 👈 indicador éxito */

  padding: 16px 22px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;

  box-shadow: 0 12px 30px rgba(0,0,0,0.18);

  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.22, 0.9, 0.35, 1);

  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobile */
@media (max-width: 640px) {
  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    text-align: center;
  }
}


/* ===================== BUTTON LOADER ===================== */
.form-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

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

.form-submit.loading .btn-text {
  opacity: 0.7;
}

.form-submit.loading .btn-spinner {
  display: inline-block;
}


</style>

@media (max-width: 640px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    text-align: center;
    min-width: unset;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
  }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 4px;
  }
  nav.open .nav-links a,
  nav.open .nav-dropdown-toggle { padding: 10px 0; font-size: 16px; }
  nav.open .nav-dropdown-menu {
    position: static; transform: none;
    background: transparent; border: none;
    box-shadow: none; padding: 0; min-width: auto;
    display: none;
  }
  nav.open .nav-dropdown.open .nav-dropdown-menu { display: block; }
  nav.open .nav-dropdown-menu a { padding: 8px 0 8px 20px; font-size: 15px; }
}

@media (max-width: 640px) {
  nav.open .nav-dropdown-toggle {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  nav.open .nav-dropdown-menu a {
    text-align: center;
    padding: 8px 0;
  }
}
/* ===================== CONTACTO ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%; font-family: var(--font); font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,91,219,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-privacy {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 24px;
}
.form-privacy input[type="checkbox"] {
  margin-top: 3px; flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--blue);
}
.form-privacy label {
  font-size: 13px; color: var(--mid); line-height: 1.5; cursor: pointer;
}
.form-privacy a { color: var(--blue); }
.form-submit {
  width: 100%;
  background: var(--orange); color: var(--white);
  font-family: var(--font); font-size: 16px; font-weight: 700;
  padding: 14px 28px; border: none; border-radius: 8px;
  cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: #e5744f; }
.form-alert {
  margin-top: 16px; padding: 14px 18px;
  border-radius: 8px; font-size: 14px; display: none;
}
.form-alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.contact-info-block { padding-top: 8px; }
.contact-info-block h3 {
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 8px;
}
.contact-info-block > p {
  font-size: 15px; color: var(--mid);
  line-height: 1.65; margin-bottom: 32px;
}
.contact-detail {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--sky); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; color: var(--blue); }
.contact-detail-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 2px;
}
.contact-detail-value { font-size: 15px; color: var(--ink); line-height: 1.5; }
.contact-detail-value a { color: var(--blue); font-weight: 500; }
.contact-social {
  display: flex; gap: 12px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-social a {
  width: 40px; height: 40px;
  background: var(--sky); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.contact-social a:hover { background: var(--blue); }
.contact-social a:hover svg { color: var(--white); }
.contact-social svg { width: 18px; height: 18px; color: var(--navy); }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;

  background: #ffffff; /* 👈 clave */
  color: #1E3A5F;

  border-left: 4px solid #22c55e; /* 👈 indicador éxito */

  padding: 16px 22px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;

  box-shadow: 0 12px 30px rgba(0,0,0,0.18);

  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.22, 0.9, 0.35, 1);

  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobile */
/* ===================== SECTIONS ===================== */
.section { padding: 90px 32px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section--stone { background: var(--stone); }
.section--white { background: var(--white); }
.section--sky   { background: var(--sky); }
.section--navy  { background: var(--navy); color: var(--white); }

.ritmo-rule {
  height: 2px; border: none; margin: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(59,91,219,0.0) 8%,
    var(--blue) 38%, var(--orange) 50%, var(--blue) 62%,
    rgba(59,91,219,0.0) 92%, transparent 100%);
  background-size: 220% 100%;
  animation: ritmoSlide 9s linear infinite;
  opacity: 0.55;
}
@keyframes ritmoSlide {
  0%   { background-position: -110% 0; }
  100% { background-position: 110% 0; }
}
.section-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section--navy .section-label { color: var(--orange); }
.section-heading {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px; color: var(--mid);
  max-width: 560px; line-height: 1.65;
  margin-bottom: 48px;
}
.section--navy .section-subtitle { color: rgba(253,252,250,0.55); }

