/* Vista en lista para el blog */
.news-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }

.news-item {
  display: flex;
  align-items: stretch;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,0.12); }

.news-thumb { width: 360px; height: 220px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; background: #0d1320; }

/* Columna de contenido: empujar footer al fondo */
.news-item > div { display: flex; flex-direction: column; flex: 1; min-height: 220px; }

.news-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.news-title { margin: 6px 0 6px; font-size: 18px; line-height: 1.35; }
.news-title a { color: var(--text); text-decoration: none; }
.news-title a:hover { color: var(--brand); }
.news-excerpt { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-footer { display: flex; align-items: center; margin-top: auto; gap: 12px; }
.read-more { margin-left: auto; }
.author-name { color: var(--muted); font-size: 12px; }
.read-more { color: var(--brand); text-decoration: none; font-weight: 600; }
.read-more:hover { color: var(--accent); }

@media (max-width: 1200px) { .news-thumb { width: 320px; height: 200px; } .news-item > div { min-height: 200px; } }
@media (max-width: 900px) { .news-thumb { width: 280px; height: 172px; } .news-item > div { min-height: 172px; } }

@media (max-width: 720px) {
  .news-item { padding: 12px; gap: 12px; flex-direction: column; }
  .news-thumb { width: 100%; height: 200px; }
  .news-item > div { min-height: auto; }
  .news-title { font-size: 16px; }
  .news-excerpt { -webkit-line-clamp: 3; }
}
:root {
  --bg: #0b0e14;
  --panel: #111827;
  --panel-2: #0f1623;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #6ee7f9;
  --brand-2: #a78bfa;
  --accent: #22d3ee;
  --danger: #ef4444;
  --glass: rgba(17, 24, 39, 0.5);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1800px 1200px at 10% -10%, #131a2a 0%, var(--bg) 60%), 
              radial-gradient(1600px 1000px at 90% 15%, #0f1623 0%, var(--bg) 65%),
              linear-gradient(180deg, #0b0e14 0%, #0b0e14 100%);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.bg-orbs {
  position: fixed;
  inset: -20% -10% -20% -10%;
  z-index: -1;
  filter: blur(40px) saturate(120%);
  pointer-events: none;
}
.orb {
  position: absolute;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  opacity: 0.18;
}
.orb-a { background: radial-gradient(circle at 30% 30%, #22d3ee, transparent 60%); left: -10%; top: -10%; animation: float 18s ease-in-out infinite; }
.orb-b { background: radial-gradient(circle at 70% 40%, #a78bfa, transparent 60%); right: -5%; top: -10%; animation: float 22s ease-in-out infinite reverse; }
.orb-c { background: radial-gradient(circle at 40% 70%, #34d399, transparent 60%); left: 10%; bottom: -20%; animation: float 26s ease-in-out infinite; }
.orb-d { background: radial-gradient(circle at 60% 40%, #7dd3fc, transparent 60%); right: -12%; top: 45%; animation: float 30s ease-in-out infinite; opacity: 0.14; }
.orb-e { background: radial-gradient(circle at 40% 60%, #c4b5fd, transparent 60%); left: -8%; bottom: -8%; animation: float 34s ease-in-out infinite reverse; opacity: 0.14; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.6);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.brand-text { font-family: Poppins, Inter, sans-serif; font-size: 18px; }

.nav { display: flex; align-items: center; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.menu a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.section { padding: 96px 0; position: relative; }

 .hero { padding-top: 120px; padding-bottom: 120px; overflow: hidden; }
 .hero::after {
   content: "";
   position: absolute;
   left: 50%;
   bottom: 0;
   transform: translateX(-50%);
   width: min(720px, 82%);
   height: 1px;
   background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.08) 80%, transparent);
   box-shadow: 0 0 20px rgba(255,255,255,0.04);
 }
 .headline {
   font-family: Poppins, Inter, sans-serif;
   font-size: clamp(32px, 5vw, 54px);
   line-height: 1.08;
   margin: 0 0 14px 0;
 }
 .hero .headline { text-align: center; }
 .hero .subhead { text-align: center; margin-left: auto; margin-right: auto; }
 .hero .cta-row { justify-content: center; }
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subhead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.7;
  max-width: 740px;
}
.cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, rgba(110,231,249,0.15), rgba(167,139,250,0.15)); box-shadow: 0 10px 30px rgba(34,211,238,0.15); }
.btn-primary:hover { background: linear-gradient(135deg, rgba(110,231,249,0.25), rgba(167,139,250,0.25)); }
.btn-ghost { background: rgba(255,255,255,0.03); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.hero-visual { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(20px);
  background: radial-gradient(60% 60% at 30% 30%, rgba(34,211,238,0.45), rgba(167,139,250,0.28) 60%, transparent 61%);
}
.blob-1 { width: 38vmax; height: 38vmax; top: -8vmax; right: -8vmax; animation: drift 22s ease-in-out infinite; opacity: 0.55; }
.blob-2 { width: 30vmax; height: 30vmax; bottom: -10vmax; left: -6vmax; animation: drift 28s ease-in-out infinite reverse; opacity: 0.45; }

@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(12px,-16px) scale(1.04); }
}

.hero-grid {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background: radial-gradient(transparent 20%, rgba(255,255,255,0.03) 21%), linear-gradient(transparent, transparent 70%, rgba(255,255,255,0.03) 71%);
  mask-image: radial-gradient(60% 60% at 50% 10%, black 30%, transparent 70%);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: var(--shadow);
}
.card-glass {
  background: linear-gradient(180deg, rgba(17,24,39,0.6), rgba(17,24,39,0.42));
  backdrop-filter: blur(8px) saturate(140%);
}
.feature {
  padding: 10px 0 14px;
}
.feature-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 20px;
}
.feature-layout.full { grid-template-columns: 1fr; }
.feature-layout.full .feature-body { max-width: 820px; margin: 0 auto; text-align: center; }
.feature-body { min-width: 0; }
 .feature h2 {
   font-family: Poppins, Inter, sans-serif;
   font-size: clamp(24px, 3.2vw, 32px);
   margin: 0 0 12px 0;
 }
 .feature p { color: var(--muted); max-width: 72ch; margin-right: 0; font-size: clamp(16px, 1.8vw, 18px); line-height: 1.7; }
.feature .chips { margin: 8px 0 12px; }
.feature + .feature { border-top: 1px solid var(--border); padding-top: 22px; }

.feature-media {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 0 0 0 auto;
  box-shadow: var(--shadow);
  background: linear-gradient(120deg, rgba(110,231,249,0.08), rgba(167,139,250,0.08));
}
.feature-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.feature-media img.logo { object-fit: contain; background: white; padding: 20px; }

/* Estilos para la imagen de retrato de Emiliano */
.portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 16px 0;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Evitar espacio muerto lateral en móviles y desktop */
.container.stack { align-items: start; }
.about h2, .projects .section-title, .contact h2 { font-family: Poppins, Inter, sans-serif; margin-top: 0; }
.values { list-style: none; padding: 0; margin: 16px 0 0 0; display: grid; gap: 10px; }
.values .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-right: 10px; }
.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.avatar { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #071018; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 22px rgba(167,139,250,0.25); }
.profile-name { margin: 0; font-weight: 700; }
.profile-meta { margin: 2px 0 0 0; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); }

.projects .section-title { margin-bottom: 8px; }
.section-desc { color: var(--muted); margin-top: 0; margin-bottom: 22px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-rows: 140px auto; }
.project-media { position: relative; background: linear-gradient(135deg, rgba(110,231,249,0.12), rgba(167,139,250,0.12)); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; transition: transform 0.3s ease; }
.media-blob { position: absolute; z-index: 0; width: 160px; height: 160px; right: -36px; top: -36px; background: radial-gradient(60% 60% at 30% 30%, rgba(34,211,238,0.6), rgba(167,139,250,0.4) 60%, transparent 61%); filter: blur(10px); border-radius: 50%; transition: transform 0.3s ease, opacity 0.3s ease; }
.media-icon { position: absolute; left: 16px; bottom: 16px; color: #c7d2fe; }
/* Ocultar ícono decorativo en tarjetas */
.media-icon { display: none; }
.project-body { padding: 16px; }
.project-body h3 { margin: 0 0 6px 0; font-size: 16px; transition: color 0.3s ease; }
.project-body p { margin: 0 0 8px 0; color: var(--muted); }

/* Efecto de hover para proyecto clickeable */
.project-card[onclick] {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card[onclick]:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(110, 231, 249, 0.2);
    border-color: rgba(110, 231, 249, 0.3);
}

.project-card[onclick]:hover .media-blob {
    transform: scale(1.1);
    opacity: 0.8;
}

.project-card[onclick]:hover .project-media img {
    transform: scale(1.05);
}

.project-card[onclick]:hover h3 {
    color: var(--brand);
}

.project-card[onclick]:active {
    transform: translateY(-4px);
    transition: transform 0.1s ease;
}

/* Contact Page Styles */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-container {
  max-width: 100%;
}

.contact-form {
  padding: 32px;
  background: linear-gradient(180deg, rgba(17,24,39,0.8), rgba(17,24,39,0.6));
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

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

.contact-submit {
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.contact-info {
  padding: 32px;
  background: linear-gradient(180deg, rgba(17,24,39,0.6), rgba(17,24,39,0.4));
  backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 24px;
  margin: 0 0 24px 0;
  color: var(--text);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110,231,249,0.15), rgba(167,139,250,0.15));
  border: 1px solid rgba(110,231,249,0.2);
  color: var(--brand);
  flex-shrink: 0;
}

.contact-details h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.contact-details a,
.contact-details p {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: var(--brand);
}

/* Responsive */
@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-form,
  .contact-info {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .contact-form,
  .contact-info {
    padding: 20px;
  }
  
  .contact-item {
    gap: 12px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
}

/* Footer - Estilo exacto del CRM aplicado a todas las páginas */
.footer {
    background: var(--bg);
    padding: 4rem 0 1.5rem; /* --spacing-3xl 0 --spacing-lg */
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; /* --spacing-2xl */
    margin-bottom: 3rem; /* --spacing-2xl */
}

.footer-section h4 {
    font-size: 1.125rem; /* --font-size-lg */
    font-weight: 600;
    margin-bottom: 1.5rem; /* --spacing-lg */
    color: var(--text);
}

.footer-section p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem; /* --spacing-md */
    max-width: 280px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem; /* --spacing-sm */
}

.footer-section ul li a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease; /* --transition-fast */
}

.footer-section ul li a:hover {
    color: var(--brand);
}

/* Logo específico del footer */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* --spacing-sm */
    margin-bottom: 1rem; /* --spacing-md */
}

/* Contenedor de la primera sección del footer */
.footer-section:first-child {
    max-width: 300px;
}

.footer-section:first-child p {
    max-width: 280px;
    word-wrap: break-word;
    hyphens: auto;
}

.footer-logo img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    max-width: 24px !important;
    max-height: 24px !important;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem; /* --spacing-lg */
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* Social links */
.social-links {
    display: flex;
    gap: 0.75rem; /* 12px */
    margin-top: 1rem; /* --spacing-md */
}

.social-links a {
    color: var(--muted);
    font-size: 20px;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--brand);
}

/* Asegurar que todas las imágenes del footer tengan tamaño controlado */
.footer img {
    max-width: 24px !important;
    max-height: 24px !important;
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
}



.footer-inner { 
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.footer-spacer {
  flex: 1;
  max-width: 300px;
}

.footer-section h3 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 18px;
  margin: 0 0 16px 0;
  color: var(--text);
}

.footer-section p {
  color: var(--muted);
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-columns {
  display: flex;
  gap: 24px;
}

.footer-contact-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-row {
  display: flex;
  gap: 24px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-contact-item:hover {
  color: var(--brand);
}

.footer-contact-item:hover .footer-contact-icon {
  background: linear-gradient(135deg, rgba(110,231,249,0.2), rgba(167,139,250,0.2));
  border-color: rgba(110,231,249,0.3);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
  transform: translateY(-1px);
}

.footer-contact-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(110,231,249,0.1), rgba(167,139,250,0.1));
  border: 1px solid rgba(110,231,249,0.15);
  color: var(--brand);
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.1);
}



.footer-bottom .footer-contact {
  margin-left: -100px;
}

.footer-bottom .footer-contact h3 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 18px;
  margin: 0 0 16px 0;
  color: var(--text);
}

.footer-copyright {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  height: 32px;
}

.to-top { 
  color: var(--muted); 
  text-decoration: none; 
  border: 1px solid var(--border); 
  padding: 8px 12px; 
  border-radius: 8px; 
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 600;
}

.to-top:hover { 
  color: var(--text); 
  background: rgba(255,255,255,0.04); 
  border-color: var(--brand);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .footer-content {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
  }
  
  .footer-inner {
    gap: 24px;
  }
  
  .footer-spacer {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding: 32px 0 20px;
  }
  
  .footer-content {
    gap: 24px;
  }
  
  .footer-contact-columns {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-contact-column {
    flex-direction: row;
    gap: 24px;
  }
  
  .footer-contact-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-contact-item {
    gap: 10px;
  }
  
  .footer-contact-icon {
    width: 28px;
    height: 28px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    text-align: center;
    align-items: center;
  }
  
  .footer-bottom .footer-contact {
    order: 2;
    text-align: center;
  }
  
  .footer-bottom .footer-contact h3 {
    text-align: center;
  }
  
  .footer-copyright {
    order: 1;
    text-align: center;
    margin-top: 0;
    height: auto;
  }
  
  .footer-bottom .footer-spacer {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Reviews */
.reviews .section-title { 
  font-family: Poppins, Inter, sans-serif; 
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin: 0 0 40px 0; 
  text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}
.reviews-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.review-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.g-badge { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #071018; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.review-name { font-weight: 600; }
.review-stars { color: #fbbf24; letter-spacing: 1px; font-size: 14px; }
.review-text { color: var(--muted); margin: 0; }

@media (max-width: 960px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stack { gap: 24px; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-media { max-width: 100%; }
}
/* Modal de éxito */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.success-modal.show {
  opacity: 1;
  visibility: visible;
}

.success-modal-content {
  background: linear-gradient(180deg, rgba(17,24,39,0.95), rgba(17,24,39,0.9));
  backdrop-filter: blur(16px) saturate(160%);
  border: 2px solid #10b981;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

.success-modal.show .success-modal-content {
  transform: scale(1) translateY(0);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
  animation: checkmark-bounce 0.6s ease-in-out;
}

@keyframes checkmark-bounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon svg {
  width: 48px;
  height: 48px;
  color: white;
  stroke-width: 3;
}

.success-modal h3 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.success-modal p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.success-modal .btn {
  min-width: 140px;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 720px) {
  .success-modal-content {
    padding: 40px 24px;
    margin: 20px;
  }
  
  .success-modal h3 {
    font-size: 24px;
  }
  
  .success-modal p {
    font-size: 15px;
  }
}

@media (max-width: 720px) {
  .menu { position: fixed; right: 16px; top: 72px; background: rgba(11,14,20,0.9); backdrop-filter: blur(10px) saturate(160%); border: 1px solid var(--border); border-radius: 12px; flex-direction: column; padding: 10px; display: none; box-shadow: var(--shadow-lg); }
  .menu.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* Blog Styles */
.blog-hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(110,231,249,0.1), rgba(167,139,250,0.1));
}

.blog-hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.blog-hero-background .gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(110,231,249,0.05), rgba(167,139,250,0.05));
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin: 0 0 24px 0;
    line-height: 1.1;
}

.blog-hero-subtitle {
    font-size: clamp(18px, 2.2vw, 20px);
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--muted);
    font-size: 18px;
    z-index: 2;
}

.search-input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 48px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.search-input::placeholder {
    color: var(--muted);
}

/* Categorías del Blog */
.blog-categories {
    padding: 40px 0;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.categories-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.category-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(110,231,249,0.3);
    color: var(--text);
}

.category-btn.active {
    background: linear-gradient(135deg, rgba(110,231,249,0.15), rgba(167,139,250,0.15));
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.category-btn i {
    font-size: 16px;
}

/* Contenido del Blog */
.blog-content {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.blog-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(110,231,249,0.3);
}

.blog-card.featured {
    grid-column: span 2;
}

.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card.featured .blog-card-image {
    height: 320px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #071018;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.blog-category {
    background: linear-gradient(135deg, rgba(110,231,249,0.1), rgba(167,139,250,0.1));
    color: var(--brand);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(110,231,249,0.2);
}

.blog-date {
    color: var(--muted);
    font-size: 14px;
}

.blog-card-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card.featured .blog-card-title {
    font-size: 24px;
}

.blog-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--brand);
}

.blog-card-excerpt {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
    font-size: 15px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: var(--text);
}

.read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Paginación */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.06);
    border-color: rgba(110,231,249,0.3);
    color: var(--text);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.pagination-number:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(110,231,249,0.3);
    color: var(--text);
}

.pagination-number.active {
    background: linear-gradient(135deg, rgba(110,231,249,0.15), rgba(167,139,250,0.15));
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.pagination-dots {
    color: var(--muted);
    font-size: 14px;
    padding: 0 8px;
}

/* Newsletter */
.blog-newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(110,231,249,0.05), rgba(167,139,250,0.05));
    border-top: 1px solid var(--border);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text h2 {
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 700;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.newsletter-text p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    gap: 12px;
    margin: 0;
}

.newsletter-form input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.newsletter-form input::placeholder {
    color: var(--muted);
}

.newsletter-form .btn {
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, rgba(110,231,249,0.15), rgba(167,139,250,0.15));
    border: 1px solid var(--brand);
    color: var(--brand);
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.newsletter-form .btn:hover {
    background: linear-gradient(135deg, rgba(110,231,249,0.25), rgba(167,139,250,0.25));
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
}

.newsletter-form .btn i {
    margin-right: 8px;
}

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

/* Responsive */
@media (max-width: 960px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .blog-card.featured .blog-card-image {
        height: 240px;
    }
    
    .blog-card.featured .blog-card-title {
        font-size: 20px;
    }
    
    .categories-container {
        gap: 8px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .blog-hero-subtitle {
        font-size: 16px;
    }
    
    .search-input {
        height: 48px;
        font-size: 15px;
    }
    
    .blog-categories {
        padding: 30px 0;
    }
    
    .categories-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .category-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .blog-content {
        padding: 60px 0;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 18px;
    }
    
    .blog-card-excerpt {
        font-size: 14px;
    }
    
    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pagination-numbers {
        display: none;
    }
    
    .blog-newsletter {
        padding: 60px 0;
    }
    
    .newsletter-text h2 {
        font-size: 24px;
    }
    
    .newsletter-text p {
        font-size: 16px;
    }
}

/* Estilos para el spinner de carga */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

/* Estilos para mensajes de error */
.error-message {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.error-message h3 {
    color: var(--danger);
    margin-bottom: 10px;
}

.error-message p {
    color: var(--muted);
    margin-bottom: 20px;
}

.retry-btn {
    background: var(--brand);
    color: var(--bg);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

