/* ============================================================
   ESTILOS GLOBALES — J. FERNÁNDEZ ABOGADO
   Edita las variables de :root para cambiar colores y tipografía
   ============================================================ */

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

/* --- VARIABLES --- */
:root {
  --rojo:       #8B1A1A;
  --rojo-hover: #6e1414;
  --negro:      #1a1a1a;
  --gris-oscuro:#2e2e2e;
  --gris-medio: #5a5a5a;
  --gris-claro: #f5f3f0;
  --beige:      #ede9e3;
  --blanco:     #ffffff;
  --borde:      #ddd8d0;

  --fuente-titulo: 'Playfair Display', Georgia, serif;
  --fuente-cuerpo: 'Lato', sans-serif;

  --sombra-suave: 0 4px 24px rgba(0,0,0,0.07);
  --sombra-media: 0 8px 40px rgba(0,0,0,0.12);
  --radio:        4px;

  --transicion: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* --- UTILIDADES --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--negro);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gris-medio);
  max-width: 540px;
  line-height: 1.7;
}

/* Línea decorativa roja bajo títulos */
.titulo-con-linea::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--rojo);
  margin-top: 1rem;
}

/* --- ANIMACIONES DE ENTRADA (JS las activa) --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transicion), transform 0.7s var(--transicion);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s var(--transicion);
}
.fade-in.visible {
  opacity: 1;
}

/* Retrasos escalonados */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- BOTONES --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--fuente-cuerpo);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radio);
  cursor: pointer;
  transition: background var(--transicion), color var(--transicion), border-color var(--transicion), transform 0.2s ease, box-shadow var(--transicion);
  border: 2px solid transparent;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primario {
  background: var(--rojo);
  color: var(--blanco);
  border-color: var(--rojo);
}
.btn-primario:hover {
  background: var(--rojo-hover);
  border-color: var(--rojo-hover);
  box-shadow: 0 6px 20px rgba(139,26,26,0.28);
}

.btn-secundario {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.6);
}
.btn-secundario:hover {
  border-color: var(--blanco);
  background: rgba(255,255,255,0.08);
}

.btn-outline {
  background: transparent;
  color: var(--rojo);
  border-color: var(--rojo);
}
.btn-outline:hover {
  background: var(--rojo);
  color: var(--blanco);
}

/* --- SEPARADOR --- */
.separador {
  width: 100%;
  height: 1px;
  background: var(--borde);
  margin: 0;
}

/* --- RESPONSIVE base --- */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}
