﻿/* =====================================================
   BLOG POLITICO SERGIO - ESTILOS PRINCIPALES
   ===================================================== */

/* Variables CSS para temas claro y oscuro */
:root {
  /* Tema claro */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Colores de acento */
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --error-color: #f56565;
  
  /* Variables para botones sociales - Morado como el botón "Explorar Contenido" */
  --primary-color: #667eea;
  --accent-color: #764ba2;
}

/* Tema oscuro */
[data-theme="dark"] {
  --bg-primary: #1a202c;
  --bg-secondary: #2d3748;
  --bg-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #a0aec0;
  --border-color: #4a5568;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.5);
  
  /* Colores de acento para tema oscuro */
  --accent-primary: #63b3ed;
  --accent-secondary: #9f7aea;
  
  /* Variables para botones sociales en modo oscuro */
  --primary-color: #63b3ed;
  --accent-color: #9f7aea;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all 0.3s ease;
}

/* =====================================================
   HEADER Y NAVEGACION
   ===================================================== */

.main-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 70px;
}

.site-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.site-logo:hover {
  color: var(--accent-secondary);
  transform: scale(1.05);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
  background: var(--bg-secondary);
}

.nav-link.active {
  color: var(--accent-primary);
  background: var(--bg-secondary);
}

/* Boton de tema */
.theme-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  color: white;
  transform: rotate(180deg);
  border-color: var(--accent-primary);
}

/* =====================================================
   CONTENIDO PRINCIPAL
   ===================================================== */

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-radius: 20px;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-accent);
  opacity: 0.1;
  z-index: 1;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--bg-accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

/* =====================================================
   SECCION DE POSTS
   ===================================================== */

.posts-section {
  margin: 4rem 0;
}

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

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
}

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

.post-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--accent-primary);
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--bg-accent);
}

.post-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--accent-primary);
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--accent-secondary);
  transform: translateX(5px);
}

/* =====================================================
   PAGINA ACERCA DE
   ===================================================== */

.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 0;
  background: var(--bg-secondary);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.about-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-accent);
  opacity: 0.1;
}

.about-content {
  position: relative;
  z-index: 2;
}

.author-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  display: block;
  border: 6px solid var(--accent-primary);
  box-shadow: var(--shadow-heavy);
  transition: all 0.3s ease;
}

.author-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.author-name {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.author-title {
  font-size: 1.4rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.author-bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.about-content-sections {
  margin-top: 4rem;
}

.about-section {
  margin-bottom: 3rem;
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  border-left: 4px solid var(--accent-primary);
}

.about-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* =====================================================
   FOOTER
   ===================================================== */

.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white !important;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.social-link:hover {
  color: white !important;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4) !important;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .main-nav {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .main-content {
    padding: 2rem 1rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .post-card {
    padding: 1.5rem;
  }
  
  .author-photo {
    width: 150px;
    height: 150px;
  }
  
  .author-name {
    font-size: 2.2rem;
  }
  
  .about-section {
    padding: 2rem;
  }
  
  .footer-social {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .post-title {
    font-size: 1.2rem;
  }
}

/* =====================================================
   ANIMACIONES Y TRANSICIONES
   ===================================================== */

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

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Estados de focus para accesibilidad */
.nav-link:focus,
.theme-toggle:focus,
.cta-button:focus,
.social-link:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* ===========================================
   ESTILOS ESPECÍFICOS PARA PÁGINA ABOUT
   =========================================== */

.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.8;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--accent-color);
}

.about-header .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.author-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-title {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    border-radius: 2px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.closing-message {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color)20, var(--primary-color)20);
    border-radius: 8px;
    border: 1px solid var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.social-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4) !important;
    color: white !important;
}

.social-link span:first-child {
    font-size: 1.2rem;
}

/* Responsive design para About */
@media (max-width: 768px) {
    .about-page {
        padding: 1rem 0.5rem;
    }
    
    .author-name {
        font-size: 2rem;
    }
    
    .author-photo {
        width: 120px;
        height: 120px;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .about-section p {
        font-size: 1rem;
        text-align: left;
    }
    
    .footer-social {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
}

/* Animaciones específicas para About */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section {
    animation: fadeInUp 0.8s ease forwards;
}

.about-section:nth-child(2) {
    animation-delay: 0.2s;
}

.about-section:nth-child(3) {
    animation-delay: 0.4s;
}

/* Modo oscuro específico para About */
[data-theme="dark"] .about-section {
    background: var(--card-bg);
    border-left-color: var(--accent-color);
}

[data-theme="dark"] .author-photo {
    border-color: var(--accent-color);
}

[data-theme="dark"] .closing-message {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-color: var(--accent-color);
}

/* ===========================================
   NUEVO LAYOUT PROFESIONAL PARA ABOUT PAGE
   =========================================== */

.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color)10, var(--accent-color)10);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.author-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.author-photo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

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

.author-name {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-title {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.about-intro .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 400;
    font-style: italic;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.about-intro .lead::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.about-sections {
    display: grid;
    gap: 2rem;
}

.about-section {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    border-radius: 0 4px 4px 0;
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.section-icon {
    font-size: 3rem;
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.section-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    text-align: justify;
}

.about-closing {
    text-align: center;
    margin: 3rem 0;
}

.closing-message {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 2rem;
    background: linear-gradient(135deg, var(--accent-color)15, var(--primary-color)15);
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-contact {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-contact h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-contact p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    min-width: 160px;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4);
    color: white;
}

.social-icon {
    font-size: 1.3rem;
}

.social-name {
    font-weight: 600;
}

/* Responsive para About renovado */
@media (max-width: 768px) {
    .about-page {
        padding: 1rem 0.5rem;
    }
    
    .about-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .author-photo {
        width: 140px;
        height: 140px;
    }
    
    .author-name {
        font-size: 2.2rem;
    }
    
    .author-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .about-intro .lead {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .section-icon {
        align-self: center;
        margin-bottom: 1rem;
    }
    
    .section-content p {
        text-align: left;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 250px;
    }
}

/* Animaciones mejoradas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section {
    animation: slideInUp 0.8s ease forwards;
}

.about-section:nth-child(1) { animation-delay: 0.1s; }
.about-section:nth-child(2) { animation-delay: 0.2s; }
.about-section:nth-child(3) { animation-delay: 0.3s; }
.about-section:nth-child(4) { animation-delay: 0.4s; }

/* Modo oscuro mejorado */
[data-theme="dark"] .about-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

[data-theme="dark"] .about-intro .lead::before {
    color: var(--accent-color);
}

[data-theme="dark"] .section-icon {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .closing-message {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

/* ===========================================
   HEADER CON LOGO PERSONALIZADO
   =========================================== */

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.site-logo:hover {
    color: var(--accent-color);
    transform: scale(1.02);
}

.logo-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-photo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.logo-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ===========================================
   FOOTER MEJORADO CON TÍTULO
   =========================================== */

.footer-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 140px;
    justify-content: center;
}

.social-link:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
    color: white !important;
}

.social-link span:first-child {
    font-size: 1.2rem;
}

.social-link span:last-child {
    color: white !important;
    font-weight: 600;
}

/* Modo oscuro para footer */
[data-theme="dark"] .footer-title {
    color: var(--accent-color);
}

[data-theme="dark"] .social-link {
    background: var(--accent-color);
    color: var(--dark-bg) !important;
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-color);
    color: white !important;
}

[data-theme="dark"] .social-link span:last-child {
    color: inherit !important;
}

/* Responsive para header personalizado */
@media (max-width: 768px) {
    .site-logo {
        font-size: 1.2rem;
        gap: 0.6rem;
    }
    
    .logo-photo {
        width: 35px;
        height: 35px;
    }
    
    .footer-social {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .social-link {
        width: 200px;
    }
}

/* ===========================================
   ARREGLOS PARA VISIBILIDAD DE TEXTO
   =========================================== */

/* Arreglo específico para texto de botones sociales */
.social-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.8rem 1.5rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; /* Gradiente púrpura */
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    min-width: 140px !important;
    justify-content: center !important;
}

.social-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important; /* Gradiente púrpura invertido */
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4) !important;
    color: #ffffff !important;
}

.social-link span {
    color: #ffffff !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.social-link span:first-child {
    font-size: 1.2rem !important;
    color: #ffffff !important;
}

.social-link span:last-child {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

/* Arreglo para logo */
.site-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    text-decoration: none !important;
    color: #667eea !important; /* Color púrpura principal */
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
}

.site-logo:hover {
    color: #764ba2 !important; /* Púrpura secundario para hover */
    transform: scale(1.02) !important;
}

.logo-text {
    color: #667eea !important; /* Color púrpura sólido */
    font-weight: 800 !important;
    font-size: 1.5rem !important;
}

.footer-title {
    color: #667eea !important; /* Color púrpura principal */
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

/* Modo oscuro específico */
[data-theme="dark"] .footer-title {
    color: #9f7aea !important; /* Púrpura claro para modo oscuro */
}

[data-theme="dark"] .site-logo {
    color: #9f7aea !important; /* Púrpura claro para modo oscuro */
}

[data-theme="dark"] .logo-text {
    color: #9f7aea !important; /* Púrpura claro para modo oscuro */
}

[data-theme="dark"] .social-link {
    background: linear-gradient(135deg, #9f7aea 0%, #63b3ed 100%) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .social-link:hover {
    background: linear-gradient(135deg, #63b3ed 0%, #9f7aea 100%) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .social-link span {
    color: #ffffff !important;
}

/* ===========================================
   ARREGLO PARA NOMBRE DIFUMINADO
   =========================================== */

.author-name {
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.5rem 0 !important;
    color: #667eea !important; /* Color púrpura principal sólido */
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3) !important;
    /* Eliminamos gradiente que causaba difuminación */
}

/* Modo oscuro específico para el nombre */
[data-theme="dark"] .author-name {
    color: #9f7aea !important; /* Púrpura claro para modo oscuro */
    text-shadow: 0 2px 4px rgba(159, 122, 234, 0.4) !important;
}

/* ===========================================
   LAYOUT CON IMAGEN LEON.JPG
   =========================================== */

.about-hero {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
    align-items: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

.author-info-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.leon-image-section {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.leon-image {
    width: 100% !important;
    max-width: 350px !important;
    height: auto !important;
    border-radius: 15px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.4s ease !important;
    object-fit: cover !important;
}

.leon-image:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2) !important;
}

/* Responsive para el nuevo layout */
@media (max-width: 768px) {
    .about-hero {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .leon-image {
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .author-name {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 480px) {
    .leon-image {
        max-width: 240px !important;
    }
    
    .about-hero {
        gap: 1.5rem !important;
    }
}

/* ===========================================
   REGLA FINAL - FORZAR BOTONES SOCIALES PÚRPURA
   =========================================== */

/* Sobrescribir TODAS las definiciones de botones sociales */
.footer-social .social-link,
.main-footer .social-link,
footer .social-link,
.social-link,
a[href*="twitter"], 
a[href*="x.com"], 
a[href*="tiktok"],
a[href*="Corrutruth"],
a[href*="sergio_corruchaga"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.footer-social .social-link:hover,
.main-footer .social-link:hover,
footer .social-link:hover,
.social-link:hover,
a[href*="twitter"]:hover, 
a[href*="x.com"]:hover, 
a[href*="tiktok"]:hover,
a[href*="Corrutruth"]:hover,
a[href*="sergio_corruchaga"]:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4) !important;
}

/* Forzar texto de botones sociales */
.footer-social .social-link span,
.main-footer .social-link span,
footer .social-link span,
.social-link span {
    color: white !important;
    font-weight: 600 !important;
}
