@font-face {
  font-family: 'Virtual';
  src: url('fonts/Virtual.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --teal: #3ecfcf;
  --teal-dark: #27a8a8;
  --pink: #e060a0;
  --pink-light: #f4b8d8;
  --purple: #8b5cf6;
  --mint: #d0f5f0;
  --bg: #ffffff;
  --text: #1a1a2e;
  --text-light: #5a5a7a;
  --card-bg: #f8fffe;
  --gradient-hero: linear-gradient(135deg, #e8fdfb 0%, #fce8f3 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Questrial', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(62,207,207,0.12);
}

.nav-logo {
  font-family: 'HK Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  transform: scaleX(0);
  transition: transform 0.25s;
  border-radius: 2px;
}

.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-nav {
  position: relative;
  background: #9b6fd4;
  color: white;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow:
    -4px -3px 0 2px #00e5ff,
    3px  4px 0 2px #ff3dc8;
  z-index: 0;
}
.btn-nav:hover {
  transform: translate(1px, 1px);
  box-shadow:
    -2px -2px 0 2px #00e5ff,
    2px  2px 0 2px #ff3dc8;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
#inicio {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5% 3rem;
  position: relative;
  overflow: hidden;
}

#inicio::before {
  content: '';
  position: absolute; top: -60px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,207,207,0.18) 0%, transparent 70%);
  pointer-events: none;
}

#inicio::after {
  content: '';
  position: absolute; bottom: -80px; left: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,96,160,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
  flex: 1;
}

.hero-content {
  max-width: 580px;
  animation: fadeUp 0.9s ease both;
  flex: 1;
}

.hero-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon-img {
  width: clamp(260px, 30vw, 400px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(62,207,207,0.18));
}

.nav-logo-img {
  height: 90px;
  width: auto;
  display: block;
}

.hero-logo-img {
  height: 100px;
  width: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.hero-slogan-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.hero-slogan-pill {
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-family: 'HK Grotesk', sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  background: transparent;
  white-space: nowrap;
  position: relative;
}

.hero-slogan-pill::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50px;
  background: linear-gradient(90deg, #00e5ff 0%, #c084fc 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  z-index: -1;
}

.hero-slogan-pill::after { display: none; }

.slogan-accent {
  color: var(--teal-dark);
}

.hero-slogan-heart {
  margin-top: -10px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'HK Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--teal), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin: 0 auto 2.4rem;
  max-width: 520px;
}

.hero-cta {
  display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center;
}

.btn-primary {
  position: relative;
  background: #9b6fd4;
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-block;
  box-shadow:
    -5px -4px 0 2px #00e5ff,
    4px  5px 0 2px #ff3dc8;
}
.btn-primary:hover {
  transform: translate(1px, 1px);
  box-shadow:
    -3px -2px 0 2px #00e5ff,
    2px  3px 0 2px #ff3dc8;
}

.btn-secondary {
  position: relative;
  background: #9b6fd4;
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow:
    -5px -4px 0 2px #00e5ff,
    4px  5px 0 2px #ff3dc8;
}
.btn-secondary:hover {
  transform: translate(1px, 1px);
  box-shadow:
    -3px -2px 0 2px #00e5ff,
    2px  3px 0 2px #ff3dc8;
}

.hero-quote {
  margin-top: 2.5rem;
  font-style: italic;
  color: var(--text-light);
  font-size: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--pink-light);
}

/* ── FRASE COMPONENTE (compartido) ── */
.frase-componente {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  margin-top: 3rem;
}

.frase-componente img {
  height: 70px;
  width: auto;
  opacity: 0.35;
  flex-shrink: 0;
}

.frase-componente p {
  font-family: 'Virtual', sans-serif;
  font-style: italic;
  font-size: 3rem;
  color: #e060a0;
}

.hero-quote-bottom {
  margin-top: auto;
  padding-top: 3rem;
  width: 100%;
  border-top: 1px solid rgba(224,96,160,0.2);
}

/* ── SECTION COMMONS ── */
section { padding: 5rem 5%; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(62,207,207,0.1);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'HK Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 580px;
}

/* ── NOSOTROS TAG ── */
.nosotros-tag-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.nosotros-tag-wrap .section-tag {
  margin-bottom: 0;
}

.servicios-header .nosotros-tag-wrap {
  justify-content: center;
}

.servicios-header .nosotros-tag-img {
  height: 70px;
}

.servicios-header .section-title {
  color: var(--teal-dark);
  margin-bottom: 0;
}

.nosotros-tag-img {
  height: 42px;
  width: auto;
  opacity: 0.5;
  flex-shrink: 0;
}

.nosotros-tag {
  font-size: 1.3rem;
  margin-bottom: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* ── NOSOTROS ── */
#nosotros {
  background: white;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.nosotros-img-wrap {
  position: relative;
}

.nosotros-img-wrap img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  height: 400px;
  display: block;
}

.nosotros-img-placeholder {
  width: 100%;
  min-height: 460px;
  border-radius: 24px;
  background: url('img/SOMOSABBA (12).png') center/cover no-repeat;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros-video {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.nosotros-text { display: flex; flex-direction: column; gap: 1rem; }

.nosotros-text p {
  color: var(--text-light);
  line-height: 1.75;
  font-size: 1rem;
}

/* ── SERVICIOS ── */
#servicios {
  background: linear-gradient(180deg, #f8fffe 0%, #fef0f8 100%);
}

.servicios-header {
  text-align: center;
  margin-bottom: 3rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.servicios-grid::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  border-top: 2px dashed rgba(62,207,207,0.5);
  z-index: 0;
}

.card-servicio-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.card-top-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.card-servicio {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.6rem;
  box-shadow: 0 4px 24px rgba(62,207,207,0.08);
  border: 1px solid rgba(62,207,207,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  width: 100%;
  flex: 1;
}

.card-servicio::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card-servicio:hover::before { transform: scaleX(1); }

.card-servicio:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(62,207,207,0.18); }

.card-servicio h3 {
  font-family: 'HK Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.card-servicio p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── POR QUÉ ELEGIR ── */
#porque {
  background: linear-gradient(180deg, #f8fffe 0%, #fef0f8 100%);
}

.porque-header {
  text-align: center;
  margin-bottom: 3rem;
}

.porque-header .nosotros-tag-wrap {
  justify-content: center;
}

.porque-header .nosotros-tag-img {
  height: 70px;
}

.porque-header .section-title {
  color: var(--teal-dark);
  margin-bottom: 0;
}

.razones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
}

.card-razon {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  transition: background 0.3s, border-color 0.3s;
}

.card-razon:hover {
  background: rgba(62,207,207,0.1);
  border-color: rgba(62,207,207,0.35);
}

.razon-num {
  font-family: 'HK Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.card-razon h3 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.6rem;
}

.card-razon p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

.porque-frase {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--teal);
  font-style: italic;
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 600px;
}

#testimonios .section-tag,
#contacto .section-tag {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 1rem;
}

/* ── TESTIMONIOS ── */
#testimonios {
  background: white;
}

.testimonios-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card-testimonio {
  background: var(--card-bg);
  border: 1px solid rgba(62,207,207,0.15);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-testimonio::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--teal);
  opacity: 0.15;
  position: absolute;
  top: 0.5rem; left: 1rem;
  line-height: 1;
}

.card-testimonio p {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  position: relative; z-index: 1;
}

.estrellas {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 5%;
  text-align: center;
}

.footer-logo {
  font-family: 'HK Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}

.footer-frase {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.45);
}

.footer-copy {
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  font-size: 1.7rem;
  z-index: 200;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PANTALLAS GRANDES ── */
@media (min-width: 1600px) {
  #inicio {
    padding-left: 15%;
    padding-right: 15%;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }

  nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    padding: 1.5rem 5%;
    gap: 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  nav.open .btn-nav {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav-logo-img { height: 55px; }

  #inicio { padding: 6rem 6% 2rem; text-align: center; }
  .hero-inner { flex-direction: column-reverse; gap: 1.5rem; }
  .hero-right { width: 100%; justify-content: center; }
  .hero-icon-img { width: 160px; }
  .hero-logo-img { height: 70px; }
  .hero-cta { justify-content: center; flex-direction: column; align-items: center; gap: 2.5rem; }
  .hero-quote { text-align: left; }

  .hero-slogan-pill { white-space: normal; text-align: center; padding: 0.6rem 1rem; }

  .frase-componente { flex-direction: column; gap: 0.5rem; }
  .frase-componente p { font-size: 1.6rem; text-align: center; }
  .frase-componente img { height: 50px; }

  .hero-quote-bottom { align-items: center; }

  .nosotros-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nosotros-img-wrap { order: -1; }
  .nosotros-img-wrap::before { display: none; }
}

@media (max-width: 480px) {
  .servicios-grid, .razones-grid, .testimonios-grid {
    grid-template-columns: 1fr;
  }
  section { padding: 3.5rem 5%; }

  #inicio { padding: 5.5rem 5% 2rem; }
  .hero-icon-img { width: 130px; }
  .hero-logo-img { height: 60px; }
  .frase-componente p { font-size: 1.3rem; }
  .hero-slogan-pill { font-size: 0.7rem; letter-spacing: 1px; }
}
