:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --brand: #f0b3b2;
  --brand-2: #22c55e;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --surface: #f8fafc;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, Helvetica, Arial, 'Apple Color Emoji',
    'Segoe UI Emoji';
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.narrow {
  width: min(800px, 92%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand__logo {
  color: var(--brand);
}

.brand__name {
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 56px 0 24px;
  background: radial-gradient(
      1200px 400px at 10% -10%,
      rgba(124, 58, 237, 0.08),
      transparent 60%
    ),
    radial-gradient(
      1000px 400px at 90% 10%,
      rgba(6, 182, 212, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #f0f9ff 0%, #ffffff 40%);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero__title {
  margin: 0 0 10px 0;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
  perspective: 600px;
}

.hero__subtitle {
  margin: 6px 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.hero__media img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Floating color orbs for crazy hero effect */
.hero__fx {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 80%;
  pointer-events: none;
  filter: blur(40px);
}
.hero__fx span {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  opacity: 0.6;
  mix-blend-mode: multiply;
  animation: orb 14s infinite ease-in-out alternate;
}
.hero__fx span:nth-child(1) {
  left: 10%;
  top: 10%;
  background: #f472b6;
}
.hero__fx span:nth-child(2) {
  left: 50%;
  top: 0%;
  background: #a78bfa;
  animation-duration: 18s;
}
.hero__fx span:nth-child(3) {
  left: 75%;
  top: 30%;
  background: #fca5a5;
  animation-duration: 22s;
}

@keyframes orb {
  0% {
    transform: translateY(-10%) translateX(-10%) scale(1);
  }
  50% {
    transform: translateY(10%) translateX(10%) scale(1.15);
  }
  100% {
    transform: translateY(-5%) translateX(5%) scale(0.95);
  }
}

/* Hero title character animation */
.hero__title .hero-char {
  display: inline-block;
  transform-origin: 50% 80%;
  opacity: 0;
  transform: translateY(24px) rotateX(-70deg) scale(0.8);
}
.animate-chars .hero-char {
  animation: charIn 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 25ms);
}

@keyframes charIn {
  0% {
    opacity: 0;
    transform: translateY(24px) rotateX(-70deg) scale(0.8);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) rotateX(12deg) scale(1.08);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

/* Gradient underline for section titles */
.section__title {
  position: relative;
}
.section__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section {
  padding: 48px 0;
}
.section--alt {
  background: var(--surface);
}
.section--map {
  padding-bottom: 64px;
}

.section__title {
  margin: 0 0 22px 0;
  font-size: clamp(20px, 3vw, 28px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.06);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.1);
}

.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__title {
  margin: 14px 14px 6px;
  font-size: 18px;
}
.card__text {
  margin: 0 14px 16px;
  color: var(--muted);
}

.list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li::before {
  content: '• ';
  color: var(--brand);
  font-weight: 700;
}

/* Icon list variant */
.list--icons li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.list--icons li::before {
  content: none;
}
.list--icons svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: 0 0 auto;
}

.lead {
  font-size: 18px;
}

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.06);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer__brand {
  margin: 0;
}

.footer-contact {
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact__item svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}
.footer-contact__item a {
  color: inherit;
  text-decoration: none;
}
.footer-contact__item a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--brand-2);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  filter: brightness(0.95);
}
.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

/* Scroll-reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition-property: opacity, transform;
  transition-duration: var(--duration, 1500ms);
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0.25s);
}

[data-reveal='up'].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal='right'] {
  transform: translateX(14px);
}
[data-reveal='right'].is-visible {
  opacity: 1;
  transform: translateX(0);
}
[data-reveal='fade'].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
  }
}
