/* =================================================================
 * Vanguardia Consultores en Movilidad Internacional - Site Stylesheet
 * Archivo: /css/site.css
 * Paleta exclusiva: #940533, #c0012a, #f5061d, #ff8800, #ffb300
 * ================================================================= */

:root {
  --color-1: #940533;
  --color-2: #c0012a;
  --color-3: #f5061d;
  --color-4: #ff8800;
  --color-5: #ffb300;
  --bg-dark: #07070a;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Loader Inicial (.5 segundos para index.html) */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.circle-loader {
  width: 60px;
  height: 60px;
  border: 6px solid var(--color-5);
  border-top: 6px solid var(--color-3);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Aviso Legal Superior Google Ads */
.top-disclaimer {
  background: linear-gradient(90deg, var(--color-1), var(--color-2));
  color: var(--white);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid var(--color-4);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Navegación y Header con animación escalonada */
header {
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-logo span {
  font-size: 0.7rem;
  color: var(--color-5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-item {
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: #d1d5db;
  text-decoration: none;
}

.nav-item:hover {
  transform: translateY(-4px) scale(1.08);
  color: var(--color-5);
}

/* Botones con Retroalimentación Alternada */
.btn-modern {
  background: linear-gradient(135deg, var(--color-2), var(--color-3));
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(192, 1, 42, 0.4);
}

.btn-modern:active {
  transform: scale(0.94);
  background: linear-gradient(135deg, var(--color-4), var(--color-5));
  box-shadow: 0 2px 8px rgba(255, 136, 0, 0.6);
}

/* Hero Section con Fondo Abstracto Dinámico */
.hero-section {
  position: relative;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(148, 5, 51, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(255, 136, 0, 0.15) 0%, transparent 50%);
}

.hero-abstract-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(120deg, rgba(7,7,10,0.9), rgba(148,5,51,0.15));
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--white), var(--color-5), var(--color-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShift 6s ease-in-out infinite alternate;
}

@keyframes textShift {
  0% { filter: hue-rotate(0deg); transform: scale(1); }
  100% { filter: hue-rotate(25deg); transform: scale(1.01); }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #9ca3af;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

/* Estilos para las 8 secciones únicas y arquitectónicamente variadas */
.unique-section {
  max-width: 1300px;
  margin: 5rem auto;
  padding: 0 2rem;
}

/* Glassmorphism Tiles con Brillo Dinámico */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,179,0,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 136, 0, 0.2);
}

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

/* Arquitecturas de Secciones Diferenciadas */
.sec-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sec-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.sec-asym {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 3rem;
  align-items: center;
}

.section-tag {
  color: var(--color-5);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-heading {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.section-text {
  color: #9ca3af;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.section-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

/* Footer Corporativo */
footer {
  background-color: #040406;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col h4 {
  color: var(--color-5);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: #9ca3af; text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-left: 5px; }

.footer-bottom {
  max-width: 1300px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}