/* ============================================================
   IN.FLUSSO — Hoja de estilos principal
   Bootstrap 5.3  +  custom design system
   ============================================================ */

/* -----------------------------------------------------------
   0. Fuentes personalizadas
   ----------------------------------------------------------- */
@font-face {
  font-family: 'GoodtimeGrotesk';
  src: url('fonts/GoodTimeGrotesk.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* -----------------------------------------------------------
   1. Variables de diseño
   ----------------------------------------------------------- */
:root {
  --teal:        #1ba7b3;
  --teal-dark:   #148a94;
  --teal-light:  #eaf7f8;
  --orange:      #d58142;
  --orange-dark: #b86c30;
  --gray:        #545454;
  --gray-mid:    #7a7a7a;
  --gray-light:  #f4f4f4;
  --white:       #ffffff;
  --dark:        #1a1a1a;
  --border:      #e0e0e0;
  --bs-font-sans-serif: 'Inter', sans-serif;
}

/* -----------------------------------------------------------
   2. Reset y base
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Inter', sans-serif;
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* -----------------------------------------------------------
   3. Animación reveal al hacer scroll
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.25,.46,.45,.94),
              transform  .75s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }
.rd4 { transition-delay: .4s; }

/* -----------------------------------------------------------
   4. Navbar
   ----------------------------------------------------------- */
.navbar-influsso {
  height: 76px;
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar-influsso.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }
.nav-logo-img { height: 56px; width: auto; display: block; }

.nav-custom-link {
  font-size:      11px   !important;
  font-weight:    700    !important;
  letter-spacing: .1em   !important;
  text-transform: uppercase !important;
  color:          var(--gray) !important;
  transition:     color .2s  !important;
  padding-top:    0 !important;
  padding-bottom: 0 !important;
}
.nav-custom-link:hover { color: var(--teal) !important; }

.nav-cta {
  font-size:      11px;
  font-weight:    700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding:        10px 22px;
  background:     var(--orange);
  color:          #fff !important;
  border-radius:  2px;
  transition:     background .2s;
  white-space:    nowrap;
}
.nav-cta:hover { background: var(--orange-dark); }

/* -----------------------------------------------------------
   5. Hero
   ----------------------------------------------------------- */
.hero             { min-height: 100vh; padding-top: 76px; overflow: hidden; }
.hero-row         { min-height: calc(100vh - 76px); }
.hero-left        { padding: 72px 5% 72px 6%; background: var(--white); }
.hero-right       { position: relative; overflow: hidden; min-height: 55vw; }
@media (min-width: 768px) { .hero-right { min-height: unset; } }

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: grayscale(20%) brightness(.82);
  transition: transform 8s ease;
  position: absolute; top: 0; left: 0;
}
.hero-img:hover { transform: scale(1.03); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,.15), rgba(26,26,26,.35));
  z-index: 1;
}
.hero-accent {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--orange); z-index: 2;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 22px; height: 1px; background: var(--teal);
}

.hero-h1 {
  font-size: clamp(28px, 4vw, 50px); font-weight: 800;
  color: var(--dark); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px;
}
.hero-h1 span { color: var(--teal); }

.hero-body {
  font-size: 15px; line-height: 1.85;
  color: var(--gray-mid); max-width: 440px; margin-bottom: 32px;
}

.hero-tagline {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-left: 3px solid var(--orange);
  background: var(--gray-light); width: fit-content; margin-bottom: 36px;
}
.tl-word { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--gray); text-transform: uppercase; }
.tl-sep  { font-size: 9px; color: var(--gray-mid); }

.hero-btn {
  display: inline-block; padding: 14px 30px;
  background: var(--teal); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; border-radius: 2px; transition: background .2s;
}
.hero-btn:hover { background: var(--teal-dark); }

/* -----------------------------------------------------------
   6. Secciones — elementos comunes
   ----------------------------------------------------------- */
.sec-pad { padding: 88px 0; }

.sec-label {
  font-size: 10px; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.sec-label::before {
  content: ''; display: block; width: 18px; height: 1px; background: var(--teal);
}

.sec-h2 {
  font-size: clamp(24px, 3vw, 36px); font-weight: 800;
  color: var(--dark); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 12px;
}
.sec-sub  { font-size: 14px; line-height: 1.8; color: var(--gray-mid); }
.divider  { width: 32px; height: 3px; background: var(--teal); margin: 14px 0 36px; }

/* -----------------------------------------------------------
   7. Nosotros
   ----------------------------------------------------------- */
#nosotros { background: var(--gray-light); }
.nos-lead { font-size: 15px; line-height: 1.9; color: var(--gray); }
.nos-lead strong { font-weight: 700; color: var(--dark); }

.founder-card {
  background: var(--white); border-radius: 3px;
  border-top: 3px solid var(--teal); padding: 32px;
}
.founder-pre {
  font-size: 9px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 20px;
}

/* Foto del fundador */
.founder-photo-ph {
  width: 120px; height: 148px;
  overflow: hidden; flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--gray-light);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.founder-photo-ph img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

.founder-name { font-size: 19px; font-weight: 800; color: var(--dark); margin-bottom: 6px; margin-top: 4px; }
.founder-role { font-size: 11px; color: var(--gray-mid); line-height: 1.6; }
.founder-bio  { font-size: 13px; line-height: 1.9; color: var(--gray); margin-bottom: 10px; }

/* -----------------------------------------------------------
   8. Servicios
   ----------------------------------------------------------- */
#servicios { background: var(--white); }
.srv-grid   { border: 1px solid var(--border); }

.srv-card {
  background: var(--white); padding: 36px 28px;
  position: relative; overflow: hidden;
  transition: background .25s;
  border: none; border-radius: 0;
}
.srv-card + .srv-card { border-left: 1px solid var(--border); }
@media (max-width: 991px) {
  .srv-card + .srv-card { border-left: none; border-top: 1px solid var(--border); }
}

.srv-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--orange);
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.srv-card:hover::after   { transform: scaleX(1); }
.srv-card:hover          { background: var(--teal-light); }

.srv-num {
  font-size: 42px; font-weight: 800;
  color: var(--border); line-height: 1; margin-bottom: 18px; transition: color .25s;
}
.srv-card:hover .srv-num { color: var(--teal); opacity: .3; }
.srv-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.srv-body  { font-size: 13px; line-height: 1.8; color: var(--gray-mid); }
.srv-tag   {
  display: inline-block; margin-bottom: 14px;
  font-size: 9px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; padding: 4px 10px;
  background: var(--teal-light); color: var(--teal); border-radius: 1px;
}

.srv-card.feat              { background: var(--dark); }
.srv-card.feat .srv-num     { color: rgba(255,255,255,.07); }
.srv-card.feat .srv-title   { color: var(--white); }
.srv-card.feat .srv-body    { color: rgba(255,255,255,.5); }
.srv-card.feat .srv-tag     { background: rgba(27,167,179,.15); color: var(--teal); }
.srv-card.feat::after       { background: var(--teal); }
.srv-card.feat:hover        { background: #222; }

/* -----------------------------------------------------------
   9. Diferencia — carrusel automático
   ----------------------------------------------------------- */
#diferencia { background: var(--white); }

.dif-title-block {
  text-align: center; padding: 100px 0 64px;
}
.dif-sup-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 28px;
}
.dif-sup-label::before,
.dif-sup-label::after {
  content: ''; display: block; width: 18px; height: 1px; background: var(--teal);
}
.dif-main-title {
  font-size: clamp(38px, 6vw, 72px); font-weight: 800;
  color: var(--dark); letter-spacing: -.025em; line-height: 1.05;
}
.dif-main-title em { color: var(--teal); font-style: normal; font-family: 'GoodtimeGrotesk', sans-serif; }

/* Carrusel */
.dif-carousel-outer {
  max-width: 100%; margin: 0 auto;
  background: var(--dark); border-radius: 16px;
  overflow: hidden; position: relative;
}

/* Barra de progreso */
.dif-progress {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,.08); z-index: 2;
}
.dif-progress-fill {
  height: 100%; width: 0; background: var(--teal);
  transition: none;
}
.dif-progress-fill.animating {
  transition: width linear;
}

/* Slides */
.dif-slides-wrap { padding: 52px 48px 44px; min-height: 260px; }
@media (max-width: 576px) { .dif-slides-wrap { padding: 44px 28px 36px; } }

.dif-slide {
  display: none;
  text-align: center;
  animation: difSlideIn .55s cubic-bezier(.25,.46,.45,.94);
}
.dif-slide.active { display: block; }

@keyframes difSlideIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dif-counter {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  margin-bottom: 28px;
}
.dif-counter em { color: var(--teal); font-style: normal; }

.dif-in-word {
  font-size: clamp(36px, 6vw, 60px); font-weight: 800;
  letter-spacing: -.025em; line-height: 1; margin-bottom: 20px;
}
.dif-in-pre  { color: var(--teal); font-family: 'GoodtimeGrotesk', sans-serif; }
.dif-in-suf  { color: var(--white); }

.dif-in-desc {
  font-size: 14px; line-height: 1.9;
  color: rgba(255,255,255,.45); max-width: 520px; margin: 0 auto;
}

/* Controles */
.dif-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; padding-bottom: 44px;
}
.dif-dots { display: flex; gap: 8px; align-items: center; }
.dif-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.18); cursor: pointer;
  transition: background .3s, transform .3s;
  border: none; padding: 0;
}
.dif-dot.active { background: var(--teal); transform: scale(1.5); }

.dif-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent; color: rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.dif-btn:hover {
  border-color: var(--teal); color: var(--teal); background: rgba(27,167,179,.1);
}
.dif-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Cierre */
.dif-cierre {
  margin: 64px auto 0; text-align: center;
  font-size: 13px; line-height: 2.1; color: #b0b0b0;
  max-width: 700px; padding: 0 20px 88px;
}

/* -----------------------------------------------------------
   10. Contacto
   ----------------------------------------------------------- */
#contacto { background: var(--gray-light); }

.contact-btn-wrap {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: center; margin-top: 48px;
}

.contact-btn {
  display: inline-flex; align-items: center; gap: 0;
  padding: 0; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; overflow: hidden;
  min-width: 280px; box-shadow: 0 4px 18px rgba(0,0,0,.15);
}
.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,.22);
}

/* Ícono: panel izquierdo */
.contact-btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 72px; min-height: 80px; flex-shrink: 0;
  background: rgba(0,0,0,.15);
}
.contact-btn-icon svg {
  width: 28px; height: 28px; fill: currentColor; flex-shrink: 0;
}

/* Texto: panel derecho */
.contact-btn-label {
  display: flex; flex-direction: column; text-align: left;
  padding: 20px 28px; flex: 1;
}
.contact-btn-title   { font-size: 15px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; }
.contact-btn-caption { font-size: 11px; font-weight: 400; opacity: .8; margin-top: 3px; letter-spacing: .02em; }

/* WhatsApp */
.contact-btn-wa  { background: linear-gradient(135deg, #25D366 0%, #1db954 100%); color: #fff; }
.contact-btn-wa:hover  { color: #fff; }

/* Email / Teal */
.contact-btn-mail { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; }
.contact-btn-mail:hover { color: #fff; }

@media (max-width: 600px) {
  .contact-btn { min-width: 100%; }
  .contact-btn-wrap { gap: 14px; }
}

.contact-note {
  font-size: 11px; color: var(--gray-mid); text-align: center; margin-top: 20px;
}

.social-icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--border);
  border-radius: 2px; color: var(--gray-mid); background: var(--white);
  transition: border-color .2s, color .2s, background .2s;
}
.social-icon-link:hover {
  border-color: var(--teal); color: var(--teal); background: var(--teal-light);
}
.social-icon-link svg { width: 20px; height: 20px; fill: currentColor; }

/* -----------------------------------------------------------
   11. Frase final
   ----------------------------------------------------------- */
.frase-final { background: var(--dark); padding: 88px 6%; text-align: center; }
.frase-final p {
  font-size: clamp(17px, 2.5vw, 27px); font-weight: 300;
  color: rgba(255,255,255,.4); letter-spacing: .04em; line-height: 1.6;
}

/* -----------------------------------------------------------
   12. Footer
   ----------------------------------------------------------- */
.footer-influsso {
  background: var(--dark); padding: 44px 6%;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-logo img {
  height: 42px; width: auto; display: block;
  filter: brightness(0) invert(1); opacity: .55;
}
.footer-contacts a {
  font-size: 11px; color: rgba(255,255,255,.35);
  transition: color .2s; display: block;
}
.footer-contacts a:hover { color: rgba(255,255,255,.7); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.18); }
