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

:root {
  --color-primario: #0066FF;
  --color-cyan: #06B6D4;
  --color-texto: #F1F5F9;
  --color-texto-secundario: rgba(241, 245, 249, 0.7);
  --color-sombra: rgba(0, 0, 0, 0.5);
  --radius: 10px;
  --gap: 10px;
  --padding-card: 20px 20px;
  --max-width: 440px;
  --font-serif: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-y: auto;
}

body {
  font-family: var(--font-body);
  background: #0A0A0B;
  color: var(--color-texto);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.tarjeta {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tarjeta--ready {
  opacity: 1;
}

.tarjeta__seccion {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--padding-card);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.tarjeta__fondo {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.tarjeta__fondo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 400%;
  height: 100%;
  background: linear-gradient(90deg, #0A0A0B, #001433, #002266, #0066FF, #002266, #0A0A0B);
  animation: fondoShift 14s ease infinite;
  will-change: transform;
}
.tarjeta__fondo--image::before {
  display: none;
}

.tarjeta__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateX(100%);
  opacity: 0;
}

.tarjeta__slide--animatable {
  transition: transform 1.2s ease, opacity 1.2s ease;
}

.tarjeta__slide--active {
  transform: translateX(0);
  opacity: 1;
}

.tarjeta__slide--exit {
  transform: translateX(-100%);
  opacity: 0;
}

.tarjeta__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,11,0.2) 0%, rgba(10,10,11,0.5) 40%, rgba(10,10,11,0.8) 100%);
  pointer-events: none;
}

.particulas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particula {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.45);
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

.tarjeta__logo {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 102, 255, 0.15);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  user-select: none;
  overflow: hidden;
  transition: border-radius 0.3s ease;
  border-radius: 50%;
}

.tarjeta__logo img {
  border-radius: 50%;
}

.tarjeta__nombre {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 12px var(--color-sombra);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tarjeta__nombre span {
  color: var(--color-cyan);
}

.tarjeta__categoria {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 3px #000, 0 0 12px rgba(0, 0, 0, 0.9);
  margin-bottom: 6px;
  text-align: center;
}

.tarjeta__linea {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-primario));
  border-radius: 2px;
  margin-bottom: 10px;
}

.tarjeta__descripcion {
  font-size: 0.75rem;
  color: var(--color-texto-secundario);
  text-align: center;
  max-width: 300px;
  line-height: 1.45;
  margin-bottom: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.tarjeta__tagline {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 280px;
  line-height: 1.3;
  margin-bottom: 10px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.tarjeta__horario {
  font-size: 0.7rem;
  color: var(--color-texto-secundario);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tarjeta__horario svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.botones {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: 100%;
  max-width: 340px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-texto);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  animation: slideUpFade 0.5s ease backwards;
  position: relative;
}

.btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (hover: hover) {
  .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }

  .btn--whatsapp:hover {
    background: rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.6);
  }

  .btn--instagram:hover {
    background: rgba(228, 64, 95, 0.3);
    border-color: rgba(228, 64, 95, 0.6);
  }

  .btn--facebook:hover {
    background: rgba(24, 119, 242, 0.3);
    border-color: rgba(24, 119, 242, 0.6);
  }

  .btn--tiktok:hover {
    background: rgba(118, 171, 224, 0.3);
    border-color: rgba(236, 72, 153, 0.5);
  }

  .btn--sitio:hover {
    background: rgba(0, 102, 255, 0.25);
    border-color: rgba(0, 102, 255, 0.5);
  }

  .btn--mapa:hover {
    background: rgba(234, 67, 53, 0.25);
    border-color: rgba(234, 67, 53, 0.5);
  }
}

.btn:active {
  transform: scale(0.98);
}

.btn--whatsapp {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.35);
  padding: 11px 16px;
  font-size: 0.9rem;
  animation: slideUpFade 0.5s ease backwards;
}
.btn--whatsapp::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius) + 2px);
  border: 2px solid rgba(37, 211, 102, 0.3);
  opacity: 0;
  animation: pulseWhatsApp 3s ease-in-out 1.5s infinite;
  pointer-events: none;
}

.btn--tiktok {
  background: rgba(118, 171, 224, 0.12);
  border-color: rgba(236, 72, 153, 0.2);
}

.btn--sitio {
  background: rgba(0, 102, 255, 0.12);
  border-color: rgba(0, 102, 255, 0.25);
}

.btn--facebook {
  background: rgba(24, 119, 242, 0.12);
  border-color: rgba(24, 119, 242, 0.25);
}

/* ===== SERVICIOS SECTION ===== */
.tarjeta__servicios {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #0C0C20, #0A1428, #0C0C20);
}

.servicios__titulo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px var(--color-sombra);
  letter-spacing: -0.01em;
}

.servicios__subtitulo {
  font-size: 0.85rem;
  color: var(--color-texto-secundario);
  text-align: center;
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.servicios__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

.servicio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  animation: slideUpFade 0.5s ease backwards;
  cursor: default;
}

@media (hover: hover) {
  .servicio-item:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.06);
  }
}

.servicio-item svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-cyan);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

.servicio-item h3 {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.servicio-item p {
  font-size: 0.7rem;
  color: var(--color-texto-secundario);
  line-height: 1.4;
}

.servicios__titulo,
.servicios__subtitulo,
.servicios__grid {
  position: relative;
  z-index: 2;
}

/* ===== BLOBS FULL (blur 3px — muy ligero) ===== */
.servicios__blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.servicios__blobs .sgblob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(3px);
  will-change: transform;
}

.sg1 {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.7), rgba(6, 182, 212, 0.25));
  top: -70px; left: -50px;
  opacity: 0.45;
  animation: sg-drift-1 14s ease-in-out infinite;
}

.sg2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle at 70% 40%, rgba(0, 102, 255, 0.6), rgba(0, 68, 204, 0.2));
  top: 6%; right: -30px;
  opacity: 0.4;
  animation: sg-drift-2 16s ease-in-out infinite;
}

.sg3 {
  width: 160px; height: 160px;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.6), rgba(6, 182, 212, 0.15));
  bottom: 8%; left: 30%;
  opacity: 0.35;
  animation: sg-drift-3 12s ease-in-out infinite;
}

.sg4 {
  width: 130px; height: 130px;
  background: radial-gradient(circle at 40% 50%, rgba(22, 119, 255, 0.55), rgba(6, 182, 212, 0.15));
  top: 20%; left: 6%;
  opacity: 0.4;
  animation: sg-drift-4 9s ease-in-out infinite;
}

.sg5 {
  width: 100px; height: 100px;
  background: radial-gradient(circle at 60% 40%, rgba(168, 85, 247, 0.5), rgba(6, 182, 212, 0.12));
  bottom: 22%; right: 22%;
  opacity: 0.35;
  animation: sg-drift-5 7s ease-in-out infinite;
}

/* ===== KEYFRAMES ===== */
@keyframes fondoShift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-37.5%); }
  100% { transform: translateX(0); }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(30px);
  }
}

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

@keyframes pulseWhatsApp {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.7; }
}

@keyframes sg-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

@keyframes sg-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-35px, 25px); }
}

@keyframes sg-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, 35px); }
}

@keyframes sg-drift-4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes sg-drift-5 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 15px); }
}




@media (min-width: 480px) {
  body {
    padding: 20px;
  }

  .tarjeta {
    min-height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }

  .tarjeta__seccion,
  .tarjeta__servicios {
    min-height: auto;
  }

  .tarjeta__servicios {
    padding: 40px 24px 48px;
  }

  .servicios__grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tarjeta__fondo::before {
    animation: none !important;
    opacity: 0.15;
  }
  .servicios__blobs .sgblob {
    animation: none !important;
    opacity: 0.1;
    filter: none !important;
  }
}
