/* =====================================================
   TOKENS
===================================================== */
:root {
  --yellow:  #fcb900;
  --black:   #000000;
  --dark:    #0A0A0A;
  --gray:    #54595F;
  --white:   #ffffff;
  --font:    'Century Gothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  --radius-btn:  15px;
  --radius-card: 20px;
}

/* =====================================================
   RESET & BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: pointer; border: none; font-family: var(--font); }

/* =====================================================
   SCROLL REVEAL & TITLE ANIMATIONS
===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.scale-up   { transform: scale(0.92) translateY(20px); }
.reveal.visible    { opacity: 1; transform: translate(0,0) scale(1); filter: blur(0); }
.reveal.d1 { transition-delay: 0.15s; }
.reveal.d2 { transition-delay: 0.30s; }
.reveal.d3 { transition-delay: 0.45s; }
.reveal.d4 { transition-delay: 0.60s; }

/* Títulos más dinámicos y fluidos con efecto 3D */
h1.reveal, h2.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.96) rotateX(-12deg);
  transform-origin: bottom center;
  filter: blur(16px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
h1.reveal.visible, h2.reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotateX(0);
  filter: blur(0);
}

/* Subtítulos más suaves */
p.reveal, .sub.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 1.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 1.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
p.reveal.visible, .sub.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

@media (max-width: 767px) {
  .reveal { transition-duration: 0.8s !important; filter: blur(6px); }
  h1.reveal, h2.reveal { 
    transition-duration: 1s !important; 
    filter: blur(10px); 
    transform: translateY(30px) scale(0.98) rotateX(-8deg); 
  }
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-yellow {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 40px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  transition: filter .2s, transform .2s, box-shadow .2s;
  line-height: 1;
}
.btn-yellow:hover {
  filter: brightness(0.88);
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(252,185,0,0.45);
}

.btn-black {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 40px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--yellow);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: filter .2s, transform .2s, box-shadow .2s;
  line-height: 1;
}
.btn-black:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(252,185,0,0.3);
}

/* =====================================================
   NAVBAR
===================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
#navbar.scrolled {
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(252,185,0,0.14);
}
#navbar img {
  width: 160px;
  height: auto;
}

/* =====================================================
   HERO
===================================================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}
#hero .video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
#hero iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130vw; height: 130vh;
  min-width: 100%; min-height: 100%;
  border: none;
  pointer-events: none;
  will-change: transform;
}
#hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}
#hero .content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 920px;
}
#hero .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 22px;
}
#hero h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(36px, 6.5vw, 68px);
  color: var(--white);
  margin-bottom: 26px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
#hero h1 span { color: var(--yellow); }
#hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.72);
  margin-bottom: 52px;
  line-height: 1.65;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.scroll-dot-wrap {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-dot {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { opacity: 0; transform: translateY(-8px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(8px); }
}

/* =====================================================
   SECTIONS — shared
===================================================== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-inner.wide {
  max-width: 1200px;
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-header h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.12;
}
.section-header p {
  font-family: var(--font);
  font-size: 18px;
  color: var(--gray);
}
.section-cta {
  text-align: center;
  margin-top: 64px;
}

/* =====================================================
   PROBLEM — #problema
===================================================== */
#problema {
  background: var(--black);
  padding: clamp(64px, 9vw, 110px) 24px;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.pain-card {
  background: var(--dark);
  border: 1px solid var(--yellow);
  padding: 40px 36px;
  text-align: center;
  border-radius: var(--radius-card);
  transition: box-shadow .3s, transform .3s;
}
.pain-card:hover {
  box-shadow: 0 0 24px rgba(252,185,0,0.18);
  transform: translateY(-4px);
}
.pain-card .icon { margin-bottom: 20px; }
.pain-card h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 14px;
}
.pain-card p {
  font-family: var(--font);
  font-size: 16px;
  color: var(--gray);
  line-height: 1.68;
}

/* =====================================================
   SOLUTION — #solucion
===================================================== */
#solucion {
  background: var(--dark);
  padding: clamp(64px, 9vw, 110px) 24px;
}
.sol-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.sol-row:last-of-type { margin-bottom: 0; }
.sol-img {
  overflow: hidden;
  border-radius: var(--radius-card);
}
.sol-img img,
.sol-img video {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s ease;
}
.sol-img:hover img,
.sol-img:hover video { transform: scale(1.04); }
@media (min-width: 768px) {
  .sol-row.flip .sol-img { order: 2; }
  .sol-row.flip .sol-text { order: 1; }
}
.sol-text .icon { margin-bottom: 20px; }
.sol-text h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.15;
}
.sol-text .desc {
  font-family: var(--font);
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 20px;
  line-height: 1.7;
}
.sol-text .highlight {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
}

/* =====================================================
   CASES — #cases
===================================================== */
#cases {
  background: var(--black);
  padding: clamp(64px, 9vw, 110px) 24px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.case-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: var(--radius-card);
  display: block;
  cursor: pointer;
}
.case-card img,
.case-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.case-card:hover img,
.case-card:hover video { transform: scale(1.06); }
.case-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: linear-gradient(to top, rgba(0,0,0,0.88) 40%, transparent 100%);
  transition: background .3s;
}
.case-card:hover .case-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.96) 55%, rgba(0,0,0,0.25) 100%);
}
.case-info {
  position: absolute;
  inset: 0;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.case-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  border-radius: 6px;
  align-self: flex-start;
}
.case-info h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.25;
}
.case-info .sub {
  font-family: var(--font);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.case-cta {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.case-card:hover .case-cta { opacity: 1; transform: translateY(0); }

/* =====================================================
   DIFERENCIAL — #diferencial
===================================================== */
#diferencial {
  background: var(--yellow);
  padding: clamp(64px, 9vw, 110px) 48px;
}
#diferencial .section-inner { max-width: 1000px; }
#diferencial .header { margin-bottom: 56px; }
#diferencial .header h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 52px);
  color: var(--black);
  margin-bottom: 18px;
  line-height: 1.08;
  max-width: 720px;
}
#diferencial .header p {
  font-family: var(--font);
  font-size: 20px;
  color: rgba(0,0,0,0.55);
}
.dif-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.dif-item:last-child { border-bottom: none; }
.dif-item .icon { flex-shrink: 0; margin-top: 4px; }
.dif-item h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
  margin-bottom: 10px;
}
.dif-item p {
  font-family: var(--font);
  font-size: 17px;
  color: rgba(0,0,0,0.62);
  line-height: 1.68;
}

/* =====================================================
   CAPACIDADES — #capacidades
===================================================== */
#capacidades {
  background: var(--dark);
  padding: clamp(64px, 9vw, 110px) 24px;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 767px) {
  .cap-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
.cap-card {
  border: 2px solid var(--yellow);
  background: var(--black);
  padding: 30px 24px;
  text-align: center;
  border-radius: var(--radius-card);
  transition: box-shadow .3s, transform .3s;
}
.cap-card:hover {
  box-shadow: 0 0 28px rgba(252,185,0,0.28);
  transform: translateY(-5px);
}
.cap-card .icon { margin-bottom: 18px; }
.cap-card p {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  color: var(--yellow);
  line-height: 1.4;
}

/* =====================================================
   CTA FINAL
===================================================== */
#cta-final {
  background: var(--black);
  padding: clamp(80px, 11vw, 140px) 24px;
  text-align: center;
}
#cta-final .inner { max-width: 720px; margin: 0 auto; }
#cta-final h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(32px, 5.5vw, 60px);
  color: var(--white);
  margin-bottom: 22px;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
#cta-final h2 span { color: var(--yellow); }
#cta-final .sub {
  font-family: var(--font);
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 52px;
  line-height: 1.65;
}
#cta-final .note {
  font-family: var(--font);
  font-size: 13px;
  color: var(--gray);
  margin-top: 26px;
}

/* =====================================================
   MODAL
===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  --modal-gutter: 24px;
  padding: var(--modal-gutter);
  overflow-y: auto;
  align-items: safe center;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - var(--modal-gutter) * 2);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  font-size: 20px;
}
.modal-close:hover {
  background: rgba(252, 185, 0, 0.2);
  color: var(--yellow);
  transform: scale(1.05);
}
.modal-content-wrap {
  padding: 40px 24px 24px;
}

@media (max-width: 600px) {
  .modal-overlay {
    --modal-gutter: 12px;
  }
  .modal-content-wrap {
    padding: 32px 16px 20px;
  }
}

/* =====================================================
   FOOTER (Floka Inspired)
===================================================== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  padding: clamp(80px, 12vw, 140px) 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-cta h2 {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--gray);
  margin-bottom: 24px;
}
.footer-cta-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 120px);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.4s ease;
  position: relative;
}
.footer-cta-link .arrow {
  display: inline-block;
  font-size: clamp(32px, 6vw, 80px);
  margin-left: 20px;
  color: var(--yellow);
  transition: transform 0.4s ease;
}
.footer-cta-link:hover {
  color: var(--yellow);
}
.footer-cta-link:hover .arrow {
  transform: translate(12px, -12px);
}

.footer-main-new {
  max-width: 1300px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
}
@media (max-width: 900px) {
  .footer-main-new {
    grid-template-columns: 1fr 1fr;
  }
  .brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer-main-new {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 48px;
  }
}

.footer-logo-img {
  width: 180px;
  margin-bottom: 28px;
}
.footer-desc {
  font-family: var(--font);
  font-size: 18px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray);
  margin-bottom: 32px;
}
.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-col nav a {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  width: max-content;
}
.footer-col nav a .arrow {
  font-size: 14px;
  margin-left: 8px;
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--yellow);
}
.footer-col nav a:hover {
  color: var(--yellow);
  transform: translateX(8px);
}
.footer-col nav a:hover .arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .footer-bottom {
    padding: 30px 24px;
    flex-direction: column;
    text-align: center;
  }
}
.footer-copy {
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray);
}
.footer-brand-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 80px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.1);
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

/* =====================================================
   MOCKUP PROJECTS
===================================================== */
#mockup-projects {
  background: var(--dark);
  padding: clamp(64px, 9vw, 110px) 24px;
}
#mockup-projects h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(32px, 5.5vw, 60px);
  color: var(--white);
  margin-bottom: 22px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-align: center;
}
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mockup-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 9/16;
  background: var(--black);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}
.mockup-card:hover {
  transform: translateY(-8px);
}
.mockup-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .mockup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .mockup-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */
@media (max-width: 767px) {
  #navbar { padding: 14px 20px; }
  #navbar img { width: 120px; }
  #hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .sol-row { gap: 32px; margin-bottom: 64px; }
  #diferencial { padding: clamp(48px, 8vw, 80px) 24px; }
  .footer-brand { padding: 0 20px; }
  .footer-bar { padding: 16px 24px; }
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 58px;
        height: 58px;
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}