/* ==========================================================================
   ESTUDIO CG — ESTILOS OFICIALES DE PÁGINAS DE SERVICIO (/servicios/)
   Design System Unificado: Dark Luxury, Cormorant Garamond & Manrope
   ========================================================================== */

:root {
  --bg: #0c0c0c;
  --black-base: #0c0c0c;
  --surface: #141414;
  --surface-hover: #1c1c1c;
  --surface-card: rgba(20, 20, 20, 0.85);
  
  --border: rgba(244, 239, 231, 0.12);
  --border-focus: rgba(184, 138, 82, 0.55);
  
  --cream: #F4EFE7;
  --cream-light: #FAF8F4;
  --gold: #C49A63;
  --gold-light: #DFBC8A;
  --gold-accent: #B88A52;
  --taupe: #C9B9A5;
  --muted: #BCB6AD;
  --muted-soft: #9E978E;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE & FONDOS (Strict Dark Luxury — Cero fondo blanco)
   ========================================================================== */
html {
  background-color: #0c0c0c !important;
  color-scheme: dark;
}

body,
body.service-page-wrapper {
  background-color: #0c0c0c !important;
  background-image: 
    radial-gradient(ellipse 110% 800px at 50% 0%, rgba(223, 188, 138, 0.22) 0%, rgba(196, 154, 99, 0.12) 30%, rgba(196, 154, 99, 0.04) 55%, transparent 75%),
    radial-gradient(circle at 1px 1px, rgba(223, 188, 138, 0.035) 1px, transparent 0) !important;
  background-size: 100% 800px, 28px 28px !important;
  background-repeat: no-repeat, repeat !important;
  background-attachment: scroll, fixed !important;
  color: #FAF8F4 !important;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.service-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  background: radial-gradient(ellipse 75% 380px at 50% 0%, rgba(196, 154, 99, 0.12) 0%, rgba(196, 154, 99, 0.03) 50%, rgba(0,0,0,0) 80%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   CONTENEDOR GLOBAL (Solución definitiva a márgenes y desborde)
   ========================================================================== */
.container,
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .container,
  .wrap {
    padding: 0 16px;
  }
}

/* ==========================================================================
   HEADER DE SERVICIO (Sleek, Single-Row, Branded)
   ========================================================================== */
.service-header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

.service-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.service-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.service-nav-left > a:first-child {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.service-nav-logo {
  height: 36px;
  width: auto;
  aspect-ratio: 531 / 447;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.service-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  flex-shrink: 0;
  transition: var(--transition);
}

.service-back-link:hover {
  color: var(--gold-light);
  border-color: rgba(196, 154, 99, 0.35);
  background: rgba(196, 154, 99, 0.08);
}

.service-back-link-mobile-home {
  display: none;
}

.service-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #DFBC8A, #C49A63);
  color: #0c0c0c !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.service-nav-cta:hover {
  box-shadow: 0 4px 14px rgba(196, 154, 99, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .service-nav-inner {
    gap: 8px;
  }
  .service-nav-left {
    gap: 8px;
  }
  .service-nav-logo {
    height: 32px;
  }
  .service-back-link {
    display: none;
  }
  .service-back-link-mobile-home {
    display: inline-flex;
    padding: 5px 10px;
    font-size: 0.80rem;
  }
  .service-nav-cta {
    padding: 6px 12px;
    font-size: 0.80rem;
  }
  .service-nav-cta span {
    display: none;
  }
  .service-nav-cta::after {
    content: "WhatsApp";
  }
}

/* ==========================================================================
   BREADCRUMB & HERO DE SERVICIO
   ========================================================================== */
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 14px;
  color: #DFBC8A; /* dorado del sitio */
  text-decoration: none;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #F4EFE7; /* text-primary hover */
  text-decoration: underline;
}

.service-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  color: var(--muted);
  margin: 28px 0 16px;
}

.service-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.service-breadcrumb a:hover {
  color: var(--gold-light);
}

.service-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

.service-breadcrumb-current {
  color: var(--gold-light);
  font-weight: 500;
}

.service-hero-section {
  position: relative;
  z-index: 1;
  padding: 10px 0 38px;
}

.service-hero-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  background: rgba(196, 154, 99, 0.12);
  border: 1px solid rgba(196, 154, 99, 0.3);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.service-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: #FAF8F4 !important;
  margin: 0 0 16px 0;
  letter-spacing: -0.015em;
}

.service-hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem) !important;
  color: #C9B9A5 !important;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 0 26px 0;
}

.service-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.service-hero-actions .btn-primary {
  background: linear-gradient(135deg, #DFBC8A, #C49A63);
  color: #0c0c0c !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-size: 0.92rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
  max-width: 100%;
  box-sizing: border-box;
}

.service-hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 154, 99, 0.4);
}

.service-hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FAF8F4 !important;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.service-hero-actions .btn-secondary:hover {
  border-color: rgba(196, 154, 99, 0.4);
  background: rgba(196, 154, 99, 0.1);
  color: var(--gold-light) !important;
}

/* ==========================================================================
   SECCIONES Y TARJETAS DE CASOS
   ========================================================================== */
.service-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.service-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.service-case-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px 22px;
  transition: var(--transition);
}

.service-case-card:hover {
  border-color: rgba(196, 154, 99, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.service-case-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(196, 154, 99, 0.12);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-case-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #FAF8F4;
  margin: 0 0 8px 0;
}

.service-case-desc {
  font-size: 0.90rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   PASOS / FASES DEL SERVICIO
   ========================================================================== */
.service-steps-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.service-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 20px;
}

.service-step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(196, 154, 99, 0.18);
  border: 1px solid rgba(196, 154, 99, 0.4);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.90rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.service-step-content h4 {
  font-size: 1.02rem;
  color: #FAF8F4;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.service-step-content p {
  font-size: 0.90rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   BENTO GRID: REQUISITOS & PLAZOS/HONORARIOS
   ========================================================================== */
.service-bento-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.service-bento-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 26px 24px;
}

.service-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #FAF8F4;
  line-height: 1.5;
}

.service-check-bullet {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgba(196, 154, 99, 0.18);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-meta-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-meta-entry {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
}

.service-meta-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.service-meta-val {
  font-size: 0.88rem;
  color: #C9B9A5;
  line-height: 1.5;
}

/* ==========================================================================
   FAQ DEL SERVICIO
   ========================================================================== */
.service-faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.service-faq-item {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px 22px;
}

.service-faq-q {
  font-size: 1.02rem;
  color: #FAF8F4;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-faq-a {
  font-size: 0.90rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   CTA BANNER FINAL
   ========================================================================== */
.service-cta-banner {
  background: linear-gradient(135deg, rgba(196, 154, 99, 0.12) 0%, rgba(20, 20, 20, 0.95) 100%);
  border: 1px solid rgba(196, 154, 99, 0.35);
  border-radius: 18px;
  padding: 38px 28px;
  text-align: center;
  margin: 40px 0 30px;
  position: relative;
  overflow: hidden;
}

.service-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(196, 154, 99, 0.2) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

/* ==========================================================================
   FOOTER DE SERVICIO
   ========================================================================== */
.service-footer,
footer {
  position: relative;
  z-index: 10;
  background: #090909 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 55px 0 30px;
  color: #C2B6A2;
  font-size: 0.86rem;
  line-height: 1.6;
}

.service-footer strong {
  color: #FAF8F4;
}

.service-footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.service-footer-links a {
  color: var(--gold-light);
  text-decoration: none;
}

.service-footer-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 900px) {
  .service-bento-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .service-hero-section {
    padding: 10px 0 24px;
  }
  .service-hero-title {
    font-size: clamp(1.55rem, 6vw, 1.9rem);
  }
  .service-bento-card {
    padding: 20px 18px;
  }
  .service-cta-banner {
    padding: 28px 18px;
  }
}
