/* ==========================================================================
   Dinka Gold — Modern Gold & Dark Modern Theme
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #0a0e17;
  --bg-card: rgba(18, 26, 43, 0.7);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  
  --gold-primary: #dfa835;
  --gold-light: #fbe392;
  --gold-dark: #a8761a;
  --gold-gradient: linear-gradient(135deg, #fbe392 0%, #dfa835 50%, #996515 100%);
  --gold-glow: rgba(223, 168, 53, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(223, 168, 53, 0.18);
  --border-glow: rgba(223, 168, 53, 0.45);
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(223, 168, 53, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(223, 168, 53, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography & General */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition);
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
  padding: 0.75rem 2rem;
  background: rgba(10, 14, 23, 0.92);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo 002.png Styling */
.brand-logo-container {
  display: flex;
  align-items: center;
}

.brand-logo-horizontal {
  height: 44px;
  width: auto;
  object-fit: contain;
  /* Convierte partes blancas/claras del PNG en transparente dorada sobre el fondo oscuro */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px var(--gold-glow)) brightness(1.25);
  transition: var(--transition);
}

.brand:hover .brand-logo-horizontal {
  filter: drop-shadow(0 0 14px rgba(251, 227, 146, 0.6)) brightness(1.4);
}

.brand-text-fallback {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  color: var(--gold-primary);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0d0f12;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(223, 168, 53, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(223, 168, 53, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: var(--gold-gradient);
  color: #0d0f12;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
}

.btn-icon:hover {
  background: var(--gold-primary);
  color: #000;
}

/* Layout & Sections */
.section {
  padding: 6rem 1.5rem 4rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-primary);
}

.title-underline {
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding-top: 9rem;
  padding-bottom: 5rem;
  text-align: center;
  justify-content: center;
}

.hero-content {
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(223, 168, 53, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

/* Logo Circular 001.png en Hero */
.hero-seal-wrapper {
  position: relative;
  margin: 0.5rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(223, 168, 53, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-seal-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px var(--gold-glow)) brightness(1.2);
  transition: var(--transition);
}

.hero-seal-img:hover {
  transform: scale(1.03) rotate(2deg);
  filter: drop-shadow(0 0 22px rgba(251, 227, 146, 0.5)) brightness(1.35);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Video Section Wrapper */
.video-section-container {
  width: 100%;
  max-width: 780px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.video-header {
  background: rgba(10, 14, 23, 0.8);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.video-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.video-title-bar {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Cards & Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-featured {
  padding: 2.5rem;
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.9) 0%, rgba(10, 14, 23, 0.95) 100%);
}

.mision-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  text-align: center;
  font-weight: 300;
}

.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(223, 168, 53, 0.1);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 1rem;
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gold-light);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-footer-text {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
}

.card-icon-header {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--gold-light);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact Cards */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.contact-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(223, 168, 53, 0.1);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.contact-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-name {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-email {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  word-break: break-all;
}

.contact-email:hover {
  color: var(--gold-light);
}

.contact-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* Footer */
.footer {
  background: #06090e;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-seal-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px var(--gold-glow)) brightness(1.2);
  margin-bottom: 0.75rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  padding-top: 1.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gold-gradient);
  color: #000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.4rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: var(--transition);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    justify-content: center;
    width: 100%;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
}