/* =======================================================
   PREMIUM DESIGN · Pablo Landskron SEO Alcalá de Henares
   Editorial luxury style · Blue brand palette
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ── GLOBAL ─────────────────────────────────────────── */

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

/* ── TYPOGRAPHY ─────────────────────────────────────── */

/* H1 elegante con Playfair Display */
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* H2 en secciones principales en serif */
section h2,
main h2,
article h2 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.018em;
  line-height: 1.15;
}

/* Gradient text en hero: serif cursiva premium */
.gradient-text {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-style: italic;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

/* Labels de sección: espaciado refinado */
p[class*="tracking-widest"],
span[class*="tracking-widest"] {
  letter-spacing: 0.2em;
}

/* ── NAVIGATION: Glassmorphism ───────────────────────── */

nav.sticky,
nav[class*="sticky"] {
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background-color: rgba(255, 255, 255, 0.93) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.05) !important;
}

/* ── HERO SECTION ───────────────────────────────────── */

.hero-gradient {
  background: linear-gradient(145deg, #EEF5FF 0%, #FFFFFF 52%, #F5F8FF 100%) !important;
  position: relative;
  overflow: hidden;
}

/* Ambient glow blob decorativo */
.hero-gradient::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -120px;
  width: 750px;
  height: 750px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.07) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-gradient > div {
  position: relative;
  z-index: 1;
}

/* ── BUTTONS: Píldora elegante ───────────────────────── */

/* Todos los botones rounded-xl pasan a píldora */
a[class*="rounded-xl"],
button[class*="rounded-xl"] {
  border-radius: 50px !important;
}

/* CTA primario: sombra y micro-interacción */
a[class*="bg-brand-8"],
button[class*="bg-brand-8"] {
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.28);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

a[class*="bg-brand-8"]:hover,
button[class*="bg-brand-8"]:hover {
  box-shadow: 0 10px 36px rgba(30, 64, 175, 0.42);
  transform: translateY(-2px);
}

/* Botón WhatsApp: sombra verde */
a[class*="bg-green-5"],
button[class*="bg-green-5"] {
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.26);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

a[class*="bg-green-5"]:hover,
button[class*="bg-green-5"]:hover {
  box-shadow: 0 10px 34px rgba(34, 197, 94, 0.38);
  transform: translateY(-2px);
}

/* ── CARDS: Hover suave y profundo ──────────────────── */

.card-hover {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s ease !important;
}

.card-hover:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 28px 64px rgba(30, 64, 175, 0.12), 0 8px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Card zona activa (fondo brand-800) */
a.card-hover[class*="bg-brand-8"]:hover,
div.card-hover[class*="bg-brand-8"]:hover {
  box-shadow: 0 24px 56px rgba(30, 64, 175, 0.4) !important;
  transform: translateY(-8px) !important;
}

/* ── SECTION LABELS: Líneas decorativas ─────────────── */

p.text-brand-600.font-bold[class*="uppercase"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

p.text-brand-600.font-bold[class*="uppercase"]::before,
p.text-brand-600.font-bold[class*="uppercase"]::after {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background: #2563EB;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ── STATS BAR: Números en serif ────────────────────── */

.bg-brand-800 p.text-4xl,
.bg-brand-800 p[class*="text-4xl"] {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

/* ── FAQ: Acordeón refinado ─────────────────────────── */

details {
  transition: background 0.25s ease;
}

details[open] {
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
}

details summary {
  transition: background 0.2s ease;
}

details summary:hover {
  background: rgba(59, 130, 246, 0.04);
}

/* ── PROCESS STEPS: Círculos con sombra ─────────────── */

.w-12.h-12.bg-brand-800.text-white.rounded-full,
div[class*="bg-brand-800"][class*="rounded-full"] {
  box-shadow: 0 4px 18px rgba(30, 64, 175, 0.38);
}

/* ── BLOG CARDS: Iconos con brillo en hover ─────────── */

.card-hover .h-40[class*="bg-gradient-to-br"] {
  transition: filter 0.4s ease;
}

.card-hover:hover .h-40[class*="bg-gradient-to-br"] {
  filter: brightness(1.08);
}

/* ── BACKGROUNDS: Tono azulado sutil ────────────────── */

.bg-slate-50 {
  background-color: #F7FAFD !important;
}

/* ── FOOTER: Gradiente más profundo ─────────────────── */

footer.bg-slate-900,
footer[class*="bg-slate-9"] {
  background: linear-gradient(180deg, #0F172A 0%, #0B1120 100%) !important;
}

/* Hover links en footer */
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ── TOP BAR: Gradiente premium ─────────────────────── */

.bg-brand-900.text-white.py-2\.5 {
  background: linear-gradient(90deg, #172554 0%, #1E3A8A 60%, #1E40AF 100%) !important;
}

/* ── DROPDOWN MENUS: Sombra más profunda ────────────── */

.shadow-xl {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

/* ── INPUTS Y FORMULARIOS CONTACT ───────────────────── */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border-radius: 16px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
}

/* ── BREADCRUMBS: Refinado ───────────────────────────── */

nav[aria-label="breadcrumb"] a,
.breadcrumb a {
  text-underline-offset: 3px;
}

/* ── MOBILE MENU ─────────────────────────────────────── */

#mobile-menu.open {
  animation: slideDown 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
