/* Reset y estilos base */
:root {
  --primary-color: #000000;
  --secondary-color: #00A8FF;
  --accent-color: #33BBFF;
  --accent-dark: #0066CC;
  --text-color: #FFFFFF;
  --text-secondary: #B8C4D0;
  --bg-color: #0D1117;
  --bg-secondary: #161B22;
  --card-bg: #161B22;
  --card-hover: #1F2630;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --danger-color: #F44336;
  --info-color: #00A8FF;
  --border-radius: 30px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  --glow-cyan: 0 0 20px rgba(0, 168, 255, 0.35);
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

a:hover { color: var(--accent-color); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-center { text-align: center; }

/* Botones */
.btn, .cta-button, .download-button, .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin: 8px 5px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.25);
}

.btn:hover, .cta-button:hover, .download-button:hover, .submit-button:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.5);
}

.btn-secondary, .cta-button.secondary {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: none;
}

.btn-secondary:hover, .cta-button.secondary:hover {
  background: var(--secondary-color);
  color: #000;
  box-shadow: var(--glow-cyan);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #2BE070, #25D366);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* Header */
.main-header {
  background-color: rgba(13, 17, 23, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 168, 255, 0.15);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  flex-shrink: 0;
}

.logo-img { height: 40px; width: auto; margin-right: 10px; }

.nav-list {
  display: flex;
  gap: 0.3rem;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  padding: 0.5rem 0.7rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  position: relative;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-link i { margin-right: 6px; font-size: 1rem; }
.nav-link:hover { color: var(--secondary-color); }
.nav-link.active { color: var(--secondary-color); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--secondary-color);
  box-shadow: var(--glow-cyan);
}

/* Selector de idioma (header) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.lang-link {
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-link:hover,
.lang-link.active {
  color: var(--secondary-color);
  background: rgba(0, 168, 255, 0.1);
}

.lang-sep { color: #6E7B8A; }

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  padding: 0.5rem;
}

/* Sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: #0A0E14;
  z-index: 1000;
  transition: var(--transition);
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(0, 168, 255, 0.2);
}

.sidebar.active { right: 0; }

.close-sidebar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.sidebar-nav { padding: 2rem; }
.sidebar-list { margin-top: 2rem; }

.sidebar-link {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-link i { margin-right: 10px; font-size: 1.1rem; }
.sidebar-link:hover { color: var(--secondary-color); padding-left: 10px; }

/* Selector de idioma dentro del sidebar */
.sidebar-lang {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 168, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sidebar-lang-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* El lang-switch dentro del sidebar se fuerza a mostrarse */
.sidebar .lang-switch {
  display: flex;
  margin-left: 0;
}

/* ==================== HERO ==================== */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 168, 255, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0, 102, 204, 0.15) 0%, transparent 55%),
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)),
    #0D1117;
  color: white;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  color: #FFFFFF;
  text-shadow:
    0 0 10px rgba(0, 168, 255, 0.4),
    0 0 30px rgba(0, 168, 255, 0.2),
    2px 2px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero .subtitle {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 300;
  text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.hero-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-text strong { color: var(--secondary-color); font-weight: 600; }

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 3;
}

.scroll-down-btn {
  color: var(--secondary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.scroll-down-btn:hover {
  background-color: var(--secondary-color);
  color: #000;
  box-shadow: var(--glow-cyan);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* Secciones */
.section { padding: 5rem 0; }

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  color: var(--text-color);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-dark));
  margin: 1rem auto;
  border-radius: 2px;
  box-shadow: var(--glow-cyan);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.15rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== ABOUT ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content strong { color: var(--secondary-color); }

/* Availability badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(76, 175, 80, 0.05));
  border: 1px solid rgba(76, 175, 80, 0.4);
  border-radius: 30px;
  font-size: 0.82rem;
  color: #4CAF50;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.4px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.availability-badge:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.08));
  border-color: rgba(76, 175, 80, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.availability-badge i {
  font-size: 0.95rem;
  color: #4CAF50;
  flex-shrink: 0;
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}

.availability-badge .badge-sep { opacity: 0.5; font-weight: 400; }

.availability-badge .badge-extra {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.78rem;
}

.availability-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.15), transparent);
  transition: left 0.6s ease;
}

.availability-badge:hover::after { left: 100%; }

.about-lead {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--secondary-color);
  padding: 0.8rem 0 0.8rem 1.2rem;
  background: linear-gradient(90deg, rgba(0, 168, 255, 0.05), transparent);
  border-radius: 0 8px 8px 0;
}

.about-lead strong { color: var(--secondary-color); font-weight: 600; }

.about-lead .highlight {
  color: var(--accent-color);
  font-weight: 500;
  position: relative;
}

.about-lead .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--secondary-color), transparent);
  opacity: 0.5;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.06), rgba(0, 102, 204, 0.03));
  border: 1px solid rgba(0, 168, 255, 0.15);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.about-stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  opacity: 0.6;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  transition: var(--transition);
}

.stat-item:hover { transform: translateY(-3px); }

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
  font-family: 'Segoe UI', monospace;
  letter-spacing: 1px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* Features */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border-left: 3px solid var(--secondary-color);
}

.feature-item:hover {
  transform: translateY(-5px);
  border-left-color: var(--accent-color);
  box-shadow: 0 8px 20px rgba(0, 168, 255, 0.15);
}

.feature-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
}

.feature-item h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* Role tags */
.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.role-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), rgba(0, 102, 204, 0.1));
  border: 1px solid rgba(0, 168, 255, 0.45);
  border-radius: 30px;
  color: var(--accent-color);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition);
  text-shadow: 0 0 8px rgba(0, 168, 255, 0.4);
  box-shadow: inset 0 0 8px rgba(0, 168, 255, 0.05);
}

.role-tags li i { font-size: 0.85rem; color: var(--secondary-color); }

.role-tags li:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
  color: #FFFFFF;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.45);
}

.role-tags li:hover i { color: #FFFFFF; }

/* About image */
.about-image { position: relative; }

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  width: 100%;
  height: auto;
  border: 2px solid rgba(0, 168, 255, 0.2);
}

.about-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 168, 255, 0.4);
}

/* ==================== SERVICES / SKILLS ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid var(--secondary-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 168, 255, 0.2);
  background-color: var(--card-hover);
  border-bottom-color: var(--accent-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 168, 255, 0.6);
}

.service-card h3 { margin-bottom: 1rem; color: var(--text-color); }
.service-card p { color: var(--text-secondary); line-height: 1.7; }

/* ==================== CERTIFICACIONES ==================== */
.certifications-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, #0A0E14 100%);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 168, 255, 0.12);
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 168, 255, 0.5);
  box-shadow: 0 8px 25px rgba(0, 168, 255, 0.2);
}

.cert-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 168, 255, 0.12);
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: 50%;
  color: var(--secondary-color);
  font-size: 1.4rem;
}

.cert-body h3 {
  font-size: 0.98rem;
  color: var(--text-color);
  margin-bottom: 0.2rem;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.cert-year {
  font-size: 0.78rem;
  color: #6E7B8A;
}

/* ==================== PROYECTOS ==================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 168, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 168, 255, 0.25);
  border-color: rgba(0, 168, 255, 0.5);
}

.project-image {
  overflow: hidden;
  height: 180px;
  background: linear-gradient(135deg, #0A0E14, #161B22);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img { transform: scale(1.08); }

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-body h3 { color: var(--secondary-color); margin-bottom: 0.6rem; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-tags span {
  background: rgba(0, 168, 255, 0.12);
  color: var(--secondary-color);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 168, 255, 0.3);
}

/* Casos de estudio */
.case-study {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0.9rem;
  background: rgba(0, 168, 255, 0.04);
  border-left: 2px solid var(--secondary-color);
  border-radius: 0 6px 6px 0;
}

.case-item { display: flex; flex-direction: column; gap: 0.2rem; }

.case-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary-color);
}

.case-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.project-links .community-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

/* ==================== TESTIMONIOS ==================== */
.testimonials-section {
  background: linear-gradient(180deg, #0A0E14 0%, var(--bg-color) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 168, 255, 0.12);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 168, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 168, 255, 0.15);
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 1.8rem;
  color: var(--secondary-color);
  opacity: 0.25;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.2rem;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid rgba(0, 168, 255, 0.15);
  padding-top: 1rem;
}

.testimonial-card footer strong {
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.testimonial-card footer span {
  font-size: 0.82rem;
  color: #6E7B8A;
}

/* ==================== PRENSA ==================== */
.press-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, #0A0E14 100%);
}

.press-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.press-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(0, 168, 255, 0.05);
  border: 1px solid rgba(0, 168, 255, 0.2);
  color: var(--text-secondary);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.press-filter i { font-size: 0.9rem; }

.press-filter:hover {
  background: rgba(0, 168, 255, 0.12);
  color: var(--secondary-color);
  border-color: rgba(0, 168, 255, 0.4);
  transform: translateY(-2px);
}

.press-filter.active {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.press-card {
  display: flex;
  gap: 1.2rem;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.8rem;
  border: 1px solid rgba(0, 168, 255, 0.12);
  transition: var(--transition);
  animation: fadeIn 0.4s ease;
}

.press-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 168, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 168, 255, 0.2);
}

.press-card.hidden { display: none; }

.press-icon {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 168, 255, 0.12);
  border: 1px solid rgba(0, 168, 255, 0.3);
  color: var(--secondary-color);
  font-size: 1.5rem;
  text-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
}

.press-body { flex: 1; min-width: 0; }

.press-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.press-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  color: white;
}

.cat-academico       { background: #7C3AED; }
.cat-institucional   { background: #0EA5E9; }
.cat-entrevistas     { background: #F59E0B; }
.cat-proyectos       { background: #10B981; }
.cat-reconocimientos { background: #EC4899; }

.press-source {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.press-body h3 {
  font-size: 1.05rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.press-date {
  font-size: 0.85rem;
  color: #6E7B8A;
  margin-bottom: 0.6rem;
}

.press-date i { margin-right: 4px; }

.press-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.press-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.press-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.press-pdf-link:hover {
  color: #FF5555;
  border-color: rgba(255, 85, 85, 0.5);
  background: rgba(255, 85, 85, 0.08);
}

.press-pdf-link i { color: #FF5555; }

.press-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6E7B8A;
}

.press-empty i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  opacity: 0.5;
}

/* Paginación */
.press-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.press-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(0, 168, 255, 0.08);
  border: 1px solid rgba(0, 168, 255, 0.25);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.press-page-btn:hover:not(:disabled) {
  background: rgba(0, 168, 255, 0.2);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.press-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.press-page-numbers { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.press-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.7rem;
  background: transparent;
  border: 1px solid rgba(0, 168, 255, 0.2);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
}

.press-page-number:hover {
  background: rgba(0, 168, 255, 0.1);
  color: var(--secondary-color);
  border-color: rgba(0, 168, 255, 0.5);
}

.press-page-number.active {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.press-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 42px;
  color: #6E7B8A;
  font-weight: bold;
  user-select: none;
}

.press-page-info {
  text-align: center;
  font-size: 0.9rem;
  color: #6E7B8A;
  margin-top: 1rem;
}

.press-page-info strong { color: var(--secondary-color); font-weight: 600; }

/* ==================== CONTACTO ==================== */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.community-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(0, 168, 255, 0.08);
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 168, 255, 0.2);
  border-color: rgba(0, 168, 255, 0.4);
}

.info-item > i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-right: 1.5rem;
  flex-shrink: 0;
  text-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
}

.info-item h3 { margin-bottom: 0.5rem; color: var(--text-color); }
.info-item p { color: var(--text-secondary); font-size: 0.95rem; }

.community-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.community-link:hover { text-decoration: underline; }

.newsletter-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 168, 255, 0.1);
}

.newsletter-form h3 { margin-bottom: 1rem; color: var(--secondary-color); }
.newsletter-form p { margin-bottom: 1.5rem; color: var(--text-secondary); line-height: 1.7; }

.form-group { margin-bottom: 1rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(0, 168, 255, 0.05);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #6E7B8A; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: rgba(0, 168, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.25);
}

.form-status { margin-top: 1rem; font-size: 0.95rem; min-height: 1.2em; }
.form-status.success { color: var(--success-color); }
.form-status.error { color: var(--danger-color); }

/* ==================== FOOTER ==================== */
.main-footer {
  background-color: #050810;
  padding: 4rem 0 0;
  color: var(--text-secondary);
  border-top: 1px solid rgba(0, 168, 255, 0.15);
}

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

.footer-logo { height: 50px; width: auto; margin-bottom: 1rem; }
.footer-about p { margin-bottom: 1rem; line-height: 1.7; }

.footer-about a { color: var(--secondary-color); transition: var(--transition); }
.footer-about a:hover { color: var(--accent-color); text-decoration: underline; }
.footer-about i { color: var(--secondary-color); margin-right: 4px; font-size: 0.9rem; }

.footer-social {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 168, 255, 0.1);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 50%;
  color: var(--text-color);
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--secondary-color);
  color: #000;
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.footer-links h3, .footer-resources h3, .footer-legal h3 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul, .footer-resources ul, .footer-legal ul {
  display: grid;
  gap: 0.8rem;
}

.footer-links a, .footer-resources a, .footer-legal a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover, .footer-resources a:hover, .footer-legal a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 168, 255, 0.1);
  font-size: 0.9rem;
}

/* ==================== BOTONES FLOTANTES ==================== */
.telegram-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
  z-index: 9999;
  transition: var(--transition);
  animation: pulse 1.8s infinite;
}

.telegram-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 168, 255, 0.7);
  color: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(0, 168, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 168, 255, 0); }
}

.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.8);
  color: white;
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #0A0E14;
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #0A0E14;
  border-right: 1px solid rgba(37, 211, 102, 0.4);
  border-top: 1px solid rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==================== PARTÍCULAS ==================== */
#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

/* ==================== COMPARTIR ==================== */
.share-hero {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeIn 1.2s ease forwards;
  position: relative;
  z-index: 2;
}

.share-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.share-label i { color: var(--secondary-color); margin-right: 6px; }

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.share-btn:hover {
  transform: translateY(-4px) scale(1.08);
  color: white;
}

.share-x:hover       { background: #000; box-shadow: 0 0 18px rgba(255, 255, 255, 0.5); }
.share-facebook:hover{ background: #1877F2; box-shadow: 0 0 18px rgba(24, 119, 242, 0.6); }
.share-linkedin:hover{ background: #0A66C2; box-shadow: 0 0 18px rgba(10, 102, 194, 0.6); }
.share-whatsapp:hover{ background: #25D366; box-shadow: 0 0 18px rgba(37, 211, 102, 0.6); }
.share-telegram:hover{ background: #0088CC; box-shadow: 0 0 18px rgba(0, 136, 204, 0.6); }
.share-copy:hover    { background: var(--secondary-color); box-shadow: var(--glow-cyan); }

.share-copy.copied {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.footer-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 168, 255, 0.1);
  margin-top: 1rem;
}

/* ==================== RESPONSIVE ==================== */

/* Laptops pequeñas: ajustar enlaces antes de colapsar */
@media (max-width: 1400px) {
  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.55rem;
  }
  .nav-link i { font-size: 0.9rem; margin-right: 5px; }
}

@media (max-width: 1200px) {
  .nav-link {
    font-size: 0.78rem;
    padding: 0.5rem 0.4rem;
  }
  .nav-link i { font-size: 0.85rem; margin-right: 4px; }
  .logo { font-size: 1.3rem; }
  .logo-img { height: 36px; }
}

/* Tablets y móviles: colapsar menú (breakpoint subido a 1100px) */
@media (max-width: 1100px) {
  /* Navbar */
  .nav-list { display: none; }
  .lang-switch { display: none; } /* El idioma se elige desde el sidebar */
  .sidebar-toggle { display: flex; }

  /* Layouts a una columna */
  .about-grid,
  .community-grid { grid-template-columns: 1fr; }

  .about-image { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 100px;
  }
}

/* Móviles grandes (tablets pequeñas) */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 80px;
  }

  .hero .container { width: 92%; padding: 0 10px; }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.8rem;
  }

  .hero .subtitle { font-size: 1.05rem; margin-bottom: 1rem; }
  .hero-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    padding: 0 5px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .cta-button,
  .cta-button.secondary,
  .whatsapp-btn {
    width: 100%;
    max-width: 300px;
    min-width: unset;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  /* Compartir en hero */
  .share-hero { margin-top: 1.2rem; }
  .share-label { font-size: 0.8rem; }
  .share-buttons { gap: 0.4rem; }
  .share-btn { width: 36px; height: 36px; font-size: 0.9rem; }

  /* Scroll down */
  .scroll-down { bottom: 12px; }
  .scroll-down-btn { width: 34px; height: 34px; }

  /* Secciones */
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.9rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }

  /* About stats */
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding: 1.2rem 0.8rem;
  }

  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }

  .about-lead {
    font-size: 1rem;
    padding: 0.6rem 0 0.6rem 1rem;
  }

  /* Grids a una columna */
  .about-features,
  .services-grid,
  .projects-grid,
  .cert-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; }

  /* Prensa */
  .press-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .press-card { padding: 1.3rem; gap: 1rem; }
  .press-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .press-body h3 { font-size: 1rem; }
  .press-desc { font-size: 0.88rem; }
  .press-filters { gap: 0.4rem; }
  .press-filter { padding: 0.5rem 0.9rem; font-size: 0.8rem; }

  /* Contacto */
  .info-item { padding: 1.2rem; }
  .info-item > i { font-size: 1.6rem; margin-right: 1rem; }
  .newsletter-form { padding: 1.5rem; }

  /* Botones flotantes */
  .telegram-float {
    bottom: 20px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
  .whatsapp-float {
    bottom: 82px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
  .whatsapp-tooltip { display: none; }

  /* Footer */
  .footer-share { padding: 1.5rem 0; }
  .footer-share .share-label { font-size: 0.8rem; }
  .footer-social a { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* Móviles pequeños */
@media (max-width: 576px) {
  .container { width: 94%; }

  /* Hero */
  .hero { padding: 90px 0 70px; }
  .hero h1 { font-size: 1.7rem; line-height: 1.3; letter-spacing: 0.5px; }
  .hero .subtitle { font-size: 0.95rem; }
  .hero-text { font-size: 0.9rem; line-height: 1.55; }
  .hero-buttons { gap: 0.5rem; }

  .cta-button,
  .cta-button.secondary,
  .whatsapp-btn {
    padding: 11px 18px;
    font-size: 0.8rem;
    max-width: 260px;
  }

  .share-btn { width: 34px; height: 34px; font-size: 0.85rem; }

  /* Logo */
  .logo { font-size: 1.2rem; }
  .logo-img { height: 32px; }

  /* Secciones */
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.6rem; }
  .section-title::after { width: 60px; height: 3px; }
  .section-subtitle { font-size: 0.95rem; }

  /* About */
  .about-content p { font-size: 0.95rem; }
  .about-stats { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .stat-item { padding: 0.3rem; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.75rem; }
  .about-lead { font-size: 0.95rem; padding: 0.6rem 0 0.6rem 1rem; }
  .feature-item { padding: 1.2rem; }
  .feature-icon { font-size: 1.6rem; }
  .feature-item h3 { font-size: 1rem; }

  /* Role tags */
  .role-tags { gap: 0.4rem; }
  .role-tags li { font-size: 0.75rem; padding: 0.35rem 0.7rem; }

  /* Availability badge */
  .availability-badge { font-size: 0.75rem; padding: 6px 12px; gap: 6px; }
  .availability-badge i { font-size: 0.85rem; }
  .availability-badge .badge-extra { display: none; }

  /* Prensa */
  .press-card { flex-direction: column; }
  .press-icon { width: 44px; height: 44px; font-size: 1.15rem; }
  .press-actions { flex-direction: column; align-items: flex-start; gap: 0.6rem; }

  /* Paginación */
  .press-pagination { gap: 0.3rem; margin-top: 2rem; }
  .press-page-btn { width: 36px; height: 36px; font-size: 0.8rem; }
  .press-page-number { min-width: 36px; height: 36px; font-size: 0.8rem; padding: 0 0.4rem; }
  .press-page-dots { height: 36px; }
  .press-page-info { font-size: 0.8rem; }

  /* Contacto */
  .info-item { flex-direction: column; align-items: flex-start; text-align: left; }
  .info-item > i { margin-right: 0; margin-bottom: 0.8rem; font-size: 1.6rem; }

  /* Botones flotantes */
  .telegram-float { bottom: 16px; right: 14px; width: 48px; height: 48px; font-size: 1.35rem; }
  .whatsapp-float { bottom: 74px; right: 14px; width: 48px; height: 48px; font-size: 1.45rem; }

  /* Cookie banner */
  .cookie-banner { padding: 1rem; font-size: 0.85rem; border-radius: 8px 8px 0 0; }
  .accept-button { padding: 0.5rem 1rem; font-size: 0.9rem; }
}

/* Móviles muy pequeños */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.5rem; }
  .hero .subtitle { font-size: 0.85rem; }
  .hero-text { font-size: 0.85rem; }

  .cta-button,
  .cta-button.secondary,
  .whatsapp-btn {
    padding: 10px 16px;
    font-size: 0.75rem;
    max-width: 240px;
  }

  .share-btn { width: 32px; height: 32px; font-size: 0.8rem; }
}

/* ==================== ANIMACIONES ==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section { animation: fadeIn 0.8s ease forwards; }

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: #0A0E14;
  color: var(--text-color);
  width: 100%;
  max-width: 600px;
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 15px rgba(0, 168, 255, 0.2);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-bottom: none;
  transition: transform 0.4s ease;
  z-index: 1001;
  font-size: 0.95rem;
}

.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner p { margin: 0 0 1rem; line-height: 1.5; }
.cookie-banner a { color: var(--secondary-color); text-decoration: underline; }

.accept-button {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.accept-button:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  box-shadow: var(--glow-cyan);
}

/* ==================== MODALES ==================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.modal {
  position: fixed;
  top: 50%; left: 50%;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  transform: translate(-50%, -50%) scale(0.95);
  background: #0A0E14;
  color: var(--text-color);
  border-radius: 8px;
  border: 1px solid rgba(0, 168, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 168, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.modal.show, .modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal.show { transform: translate(-50%, -50%) scale(1); }

.modal-content { padding: 2rem; position: relative; }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover { color: var(--secondary-color); }

.modal-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.modal-content p,
.modal-content li {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.modal-content h3, .modal-content h4, .modal-content h5 {
  color: var(--text-color);
  margin: 1rem 0 0.5rem;
}

.modal-content a { color: var(--secondary-color); text-decoration: underline; }

/* ==================== BLOG ==================== */
.blog-card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 2rem 0;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-hover);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.blog-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.25);
}

.blog-card h3 { color: var(--secondary-color); margin-top: 0; margin-bottom: 0.8rem; }

.article-excerpt {
  color: var(--text-secondary);
  margin: 0.5rem 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: #6E7B8A;
  flex-wrap: wrap;
}

.article-meta i { margin-right: 0.3rem; }

.read-more {
  background: rgba(0, 168, 255, 0.1);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  background: rgba(0, 168, 255, 0.25);
  transform: translateX(3px);
  box-shadow: 0 0 12px rgba(0, 168, 255, 0.4);
}

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

.article-markdown {
  background: #0A0E14;
  padding: 2rem;
  border-radius: 8px;
  line-height: 1.6;
  color: #D0D8E0;
  border: 1px solid rgba(0, 168, 255, 0.15);
}

.article-markdown h1,
.article-markdown h2,
.article-markdown h3 {
  color: var(--secondary-color);
  margin: 1.5rem 0 0.8rem;
}

.article-markdown p { margin-bottom: 1rem; }
.article-markdown a { color: var(--secondary-color); text-decoration: underline; }

.article-markdown code {
  background: var(--card-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--accent-color);
}

.article-markdown pre {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid rgba(0, 168, 255, 0.15);
}

.search-container { margin: 2rem auto; max-width: 800px; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--card-hover);
}

.search-box i { color: #6E7B8A; margin-right: 0.5rem; }

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
}

.search-filters {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.search-filters label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.no-results {
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
  color: #6E7B8A;
}

.no-results i { font-size: 2rem; margin-bottom: 1rem; }

.back-button {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-dark));
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.back-button:hover {
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
  transform: translateY(-2px);
}

.retry-button {
  background: var(--success-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.retry-button:hover { background: #3e8e41; }

.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.error-message {
  background: #1a0f0f;
  border-left: 4px solid var(--danger-color);
  padding: 1.5rem;
  border-radius: 0 4px 4px 0;
  margin: 1rem 0;
}

.error-message h3 { color: #f77; margin-top: 0; }

@media (max-width: 768px) {
  .blog-card-grid { grid-template-columns: 1fr; }
  .article-markdown { padding: 1rem; }
}