/* Ajustes locales del espejo. Este archivo se carga despues del CSS original. */
/* Fondo hero: usa la imagen local para que funcione sin conexion.
   La ruta es relativa a este archivo, asi funciona tanto con el servidor
   como al abrir index.html directamente (file://). */
[style*="images.unsplash.com"] {
  background-image: url("images/hero-unsplash.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* ============================================================
   TARJETAS DE SERVICIOS PREMIUM (Unique Studio)
   Este bloque se carga despues del CSS original, por eso manda.
   ============================================================ */
#services {
  position: relative;
  background:
    radial-gradient(900px 380px at 50% -8%, rgba(212, 175, 106, 0.10), transparent 62%),
    #141418;
  overflow: hidden;
}

.svc-grid { gap: 1.75rem; }

.svc-item { height: 100%; }

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 384px;
  padding: 2.25rem 2rem;
  border-radius: 20px;
  background:
    radial-gradient(120% 85% at 100% 0%, rgba(212, 175, 106, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 58%, rgba(212, 175, 106, 0.05));
  border: 1px solid rgba(212, 175, 106, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px -26px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.svc-card::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -30%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.18), transparent 65%);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.svc-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.55), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.svc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 106, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 30px 60px -24px rgba(0, 0, 0, 0.95),
    0 18px 60px -24px rgba(212, 175, 106, 0.35);
}

.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after { opacity: 1; }

.svc-line {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.75), transparent);
}

.svc-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  color: #d4af6a;
  background: linear-gradient(145deg, rgba(212, 175, 106, 0.18), rgba(212, 175, 106, 0.04));
  border: 1px solid rgba(212, 175, 106, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px -12px rgba(212, 175, 106, 0.35);
  transition: all 0.35s ease;
}

.svc-card:hover .svc-icon {
  background: linear-gradient(145deg, #e6c886, #c9a25a);
  color: #141418;
  border-color: rgba(230, 200, 134, 0.9);
  box-shadow: 0 14px 30px -10px rgba(212, 175, 106, 0.55);
  transform: translateY(-2px);
}

.svc-icon--featured {
  background: linear-gradient(145deg, #e6c886, #c9a25a);
  color: #141418;
  border-color: rgba(230, 200, 134, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 30px -10px rgba(212, 175, 106, 0.55);
}

.svc-title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  font-family: var(--font-playfair-display), Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.svc-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 0.7rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #d4af6a, transparent);
}

.svc-text {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  color: #a9a9b2;
  font-size: 0.975rem;
  line-height: 1.7;
}

.svc-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #141418;
  background: linear-gradient(145deg, #e6c886, #c9a25a);
  box-shadow: 0 8px 20px -8px rgba(212, 175, 106, 0.7);
}

.svc-card--featured {
  background:
    radial-gradient(120% 85% at 100% 0%, rgba(212, 175, 106, 0.22), transparent 58%),
    linear-gradient(160deg, rgba(212, 175, 106, 0.20), rgba(212, 175, 106, 0.05) 48%, rgba(255, 255, 255, 0.02));
  border-color: rgba(212, 175, 106, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 26px 60px -28px rgba(212, 175, 106, 0.50);
}

.svc-card--featured .svc-title { color: #f4e6c6; }
.svc-card--featured::after { opacity: 0.55; }

@media (max-width: 640px) {
  .svc-card { padding: 1.75rem 1.5rem; min-height: 0; }
  .svc-title { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .svc-card::before,
  .svc-card::after,
  .svc-icon {
    transition: none;
  }
  .svc-card:hover { transform: none; }
  .svc-card:hover .svc-icon { transform: none; }
}
