/**
 * DecorUpBGA - Estilos de la página principal
 * Tema: primary #ee2b8c, gold #D4AF37
 */

/* ========== Variables de tema (referencia para Tailwind) ========== */
:root {
  --color-primary: #ee2b8c;
  --color-primary-dark: #c41e6e;
  --color-gold: #D4AF37;
  --color-background-light: #f8f6f7;
  --color-background-dark: #221019;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 1rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
}

/* ========== Base ========== */
body {
  font-family: var(--font-display);
}

/* ========== Hero / Sección principal ========== */
.hero-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 16, 25, 0.75) 10%,
    rgba(34, 16, 25, 0.5) 75%,
    rgba(238, 43, 140, 0.15) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}
.hero-badge {
  animation: fadeInUp 0.8s ease-out;
}
.hero-title {
  animation: fadeInUp 0.8s ease-out 0.15s both;
}
.hero-desc {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero-cta {
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

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

/* ========== Títulos de sección ========== */
.section-label {
  letter-spacing: 0.2em;
  font-weight: 700;
}
.section-line {
  width: 5rem;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
}

/* ========== Cards de servicios ========== */
.service-card {
  perspective: 1000px;
  cursor: pointer;
}
.service-card-inner {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
}
.service-card:hover .service-card-inner {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(238, 43, 140, 0.2);
}
.service-card-image {
  aspect-ratio: 4/3;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-card-image {
  transform: scale(1.1);
}
.service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(17, 6, 11, 0.95) 0%,
    rgba(17, 6, 11, 0.4) 40%,
    transparent 70%
  );
}
.service-card .ver-mas {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s ease;
}
.service-card:hover .ver-mas {
  opacity: 1;
  transform: translateX(4px);
}
.service-card-icon {
  transition: transform 0.3s ease;
}
.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ========== Galería ========== */
.gallery-item {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
}
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ========== Testimonios ========== */
.testimonial-quote {
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(238, 43, 140, 0.12);
}
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(238, 43, 140, 0.15);
}

/* ========== CTA final ========== */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 120%,
    rgba(212, 175, 55, 0.2) 0%,
    transparent 50%
  );
  pointer-events: none;
}
.cta-title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.btn-cta-primary {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(255, 255, 255, 0.3);
}

/* ========== Nosotros - estadísticas ========== */
.stat-number {
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Utilidades ========== */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 10px;
}
.masonry-item {
  margin-bottom: 10px;
}

/* ========== Barra countdown 24h (oferta transporte gratis) ========== */
#countdown-24h-bar {
  background: linear-gradient(90deg, var(--color-primary) 0%, #c41e6e 100%);
  color: white;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 10px rgba(238, 43, 140, 0.3);
  min-height: 3rem;
}
@media (max-width: 768px) {
  #countdown-24h-bar {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  #countdown-24h-bar .countdown-digits {
    font-size: 1rem;
  }
}
#countdown-24h-bar a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#countdown-24h-bar a:hover {
  text-decoration: none;
}
.countdown-digits {
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  min-width: 5.5rem;
  display: inline-block;
}
.countdown-expired {
  opacity: 0.9;
}

/* Scroll suave para anclas */
html {
  scroll-behavior: smooth;
}

/* Mejora de enfoque para accesibilidad */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
