/* Reset & variables */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.6;
}

body {
  transition: background-color 1s ease;
}

:root {
  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --secondary: #14b8a6;
  --bg: #f8fafc;
  --card: #ffffffcc;
  --text: #0f172a;
  --muted: #475569;
  --ring: 0 0 0 6px #0ea5e922;
  --radius: 14px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section { padding: 80px 0; }
.section-cover { margin: 0 0 12px; }
.section-cover__img { width: 100%; height: clamp(160px, 36vw, 340px); object-fit: cover; border-radius: 14px; box-shadow: 0 12px 32px #0f172a1a; }
.section__title {
  margin: 0 0 8px 0;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: -0.02em;
}
.section__subtitle {
  margin: 0 0 28px 0;
  color: var(--muted);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: linear-gradient(180deg, #ffffffcc, #ffffffb3 60%, transparent);
  border-bottom: 1px solid #e2e8f0aa;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { 
  display: inline-flex; 
  align-items: center; 
  text-decoration: none; 
  color: inherit; 
  font-weight: 700; 
}

.logo__image {
  height: 80px;
  width: auto;
  object-fit: contain;
  animation: logoFloat 3s ease-in-out infinite;
  transition: all 0.3s ease;
  display: block;
  max-width: 200px;
  min-width: auto;
}

.logo:hover .logo__image {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 8px 25px rgba(14, 165, 233, 0.3));
}

.logo__image--footer {
  height: 40px;
  filter: brightness(0) invert(1);
  animation: logoFloatFooter 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.logo--footer:hover .logo__image--footer {
  transform: scale(1.05) rotate(-3deg);
  filter: brightness(0) invert(1) drop-shadow(0 4px 15px rgba(255, 255, 255, 0.3));
}

.menu { 
  display: flex; 
  gap: 18px; 
  align-items: center; 
}

.menu__link {
  animation: slideInMenu 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(-20px);
}

.menu__link:nth-child(1) { animation-delay: 0.1s; }
.menu__link:nth-child(2) { animation-delay: 0.2s; }
.menu__link:nth-child(3) { animation-delay: 0.3s; }
.menu__link:nth-child(4) { animation-delay: 0.4s; }
.menu__link:nth-child(5) { animation-delay: 0.5s; }
.menu__link:nth-child(6) { animation-delay: 0.6s; }
.menu__link { 
  color: #0f172a; 
  text-decoration: none; 
  font-weight: 500; 
  opacity: .9; 
  position: relative;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.menu__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.menu__link:hover { 
  color: var(--primary-600); 
  transform: translateY(-2px);
}

.menu__link:hover::after {
  width: 100%;
}

.nav__cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid #e2e8f0; background: white; cursor: pointer; align-items: center; justify-content: center; gap: 4px; }
.hamburger span { display: block; width: 18px; height: 2px; background: #0f172a; }

/* Buttons */
.btn {
  appearance: none;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: white; box-shadow: 0 6px 20px #0ea5e955; }
.btn--primary:hover { background: var(--primary-600); box-shadow: 0 10px 28px #0ea5e977; }
.btn--secondary { background: #e2e8f0; color: #0f172a; }
.btn--secondary:hover { background: #cbd5e1; }
.btn--ghost { background: transparent; border: 1px solid #e2e8f0; }
.btn--ghost:hover { background: #f1f5f9; }

/* Subtle shine on hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 40%;
  height: 200%;
  background: linear-gradient(120deg, transparent 0%, #ffffff66 50%, transparent 100%);
  transform: skewX(-20deg) translateX(-100%);
  transition: transform .6s ease;
}
.btn--primary:hover::after { transform: skewX(-20deg) translateX(250%); }

/* Hero */
.hero { 
  position: relative; 
  overflow: hidden; 
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__background-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #000000;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
}

.particles { 
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; 
  pointer-events: none; 
}

.hero__content-centered {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero__title { 
  font-size: clamp(28px, 4vw, 48px); 
  line-height: 1.3; 
  margin: 0 0 20px 0; 
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

.hero__line { 
  display: block; 
  margin-bottom: 8px;
  overflow: hidden;
  line-height: 1.3;
  vertical-align: baseline;
  position: relative;
}

.hero__line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: lineGrow 0.8s ease-out forwards;
  animation-delay: calc(0.5s + var(--line-delay, 0s));
}

.hero__line span {
  display: inline-block;
  opacity: 0;
  transform: translateX(50px) scale(0.8);
  animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  transition: all 0.3s ease;
}

.hero__line span:hover {
  transform: translateX(-5px) scale(1.1);
  color: var(--primary);
  text-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.hero__line--red { 
  color: #ffffff; 
  font-weight: 700; 
}

.text-gradient { 
  background: linear-gradient(90deg, #0ea5e9, #14b8a6); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
}

.hero__subtitle { 
  color: #e2e8f0; 
  margin: 0 0 24px 0; 
  font-size: clamp(16px, 2.5vw, 20px);
}

.hero__actions { 
  display: flex; 
  gap: 16px; 
  margin-bottom: 24px; 
  flex-wrap: wrap; 
  justify-content: center;
}

.hero__badges { 
  list-style: none; 
  padding: 0; 
  margin: 24px 0 0; 
  display: flex; 
  gap: 20px; 
  color: #e2e8f0; 
  opacity: .95; 
  flex-wrap: wrap; 
  justify-content: center;
}

.hero__badges li {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Letter by letter animation */
.hero__line:nth-child(1) {
  --line-delay: 0s;
}

.hero__line:nth-child(1) span {
  animation-delay: calc(0.1s * var(--char-index, 0));
}

.hero__line:nth-child(2) {
  --line-delay: 1s;
}

.hero__line:nth-child(2) span {
  animation-delay: calc(1.5s + 0.1s * var(--char-index, 0));
}

.hero__line:nth-child(3) {
  --line-delay: 2s;
}

.hero__line:nth-child(3) span {
  animation-delay: calc(2.0s + 0.1s * var(--char-index, 0));
}

.hero__subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 2.5s;
}

.hero__actions {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 3.0s;
}

.hero__badges {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 3.5s;
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes lineGrow {
  to {
    width: 100%;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(0deg);
  }
  75% {
    transform: translateY(-3px) rotate(-1deg);
  }
}

@keyframes logoFloatFooter {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-3px) rotate(0deg);
  }
  75% {
    transform: translateY(-2px) rotate(-0.5deg);
  }
}

@keyframes slideInMenu {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInImage {
  to {
    opacity: 1;
  }
}

@keyframes slideInCaption {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 18px; backdrop-filter: blur(6px); box-shadow: 0 12px 36px #0f172a10; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px #0f172a1a; }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; background: #e0f2fe; color: #0369a1; border-radius: 12px; }
.card__title { margin: 12px 0 6px; font-size: 18px; }
.card__list { margin: 0; padding: 0 0 0 16px; color: var(--muted); }
.card__action { display: inline-block; margin-top: 12px; text-decoration: none; color: var(--primary-600); font-weight: 600; }
.card__action:hover { text-decoration: underline; }

/* Why */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why__list li { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; }
.check { color: #16a34a; font-weight: 700; margin-right: 6px; }
.why__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { text-align: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; }
.kpi strong { display: block; font-size: 20px; }
.kpi span { color: var(--muted); font-size: 12px; }

/* Gallery */
.gallery__item {
  break-inside: avoid;
  margin-bottom: 20px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px #0f172a12;
  transition: all 0.3s ease;
  opacity: 0;
  animation: slideInUp 0.8s ease-out forwards;
}

.gallery__item:nth-child(1) { animation-delay: 0.1s; }
.gallery__item:nth-child(2) { animation-delay: 0.2s; }
.gallery__item:nth-child(3) { animation-delay: 0.3s; }
.gallery__item:nth-child(4) { animation-delay: 0.4s; }

.gallery__item .masonry__item {
  opacity: 0;
  animation: fadeInImage 0.6s ease-out forwards;
}

.gallery__item:nth-child(1) .masonry__item { animation-delay: 0.1s; }
.gallery__item:nth-child(2) .masonry__item { animation-delay: 0.2s; }
.gallery__item:nth-child(3) .masonry__item { animation-delay: 0.3s; }
.gallery__item:nth-child(4) .masonry__item { animation-delay: 0.4s; }



.gallery__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px #0f172a1a;
}

.gallery__item .masonry__item {
  width: 100%;
  height: auto;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  cursor: zoom-in;
}

.gallery__caption {
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  opacity: 0;
  animation: slideInCaption 0.8s ease-out forwards;
}

.gallery__item:nth-child(1) .gallery__caption { animation-delay: 0.8s; }
.gallery__item:nth-child(2) .gallery__caption { animation-delay: 1.0s; }
.gallery__item:nth-child(3) .gallery__caption { animation-delay: 1.2s; }
.gallery__item:nth-child(4) .gallery__caption { animation-delay: 1.4s; }



.gallery__caption h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}



.gallery__caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.masonry { columns: 3 280px; column-gap: 14px; }

.lightbox { position: fixed; inset: 0; background: #0f172acc; display: none; align-items: center; justify-content: center; z-index: 60; }
.lightbox--open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 60px #00000066; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #334155; background: #0f172a; color: white; font-size: 22px; cursor: pointer; }

/* Keyword banner */
.keyword-banner { padding-top: 24px; padding-bottom: 24px; }
.kb { position: relative; margin: 0; }
.kb__img { width: 100%; height: clamp(180px, 38vw, 360px); object-fit: cover; border-radius: 16px; box-shadow: 0 16px 40px #0f172a22; }
.kb::after {
  content: "";
  position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(180deg, #0f172a00 20%, #0f172a66 60%, #0f172acc 100%);
}
.kb__caption {
  position: absolute; inset: 0; display: grid; align-content: end; gap: 6px; padding: 16px; border-radius: 16px; color: #f8fafc; font-weight: 700;
}
.kb__line1 { font-size: clamp(16px, 3.8vw, 28px); line-height: 1.1; text-shadow: 0 4px 16px #00000066; }
.kb__line2 { font-size: clamp(16px, 3.6vw, 26px); text-shadow: 0 4px 16px #00000066; white-space: nowrap; }
.kb__line2--red { color: #ef4444; background: #ef44440f; display: inline-block; padding: 4px 8px; border-radius: 8px; }
.kb__line3 { font-size: clamp(14px, 3.2vw, 22px); opacity: .95; text-shadow: 0 4px 16px #00000066; }

/* Testimonials */
.slider { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: hidden; scroll-behavior: smooth; }
.slider__nav { width: 42px; height: 42px; border-radius: 10px; border: 1px solid #e2e8f0; background: white; cursor: pointer; }
.review { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; box-shadow: 0 10px 30px #0f172a12; }
.review__text { margin: 0 0 8px; }
.review__author { color: var(--muted); font-size: 14px; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.contact__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.contact__list li { display: flex; gap: 10px; align-items: start; background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
.contact__icon { font-size: 20px; }

.form { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; box-shadow: 0 12px 36px #0f172a10; }
.form__row { display: grid; gap: 6px; margin-bottom: 12px; }
.form__label { font-weight: 600; }
.form__input { width: 100%; padding: 12px 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; font: inherit; color: inherit; }
.form__input:focus { outline: none; box-shadow: var(--ring); border-color: var(--primary); background: white; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form__hint { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* Footer */
.footer { background: #0f172a; color: #e2e8f0; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; padding: 28px 0; }
.logo--footer .logo__icon { filter: grayscale(1) brightness(1.6); }
.footer__title { margin: 8px 0; }
.footer__text { margin: 8px 0 0; color: #cbd5e1; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__links a { color: #e2e8f0; opacity: .9; text-decoration: none; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__bottom { border-top: 1px solid #1f2937; text-align: center; padding: 12px 0; font-size: 14px; color: #cbd5e1; }

/* WhatsApp FAB */
.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px #22c55e66;
  cursor: pointer;
  z-index: 70;
  animation: bump 2.2s infinite ease-in-out;
}
.whatsapp:hover { filter: brightness(1.05); }
.whatsapp::after {
  content: "WhatsApp";
  position: absolute;
  right: 64px;
  bottom: 50%;
  transform: translateY(50%);
  background: #0f172a;
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  font-size: 12px;
  box-shadow: 0 10px 30px #0f172a66;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.whatsapp:hover::after { opacity: 1; transform: translateY(50%) translateX(-2px); }
@keyframes bump { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-3px) } }

/* Animations */
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.in-view { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__content-centered {
    padding: 0 20px;
  }
}
@media (max-width: 860px) {
  .hero {
    min-height: 80vh;
  }
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  .hero__badges {
    flex-direction: column;
    align-items: center;
  }
  .gallery__item {
    margin-bottom: 16px;
  }
  .logo__image {
    height: 60px;
  }
  .cards { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .why__kpis { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .menu { display: none; position: absolute; top: 60px; right: 14px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; box-shadow: 0 20px 60px #0f172a22; flex-direction: column; }
  .menu.menu--open { display: flex; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 560px) {
  .hero {
    min-height: 70vh;
  }
  .hero__title {
    font-size: clamp(24px, 6vw, 32px);
  }
  .hero__subtitle {
    font-size: clamp(14px, 4vw, 18px);
  }
  .hero__actions {
    gap: 12px;
  }
  .hero__badges li {
    font-size: 14px;
    padding: 6px 12px;
  }
  .cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .kb__line1 { font-size: clamp(14px, 3.6vw, 26px); }
  .kb__line2 { font-size: clamp(14px, 3.4vw, 24px); }
  .kb__line3 { font-size: clamp(12px, 3.0vw, 20px); }
}


