/* ===========================
   RESET + BASE
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}
html, body {
  overflow-x: hidden;
  overflow-y: visible;
}

/* ===========================
   PALETA PRINCIPAL (LIGHT)
   =========================== */

:root {
  --brand-primary: #2ecc71;       /* Verde principal */
  --brand-primary-dark: #27ae60;  /* Hover / variante */
  --brand-primary-light: #a8f5c6; /* Verde suave */

  --bg-page: #ffffff;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #f7f8fa;

  --border-subtle: #e3e5ea;

  --text-main: #111111;
  --text-muted: #6c757d;
  --text-on-primary: #ffffff;

  --radius: 16px;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* ===========================
   DARK THEME VARS
   =========================== */

.dark-theme {
  --brand-primary: #27ae60;
  --brand-primary-dark: #1e8d4d;
  --brand-primary-light: #8ceab2;

  --bg-page: #2e2f31;
  --bg-elevated: #11131a;
  --bg-elevated-soft: #181b24;

  --border-subtle: #262938;

  --text-main: #f5f5f5;
  --text-muted: #ffffff;
  --text-on-primary: #ffffff;
}

/* ===========================
   BODY / TIPOGRAFÍA
   =========================== */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

/* Links generales */
a {
  color: var(--brand-primary-dark);
  text-decoration: none;
}

a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ===========================
   UTILIDADES GENERALES
   =========================== */

.section-padding {
  padding: 72px 0;
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 56px 0;
  }
}

.line {
  width: 72px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light));
}

.section-title h1 {
  margin-bottom: 0;
}

.section-title p {
  margin-top: 12px;
  color: var(--text-muted);
}

/* ===========================
   NAVBAR
   =========================== */

.navbar {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.dark-theme .navbar {
  background-color: rgba(5, 6, 10, 0.96);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.7);
}

.navbar-brand {
  font-weight: 600;
  color: var(--text-main);
}

.navbar-brand:hover {
  color: var(--text-main);
  text-decoration: none;
}


/* "Logo" placeholder redondo */
.brand-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, var(--brand-primary-light), var(--brand-primary-dark));
  color: var(--text-on-primary);
  font-size: 0.85rem;
}

/* Nav links */
.navbar .nav-link {
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  color: var(--text-muted);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--brand-primary);
}

.navbar .nav-link.active {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Toggler */
.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image:
    linear-gradient(var(--text-main), var(--text-main)),
    linear-gradient(var(--text-main), var(--text-main)),
    linear-gradient(var(--text-main), var(--text-main));
  background-position:
    center calc(50% - 6px),
    center,
    center calc(50% + 6px);
  background-size: 18px 2px;
  background-repeat: no-repeat;
}

/* ===========================
   SWITCH DARK MODE
   =========================== */

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

.switch-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch-label .checkbox {
  display: none;
}

.switch-label .slider {
  width: 40px;
  height: 20px;
  border-radius: 999px;
  background-color: var(--border-subtle);
  position: relative;
  transition: background-color 0.2s ease;
}

.switch-label .slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

/* checked */
.checkbox:checked + .slider {
  background-color: var(--brand-primary);
}

.checkbox:checked + .slider::before {
  transform: translateX(20px);
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-main);
}

/* Fondo con slides que ya tienes */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-media .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 12s ease;
}

/* puedes animar con JS si quieres, pero por defecto dejamos la primera visible */
.hero-media .slide.s1 {
  opacity: 1;
}

/* Overlay para mejorar legibilidad */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.1), transparent 40%),
              linear-gradient(120deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1) 55%, transparent 80%);
}

.dark-theme .hero::before {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.6));
}

/* Contenido */
.hero .container {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem);
  font-weight: 700;
  color: #ffffff;
}

.hero-title .accent {
  color: var(--brand-primary-light);
}

.hero-sub {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
}

.hero-bullets {
  list-style: none;
  padding-left: 0;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.hero-bullets i {
  color: var(--brand-primary);
  margin-top: 3px;
}

/* ===========================
   BOTONES
   =========================== */

.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary-dark);
  color: var(--text-on-primary);
  border-radius: 999px;
  padding-inline: 1.4rem;
  font-weight: 500;
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: var(--text-on-primary);
}

.btn-outline-dark {
  border-radius: 999px;
    --bs-btn-hover-color:var(--brand-primary-dark);
}

/* ===========================
   ABOUT + VIDEO
   =========================== */

.textLogo {
  color: var(--text-muted);
}

.about-simple {
  background-color: var(--bg-elevated);
  border-radius: 24px;
  padding: 24px 24px 28px;
  box-shadow: var(--shadow-soft);
}

.dark-theme .about-simple {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.about-video {
  border-radius: 20px;
  overflow: hidden;
  background-color: #000;
}

.about-video__el {
  display: block;
  width: 100%;
  height: auto;
}

/* Placeholder si no hay video real */
.video-placeholder {
  background: radial-gradient(circle at 30% 20%, var(--brand-primary-light), var(--brand-primary-dark));
  color: var(--text-on-primary);
}

/* Puntos about */
.about-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 20px;
  margin-top: 16px;
}

.point {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.point i {
  margin-top: 2px;
  color: var(--brand-primary);
}

/* ===========================
   SERVICES
   =========================== */

.service-card {
  background-color: var(--bg-elevated);
  border-radius: 22px;
  padding: 22px 20px 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-subtle);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dark-theme .service-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 204, 113, 0.12);
  color: var(--brand-primary-dark);
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.dark-theme .service-icon {
  background: rgba(46, 204, 113, 0.2);
}

/* ===========================
   PROCESO + DIFERENCIALES
   =========================== */

.process {
  position: relative;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.process::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--border-subtle);
}

.process-item {
  position: relative;
  padding-left: 52px;   /* espacio para el icono y la línea */
  padding-bottom: 18px;
  margin: 0;
}

.process-item:last-child {
  padding-bottom: 0;
}

.process-badge {
  position: absolute;
  left: 8px;            /* 👈 ya no es negativo */
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg-elevated-soft);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary-dark);
  font-size: 1rem;
}

/* un poco más compacto en móvil */
@media (max-width: 575.98px) {
  .process::before {
    left: 14px;
  }

  .process-item {
    padding-left: 46px;
  }

  .process-badge {
    left: 3px;
  }
}

.value-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 18px;
}

.value-item {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.value-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: var(--bg-elevated-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

/* Mini tags */
.value-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.value-mini__item {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 999px;
  background-color: var(--bg-elevated-soft);
  border: 1px solid var(--border-subtle);
}

/* CTA band */
.cta-band {
  margin-top: 32px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark));
  color: var(--text-on-primary);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
}

.cta-band .btn-outline-dark {
  border-color: #ffffff;
  color: #ffffff;
}

.cta-band .btn-outline-dark:hover {
  background-color: #ffffff;
  color: #111111;
}

/* ===========================
   MAPA / PRESENCIA
   =========================== */

.map-card {
  margin: 0;
  border-radius: 22px;
  background-color: var(--bg-elevated);
  padding: 18px;
  border: 1px solid var(--border-subtle);
}

.map-figure {
  border-radius: 16px;
  overflow: hidden;
  background-color: #000;
}

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

/* si usas versión light/dark */
.map-img--dark {
  display: none;
}

.dark-theme .map-img--light {
  display: none;
}

.dark-theme .map-img--dark {
  display: block;
}

.map-caption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Placeholder si no hay imagen real */
.map-placeholder {
  padding: 30px 20px;
}

/* ===========================
   LOGO TICKER CLIENTES
   =========================== */

.logo-ticker {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated-soft);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.logo-item {
  flex: 0 0 auto;
  padding: 14px 28px;
}

.client-logo-placeholder {
  min-width: 140px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Si usas logos reales, solo asegúrate que las imgs encajen */
.logo-item img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   TEAM
   =========================== */

.team-card {
  background-color: var(--bg-elevated);
  border-radius: 22px;
  padding: 18px 16px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: radial-gradient(circle at 20% 0%, var(--brand-primary-light), var(--brand-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-primary);
  font-size: 1.8rem;
}

.cargo {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===========================
   CONTACTO
   =========================== */

#contact {
  background-color: var(--bg-elevated-soft);
}

.dark-theme #contact {
  background-color: #05060a;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  color: #ffffff;
}

.footer-top {
  padding: 32px 0 18px;
  background-color: #05060a;
}

.footer-top ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-top ul li {
  margin-bottom: 6px;
}

.footer-top a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-top a:hover {
  color: var(--brand-primary-light);
}

/* social */
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #111827;
}

/* Dev badge MarcaPro */
.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #e5e7eb;
  text-decoration: none;
}

.dev-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand-primary);
}

.dev-ext {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #111827;
  background-color: #020308;
  padding: 10px 0;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* ===========================
   WHATSAPP BUTTON
   =========================== */

.whatsapp-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
}

.whatsapp-button .linkChat {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background-color: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.5);
  font-size: 1.7rem;
}

/* ======================
   NAVBAR REALMENTE STICKY
   ====================== */

/* ======================
   NAVBAR FIJO ARRIBA
   ====================== */

.navbar-sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999 !important;

  background-color: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.dark-theme .navbar-sticky {
  background-color: rgba(5,6,10,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}


/* Evitar que el proceso cree ancho extra */
.process,
.process-item,
.value-list,
.value-item,
.map-card,
.map-figure {
  max-width: 100% !important;
  overflow-x: hidden !important;
}


/* ===========================
   BENEFIT CARDS PREMIUM
   =========================== */

.benefit-card {
  background-color: var(--bg-elevated);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 32px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
  height: 100%;
}

.dark-theme .benefit-card {
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.dark-theme .benefit-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-primary);
  font-size: 1.7rem;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.benefit-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* BENEFICIOS VERSION SIMPLE */
.benefit-simple {
  text-align: center;
  padding: 24px 20px;
  border-radius: 18px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: .25s ease;
}
.benefit-simple i {
  font-size: 2rem;
  color: var(--brand-primary-dark);
}
.benefit-simple:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.1);
}
.dark-theme .benefit-simple:hover {
  box-shadow: 0 18px 50px rgba(0,0,0,0.7);
}

/* ===========================
   SERVICE 3 — MINIMAL PREMIUM
   =========================== */

.minimal-hero {
  padding: 120px 0 100px;
  text-align: center;
  background-color: var(--bg-page);
}

.minimal-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.minimal-sub {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.big-text {
  font-size: 1.35rem;
  color: var(--text-main);
  line-height: 1.75;
}

.minimal-section {
  padding: 80px 0;
}

.minimal-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.minimal-item {
  padding: 16px 22px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--text-main);
  background-color: var(--bg-elevated);
}

.minimal-item i {
  font-size: 1.4rem;
  color: var(--brand-primary-dark);
}

/* BENEFITS MINIMAL */
.benefit-minimal {
  text-align: center;
  border-radius: 16px;
  padding: 28px 20px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: .25s ease;
}

.benefit-minimal i {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--brand-primary-dark);
}

.benefit-minimal:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.1);
}

.minimal-cta {
  padding: 100px 0;
  background-color: var(--bg-elevated-soft);
}
.dark-theme .minimal-cta {
  background-color: #05060a;
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-hero {
  padding: 120px 0 80px;
  background-color: var(--bg-page);
  text-align: center;
}

.contact-title {
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  color: var(--text-main);
  font-weight: 700;
}

.contact-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 12px auto 0;
}

.contact-section {
  padding: 80px 0;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.contact-info-item i {
  font-size: 1.3rem;
  color: var(--brand-primary-dark);
}

.contact-info-item a {
  color: var(--text-main);
  text-decoration: none;
}

.contact-card {
  padding: 30px 28px;
  border-radius: 22px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 40px rgba(0,0,0,0.06);
}

.dark-theme .contact-card {
  box-shadow: 0 18px 50px rgba(0,0,0,0.7);
}

.custom-input,
.custom-textarea {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  color: var(--text-main);
}

.custom-input:focus,
.custom-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.25);
}

.contact-map {
  padding: 80px 0;
  background-color: var(--bg-elevated-soft);
}

.map-placeholder {
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px dashed var(--border-subtle);
  background-color: var(--bg-elevated);
}

/* ===========================
   FIX PARA btn-outline-dark
   =========================== */

/* Light mode (normal) */
.btn-outline-dark {
  border-radius: 999px;
  --bs-btn-color: #111111;
  --bs-btn-border-color: #111111;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #111111;
  --bs-btn-hover-border-color: #111111;
}

/* Dark mode — convertirla en outline claro */
.dark-theme .btn-outline-dark {
  --bs-btn-color: #f5f5f5;
  --bs-btn-border-color: #f5f5f5;
  --bs-btn-hover-color: var(--brand-primary-dark);
  --bs-btn-hover-bg: #f5f5f5;
  --bs-btn-hover-border-color: #f5f5f5;
}
