/* GRUPO CORPORATIVO TRIUN - SISTEMA DE DISEÑO OFICIAL CON INTERACTIVIDAD */
:root {
  --bg-dark: #05070A;
  --bg-surface-1: #080B10;
  --bg-surface-2: #0C1016;
  --bg-surface-3: #11161D;
  --border-color: rgba(232, 199, 106, 0.15);
  --border-subtle: #171D25;
  
  --gold-main: #C99A3D;
  --gold-light: #E8C76A;
  --gold-gradient: linear-gradient(135deg, #C99A3D 0%, #E8C76A 100%);
  
  --text-white: #FFFFFF;
  --text-body: #E6E8EB;
  --text-muted: #7C8490;

  --font-title: 'Playfair Display', serif;
  --font-main: 'Manrope', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;

  --transition: all 0.3s ease;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--bg-dark); color: var(--text-body); font-family: var(--font-main); line-height: 1.6; overflow-x: hidden; }

h1, h2, h3, h4 { color: var(--text-white); font-weight: 700; }
.title-serif { font-family: var(--font-title); font-style: italic; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.gold-text { color: var(--gold-main); }

.diamond-divider { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 25px 0; }
.diamond-divider::before, .diamond-divider::after { content: ''; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold-main), transparent); }
.diamond-divider span { color: var(--gold-main); font-size: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 8px; font-family: var(--font-main); font-weight: 600; font-size: 15px; text-decoration: none; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--gold-main); color: #05070A; }
.btn-primary:hover { background: var(--gold-gradient); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(201, 154, 61, 0.25); }
.btn-secondary { background: transparent; border: 1px solid var(--gold-main); color: var(--gold-light); }
.btn-secondary:hover { background: var(--gold-main); color: #05070A; transform: translateY(-2px); }
.btn-premium { background: var(--gold-gradient); color: #05070A; box-shadow: 0 4px 15px rgba(201, 154, 61, 0.2); }
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201, 154, 61, 0.4); }

.header { position: fixed; top: 0; left: 0; width: 100%; height: 85px; z-index: 1000; background: rgba(5, 7, 10, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(232, 199, 106, 0.08); transition: var(--transition); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo-img { height: 55px; width: auto; object-fit: contain; }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-body); text-decoration: none; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: var(--gold-main); }

.hamburger { display: none; background: none; border: none; color: var(--text-white); font-size: 24px; cursor: pointer; }

.mobile-nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-dark); border-left: 1px solid var(--border-color); padding: 80px 30px 30px; display: flex; flex-direction: column; gap: 20px; z-index: 999; transition: right 0.4s ease; }
.mobile-nav.open { right: 0; }
.mobile-nav a { color: var(--text-white); text-decoration: none; font-size: 16px; font-weight: 600; }
.close-nav { position: absolute; top: 25px; right: 25px; background: none; border: none; color: var(--gold-light); font-size: 28px; cursor: pointer; }

.hero { position: relative; min-height: 85vh; display: flex; align-items: center; padding-top: 100px; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #05070A 0%, rgba(5, 7, 10, 0.85) 50%, rgba(5, 7, 10, 0.6) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.tagline-badge { display: inline-block; padding: 6px 16px; background: rgba(201, 154, 61, 0.1); border: 1px solid var(--gold-main); border-radius: 999px; color: var(--gold-light); font-family: var(--font-tech); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.1; margin-bottom: 24px; }
.hero p { font-size: 18px; color: var(--text-body); margin-bottom: 35px; max-width: 650px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }

/* TARJETAS ESTÁNDAR */
.card { background: var(--bg-surface-2); border: 1px solid var(--border-color); border-radius: 16px; padding: 35px; transition: var(--transition); }
.card:hover { transform: translateY(-5px); border-color: var(--gold-main); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(201,154,61,0.1); }
.card-icon { font-size: 32px; color: var(--gold-main); margin-bottom: 20px; }
.card h3 { font-size: 22px; margin-bottom: 15px; color: var(--text-white); }
.card p { color: var(--text-body); font-size: 15px; }

/* TARJETAS INTERACTIVAS CON EFECTO DINÁMICO AL ACERCAR EL CURSOR */
.org-card {
  text-decoration: none;
  display: block;
  perspective: 1000px;
}

.org-card-inner {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Brillo flotante de fondo al pasar el cursor */
.org-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 199, 106, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  transform: scale(0.8);
}

/* Efecto de elevación, inclinado 3D y resplandor al acercar el cursor */
.org-card:hover .org-card-inner {
  transform: translateY(-12px) scale(1.02) rotateX(4deg);
  border-color: var(--gold-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 154, 61, 0.25);
}

.org-card:hover .org-card-inner::before {
  opacity: 1;
  transform: scale(1);
}

/* Animación del Logo al hacer hover */
.org-logo-wrapper {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.org-logo {
  max-height: 90px;
  max-width: 80%;
  object-fit: contain;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.org-card:hover .org-logo {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 8px 18px rgba(201, 154, 61, 0.4));
}

/* Textos e indicadores */
.org-card-info h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-white);
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.org-card:hover .org-card-info h3 {
  color: var(--gold-light);
}

.org-card-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  transition: var(--transition);
}

.org-card:hover .org-card-info p {
  color: var(--text-body);
}

.org-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.org-card:hover .org-link-btn {
  color: var(--gold-light);
  transform: translateX(5px);
}

.section-header { margin-bottom: 60px; }
.section-header .sub-badge { color: var(--gold-light); font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin-bottom: 10px; display: block; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 42px); }

.stats-section { background: var(--bg-surface-1); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.stat-box { text-align: center; }
.stat-number { font-family: var(--font-tech); font-size: 52px; font-weight: 700; color: var(--gold-light); line-height: 1; margin-bottom: 10px; }
.stat-label { color: var(--text-muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

.quote-card { background: var(--bg-surface-3); border-left: 4px solid var(--gold-main); padding: 30px; border-radius: 0 12px 12px 0; position: relative; }
.quote-card i.quote-icon { font-size: 40px; color: rgba(201, 154, 61, 0.2); position: absolute; top: 15px; right: 20px; }

.footer { background: #030507; border-top: 1px solid var(--border-subtle); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 15px; }
.footer-col h4 { color: var(--gold-light); font-size: 16px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: var(--transition); font-size: 14px; }
.footer-col ul li a:hover { color: var(--gold-main); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 13px; color: var(--text-muted); }

@media (max-width: 1024px) { .nav-links { display: none; } .hamburger { display: block; } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .hero-buttons { flex-direction: column; width: 100%; } .btn { width: 100%; } }