:root{
  --bg:#0b1220;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.10);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.75);
  --brand:#59b7ff;
  --brand2:#7c5cff;
  --border:rgba(255,255,255,.14);
  --shadow:0 16px 40px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:14px;
  --max:1100px;
  --font:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1100px 600px at 15% 0%, rgba(89,183,255,.26), transparent 55%),
    radial-gradient(900px 600px at 85% 10%, rgba(124,92,255,.22), transparent 55%),
    var(--bg);
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(1.2) blur(10px);
  background:rgba(9,13,24,.65);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px}
.logo{
  width:34px; height:34px; border-radius:12px;
  background:conic-gradient(from 180deg, var(--brand), var(--brand2), var(--brand));
  box-shadow:0 10px 26px rgba(0,0,0,.35);
}
nav{display:flex; gap:14px; flex-wrap:wrap}
nav a{font-weight:650; opacity:.9}
nav a:hover{opacity:1}

.cta{display:flex; gap:10px; flex-wrap:wrap}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  font-weight:750;
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn.primary{
  border-color:rgba(89,183,255,.35);
  background:linear-gradient(135deg, rgba(89,183,255,.85), rgba(124,92,255,.85));
}

.hero{padding:34px 0 10px}
.hero-card{
  border-radius:28px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)),
    url("https://images.pexels.com/photos/24739980/pexels-photo-24739980.jpeg?auto=compress&cs=tinysrgb&w=1400") center/cover no-repeat;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-inner{
  padding:32px 22px;
  background:linear-gradient(90deg, rgba(7,11,20,.92) 0%, rgba(7,11,20,.62) 60%, rgba(7,11,20,.40) 100%);
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  color:rgba(234,240,255,.88);
  font-weight:750;
  font-size:.95rem;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
}
.dot{width:10px; height:10px; border-radius:999px; background:var(--brand); box-shadow:0 0 0 6px rgba(89,183,255,.18)}
h1{margin:14px 0 8px; font-size:clamp(1.8rem, 3.8vw, 3rem); letter-spacing:-.5px}
.lead{margin:0; color:var(--muted); font-size:1.05rem; line-height:1.55}
.small{color:rgba(234,240,255,.72); font-size:.92rem; line-height:1.55}

.section{padding:26px 0}
.section-title{margin-bottom:14px}
.section-title h2{margin:0 0 6px; font-size:1.45rem}
.section-title p{margin:0; color:var(--muted)}

a.btn, a.tag{cursor:pointer}

.grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}
.col-4{grid-column:span 4}
.col-6{grid-column:span 6}
@media (max-width: 900px){
  nav{display:none}
  .col-4,.col-6{grid-column:span 12}
  .hero-inner{background:linear-gradient(180deg, rgba(7,11,20,.92) 0%, rgba(7,11,20,.72) 100%)}
}

.card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  overflow:hidden;
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}
.card-body{padding:16px 16px 18px}
.card h3{margin:10px 0 8px; font-size:1.1rem}
.card p{margin:0; color:var(--muted); line-height:1.55}
.linkrow{display:flex; gap:10px; flex-wrap:wrap}
.meta{display:flex; gap:8px; flex-wrap:wrap}
.tag{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-weight:750;
  font-size:.84rem;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.14);
}
.tag.brand{border-color:rgba(89,183,255,.35); background:rgba(89,183,255,.14)}

.img{height:180px; overflow:hidden}
.img img{width:100%; height:100%; object-fit:cover; display:block; filter:saturate(1.05) contrast(1.02)}

/* ===== MEJORAS RESPONSIVE Y ANIMACIONES ===== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Aplicar animaciones a elementos clave */
.hero-card {
  animation: fadeInUp 0.8s ease-out;
}

.card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
}

/* Mejoras de navegación móvil */
@media (max-width: 900px) {
  .topbar-brand {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 1.8rem !important;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .hero {
    padding: 20px 0 10px;
  }
  
  .hero-inner {
    padding: 24px 18px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 14px;
  }
  
  .topbar-inner {
    padding: 12px 0;
  }
  
  .brand {
    font-size: 0.95rem;
  }
  
  .logo {
    width: 28px;
    height: 28px;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .cta {
    gap: 8px;
  }
  
  .card-body {
    padding: 14px;
  }
  
  .card h3 {
    font-size: 1rem;
  }
  
  .card p {
    font-size: 0.95rem;
  }
}

/* Estilos para páginas de artículos */
.article-layout {
  max-width: 100%;
  margin: 0 auto;
}

.article-hero {
  position: relative;
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: 0;
}

.article-hero .hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.article-header {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem;
  background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.7) 70%, transparent 100%);
}

.article-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  color: white;
  font-weight: 800;
  line-height: 1.2;
}

.article-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,.9);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255,255,255,.8);
}

.article-meta span {
  background: rgba(255,255,255,.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.content-section {
  margin-bottom: 4rem;
}

.content-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 700;
}

.content-section h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.content-section p {
  color: var(--muted);
  line-height: 1.8;
  margin: 1rem 0;
  font-size: 1.0625rem;
}

.content-section ul {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.content-section ul li {
  margin: 0.75rem 0;
}

.phrase-box {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid #3b82f6;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
}

.phrase-en {
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.phrase-es {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.vocab-item {
  background: var(--card2);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vocab-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.vocab-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.vocab-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.tip-card {
  background: rgba(34, 197, 94, 0.08);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.tip-card strong {
  display: block;
  color: #22c55e;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.tip-card p, .tip-card ul {
  color: var(--muted);
  line-height: 1.7;
}

.warning-card {
  background: rgba(239, 68, 68, 0.08);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.warning-card strong {
  display: block;
  color: #ef4444;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.warning-card p, .warning-card ul {
  color: var(--muted);
  line-height: 1.7;
}

.cta-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-button {
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
  opacity: 1;
}

.cta-button-secondary {
  background: rgba(255,255,255,.1);
  color: var(--text);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,.2);
}

.cta-button-secondary:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
  opacity: 1;
}

/* Mejoras de accesibilidad */
*:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

a:focus, button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Responsive para artículos */
@media (max-width: 768px) {
  .article-hero .hero-image {
    height: 300px;
  }
  
  .article-header {
    padding: 2rem 1.5rem;
  }
  
  .article-content {
    padding: 0 1.5rem 3rem;
  }
  
  .content-section {
    margin-bottom: 3rem;
  }
  
  .vocab-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: 2rem 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-button, .cta-button-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .article-hero .hero-image {
    height: 250px;
  }
  
  .article-header {
    padding: 1.5rem 1rem;
  }
  
  .article-title {
    font-size: 1.5rem;
  }
  
  .article-subtitle {
    font-size: 1rem;
  }
  
  .article-content {
    padding: 0 1rem 2rem;
  }
  
  .content-section h2 {
    font-size: 1.5rem;
  }
  
  .content-section h3 {
    font-size: 1.25rem;
  }
  
  .phrase-box {
    padding: 1rem;
  }
  
  .tip-card, .warning-card {
    padding: 1rem;
  }
}

/* Nuevo: soporte para modo de topbar simplificado (usado en mini-inmersión, cursos, destinos) */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-brand {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.2px;
  color: var(--text);
}

.topbar-link {
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.topbar-link:hover {
  opacity: 1;
  background: rgba(255,255,255,.05);
}

/* Hero simplificado para páginas internas */
.hero {
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
  border-bottom: 1px solid rgba(255,255,255,.1);
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Responsive para hero simplificado */
@media (max-width: 768px) {
  .topbar {
    padding: 1rem;
  }
  
  .hero {
    padding: 2rem 1.5rem;
  }
  
  .hero-badges {
    gap: 0.5rem;
  }
  
  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}


