@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12151c;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-cyan: #00d4ff;
  --accent-cyan-glow: rgba(0, 212, 255, 0.2);
  --accent-gold: #b5c840;
  --accent-gold-glow: rgba(181, 200, 64, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
  color: #000;
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-cyan-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: var(--accent-cyan-glow);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  background: var(--glass-bg);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
}

.lang-switch button.active, .lang-switch button:hover {
  color: var(--accent-cyan);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(60px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(60px);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.section-title span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

/* Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.glass-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  color: var(--text-secondary);
}

.footer-col ul a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; /* In a real app, implement hamburger menu */ }
}

/* Utilitarios Adicionales */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }

/* Spacing utilities */
.mb-0 { margin-bottom: 0; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-05 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.my-05 { margin: 0.5rem 0; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.pt-0 { padding-top: 0; }

/* Typography utilities */
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.8rem; }
.text-accent { color: var(--accent-cyan); }
.text-accent-gold { color: var(--accent-gold); }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.max-w-800 { max-width: 800px; }

/* Layout utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-04 { gap: 0.4rem; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
.inline-block { display: inline-block; }

/* Blog article components */
.blog-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
}
.blog-tag--category {
  color: var(--accent-gold);
}
.blog-tag--type {
  color: var(--text-secondary);
}
.blog-read-more {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

/* Article content headings (h2 in articles) */
.article-heading {
  margin: 3rem 0 1.5rem;
  color: var(--accent-cyan);
}
.article-subheading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}
.article-subheading-gold {
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

/* Callout / blockquote cards in articles */
.callout-gold {
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--accent-gold);
}
.callout-cyan {
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--accent-cyan);
}

/* Article list (ol/ul inside articles) */
.article-list {
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Section backgrounds */
.bg-secondary {
  background: var(--bg-secondary);
}
.section-padded {
  padding: 4rem 0;
}
.section-hero-padded {
  background: var(--bg-secondary);
  padding: 8rem 0 4rem 0;
}

/* Social icon in article headers */
.social-icon {
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Author bio card */
.author-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.author-bio-card {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Footer logo */
.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}
.footer-contact {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-slogan {
  margin-top: 1rem;
  color: var(--accent-cyan);
}
.nav-logo {
  height: 50px;
}

/* Article title large */
.article-title-lg {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.article-academic-title {
  font-size: 3.5rem;
  margin: 0;
}

/* Border utilities */
.border-bottom { border-bottom: 1px solid var(--glass-border); }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  color: white;
}

/* Menu Movil */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* Accesibilidad */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-cyan);
  color: #000;
  padding: 8px;
  z-index: 1002;
  transition: top 0.3s;
}
.skip-to-content:focus {
  top: 0;
}

/* Animaciones */
.typing-effect {
  display: inline-block;
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-cyan); }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    transition: 0.3s;
    padding: 2rem;
  }
  .nav-links.active {
    left: 0;
  }
  .lang-switch {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
  }
  .nav-links.active ~ .lang-switch {
    opacity: 1;
    pointer-events: auto;
  }
  .typing-effect {
    white-space: normal;
    border-right: none;
    animation: none;
  }
}

/* Service Hero (para paginas interiores) */
.service-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: var(--nav-height);
}
.service-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.service-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 1rem auto 0;
}
@media (max-width: 768px) {
  .service-hero h1 {
    font-size: 2.5rem;
  }
}
