/* ============================================================
   Custom CSS — Corporativo Monroy y Monroy
   Tema claro | v5.0
   ============================================================ */

/* ------------------------------------------------------------
   FUENTES
   Bebas Neue  → títulos H1 / H2
   BankGothic  → texto normal, H3+
   ------------------------------------------------------------ */
/* Las fuentes se cargan desde el <head> del HTML — no duplicar aquí */

/* ------------------------------------------------------------
   VARIABLES
   ------------------------------------------------------------ */
:root {
  --primary:       #ffffff;
  --primary-light: #f8fafc;
  --accent:        #FF6B00;
  --accent-hover:  #E05D00;
  --text-dark:     #0f172a;
  --text-muted:    #64748b;

  --glass-bg:     rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.05);

  /* Tipografías */
  --font-title: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body:  'BankGothic Md BT', 'Rajdhani', sans-serif;
}

/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
  color: var(--text-dark);
  overflow-x: hidden;
  font-family: var(--font-body);
}

/* Selección de texto */
::selection {
  background-color: var(--accent);
  color: #fff;
}

/* Aplicar tipografía a encabezados globalmente */
h1, h2 {
  font-family: var(--font-title);
  letter-spacing: 0.04em;
}

h3, h4, h5, h6 {
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

p, span, a, li, label, input, textarea, select, button {
  font-family: var(--font-body);
}

/* ------------------------------------------------------------
   HERO — Imagen de fondo con overlay
   ------------------------------------------------------------ */
.hero-section {
  position: relative;
  background-image: url('../img/IMAGEN_TITULO.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Overlay semi-transparente para legibilidad del texto */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  z-index: 0;
}

/* Todo el contenido del hero por encima del overlay */
.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Título principal del Hero */
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  text-align: center;
}

.hero-title .accent-line {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(135deg, var(--accent), #FF9E5E);
  display: block;
}

/* Intro del hero */
.hero-intro {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------ */
.btn-primary {
  background-color: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline:hover {
  background-color: rgba(0,0,0,0.03);
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------------------
   NAVEGACIÓN
   ------------------------------------------------------------ */
.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

/* ------------------------------------------------------------
   EFECTOS VISUALES
   ------------------------------------------------------------ */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.shadow-glow { box-shadow: 0 0 20px -5px var(--accent); }

.bg-hero-pattern {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ------------------------------------------------------------
   TARJETAS DE SERVICIOS
   ------------------------------------------------------------ */
.service-card {
  background: var(--primary-light);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,107,0,0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255,107,0,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h4 {
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.icon-wrapper {
  width: 50px; height: 50px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
  background: var(--accent);
  color: white;
}

/* ------------------------------------------------------------
   SECCIÓN NOSOTROS — imagen de fondo en valores
   ------------------------------------------------------------ */
.valores-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url('../img/avaluos.png');
  background-size: cover;
  background-position: center;
}

/* ------------------------------------------------------------
   ANIMACIONES
   ------------------------------------------------------------ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-up  { animation: fadeInUp 1s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 1s ease forwards; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   HEADER — estado al hacer scroll
   ------------------------------------------------------------ */
.scrolled-header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* ------------------------------------------------------------
   MODAL — Saludo personalizado
   ------------------------------------------------------------ */
@keyframes greetingReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#expediente-greeting {
  animation: greetingReveal 0.5s ease 0.15s both;
}

/* Encabezados de modal con tipografía de título */
.modal-title {
  font-family: var(--font-title);
  letter-spacing: 0.04em;
}
