:root {
    --primary: #00f0ff;
    --secondary: #0072ff;
    --dark: #111827;
    --light: #e0f7ff;
    --accent: #7b2cbf;
    --game-color: #ff4081;
    --software-color: #00bcd4;
    --robotics-color: #ffeb3b;
    --app-color: #4caf50;
    --automotive-color: #ff9800;
    --music-color: #9c27b0;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    background-image: 
      radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.03) 0%, transparent 20%),
      radial-gradient(circle at 80% 60%, rgba(123, 44, 191, 0.05) 0%, transparent 40%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }
  
  /* Escudo flotante animado */
  .floating-shield {
    position: fixed;
    top: 20%;
    right: -80px;
    width: 150px;
    height: 150px;
    z-index: 999;
    opacity: 0.3;
    transition: all 0.3s ease;
    animation: floatShield 6s ease-in-out infinite;
    pointer-events: all;
    cursor: pointer;
  }
  
  .floating-shield:hover {
    opacity: 0.8;
    right: -40px;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8));
  }
  
  .shield-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
  }
  
  @keyframes floatShield {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }
    25% {
      transform: translateY(-20px) rotate(5deg);
    }
    50% {
      transform: translateY(0) rotate(0deg);
    }
    75% {
      transform: translateY(20px) rotate(-5deg);
    }
  }
  
  @keyframes shieldSpin {
    0% {
      transform: rotate(0deg) scale(1);
    }
    50% {
      transform: rotate(360deg) scale(1.2);
    }
    100% {
      transform: rotate(720deg) scale(1);
    }
  }
  
  /* Escudo de fondo parallax */
  .parallax-shield {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background-image: url('../img/escudo_mokuzaru.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    filter: blur(2px);
  }
  
  /* Contenedor de perfil con escudo */
  .profile-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 2rem;
  }
  
  .profile-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.2;
    z-index: 0;
    animation: rotateShield 20s linear infinite;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.6));
    pointer-events: none;
  }
  
  @keyframes rotateShield {
    from {
      transform: translate(-50%, -50%) scale(1.5) rotate(0deg);
    }
    to {
      transform: translate(-50%, -50%) scale(1.5) rotate(360deg);
    }
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 2rem;
  }
  
  h1 {
    font-size: 3.5rem;
    margin: 0;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  h2 {
    font-size: 1.5rem;
    color: var(--light);
    margin: 0.5rem 0 2rem;
    position: relative;
    font-weight: 300;
    letter-spacing: 1px;
  }
  
  .profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }
  
  .profile-container:hover .profile-image {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
  }
  
  .profile-container:hover .profile-shield {
    opacity: 0.4;
    filter: drop-shadow(0 0 50px rgba(0, 240, 255, 1));
  }
  
  .main-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  @media (max-width: 768px) {
    .main-section {
      grid-template-columns: 1fr;
    }
  }
  
  .about-section {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
  }
  
  h3 {
    font-size: 1.8rem;
    margin-top: 0;
    position: relative;
    display: inline-block;
  }
  
  h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
  }
  
  .brain-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
  }
  
  /* Marca de agua del escudo en el cerebro */
  .brain-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    animation: pulseWatermark 4s ease-in-out infinite;
  }
  
  .brain-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
  }
  
  @keyframes pulseWatermark {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.08;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.1);
      opacity: 0.12;
    }
  }
  
  .brain-svg {
    width: 100%;
    height: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.3));
  }
  
  .brain-region {
    fill: rgba(255, 255, 255, 0.05);
    stroke: var(--primary);
    stroke-width: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 0 2px rgba(0, 240, 255, 0.2));
  }
  
  .brain-region:hover {
    filter: drop-shadow(0 0 15px var(--primary));
    stroke-width: 3;
  }
  
  .frontal-lobe {
    fill: rgba(255, 64, 129, 0.1);
    stroke: var(--game-color);
  }
  
  .frontal-lobe:hover {
    fill: rgba(255, 64, 129, 0.3);
    filter: drop-shadow(0 0 8px var(--game-color));
  }
  
  .temporal-lobe {
    fill: rgba(0, 188, 212, 0.1);
    stroke: var(--software-color);
  }
  
  .temporal-lobe:hover {
    fill: rgba(0, 188, 212, 0.3);
    filter: drop-shadow(0 0 8px var(--software-color));
  }
  
  .parietal-lobe {
    fill: rgba(255, 235, 59, 0.1);
    stroke: var(--robotics-color);
  }
  
  .parietal-lobe:hover {
    fill: rgba(255, 235, 59, 0.3);
    filter: drop-shadow(0 0 8px var(--robotics-color));
  }
  
  .occipital-lobe {
    fill: rgba(76, 175, 80, 0.1);
    stroke: var(--app-color);
  }
  
  .occipital-lobe:hover {
    fill: rgba(76, 175, 80, 0.3);
    filter: drop-shadow(0 0 8px var(--app-color));
  }
  
  .cerebellum {
    fill: rgba(255, 152, 0, 0.1);
    stroke: var(--automotive-color);
  }
  
  .cerebellum:hover {
    fill: rgba(255, 152, 0, 0.3);
    filter: drop-shadow(0 0 8px var(--automotive-color));
  }
  
  .brain-stem {
    fill: rgba(156, 39, 176, 0.1);
    stroke: var(--music-color);
  }
  
  .brain-stem:hover {
    fill: rgba(156, 39, 176, 0.3);
    filter: drop-shadow(0 0 8px var(--music-color));
  }
  
  .skill-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 250px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: translateX(-50%);
  }
  
  .skill-tooltip h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
  }
  
  .skill-tooltip p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .neural-connection {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.2;
  }
  
  .pulse-point {
    fill: var(--primary);
    animation: pulseSVG 3s infinite;
  }
  
  @keyframes pulseSVG {
    0% {
      opacity: 1;
      r: 3;
    }
    50% {
      opacity: 0.5;
      r: 5;
    }
    100% {
      opacity: 1;
      r: 3;
    }
  }
  
  @keyframes pulse {
    0% {
      transform: scale(0.8);
      box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    }
    70% {
      transform: scale(1.2);
      box-shadow: 0 0 0 10px rgba(0, 240, 255, 0);
    }
    100% {
      transform: scale(0.8);
      box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
  }
  
  .cta-button {
    display: inline-block;
    margin-top: 2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
  }
  
  .code-decoration {
    position: absolute;
    font-family: monospace;
    opacity: 0.1;
    color: var(--primary);
    z-index: -1;
    font-size: 0.8rem;
  }
  
  .top-right {
    top: 2rem;
    right: 2rem;
  }
  
  .bottom-left {
    bottom: 2rem;
    left: 2rem;
  }
  
  .skills-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
  }
  
  /* Timeline Styles */
  .timeline-section {
    margin: 4rem 0;
  }
  
  .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  }
  
  .timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 2rem;
  }
  
  .timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--dark);
    border: 3px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
  }
  
  .left {
    left: 0;
  }
  
  .right {
    left: 50%;
  }
  
  .right::after {
    left: -10px;
  }
  
  .content {
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.2);
  }
  
  .timeline-date {
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
  }
  
  .timeline-title {
    margin: 0.5rem 0;
    font-size: 1.4rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
  }
  
  .game-tag {
    background: rgba(255, 64, 129, 0.1);
    border-color: var(--game-color);
  }
  
  .software-tag {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--software-color);
  }
  
  .robotics-tag {
    background: rgba(255, 235, 59, 0.1);
    border-color: var(--robotics-color);
  }
  
  .app-tag {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--app-color);
  }
  
  .automotive-tag {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--automotive-color);
  }
  
  .music-tag {
    background: rgba(156, 39, 176, 0.1);
    border-color: var(--music-color);
  }
  
  .timeline-indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
  }
  
  .timeline-indicator::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
  }
  
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  .project-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.2);
  }
  
  .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  }
  
  .project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .project-title {
    margin-top: 0;
    font-size: 1.4rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .tags-container {
    margin: 1rem 0;
  }
  
  .section-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
  }
  
  .section-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin-left: 2rem;
  }
/* Estilos responsivos para el escudo */
@media (max-width: 768px) {
  .floating-shield {
    width: 100px;
    height: 100px;
    right: -60px;
  }
  
  .floating-shield:hover {
    right: -30px;
  }
  
  .parallax-shield {
    width: 400px;
    height: 400px;
    opacity: 0.05;
  }
  
  .profile-container {
    width: 180px;
    height: 180px;
  }
  
  .profile-image {
    width: 180px;
    height: 180px;
  }
  
  .brain-watermark {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .floating-shield {
    display: none;
  }
  
  .parallax-shield {
    width: 300px;
    height: 300px;
  }
}

/* Etiquetas del cerebro */
.brain-label {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.brain-region:hover + .brain-label,
.brain-svg:hover .brain-label {
  opacity: 1;
}

.neural-connections {
  pointer-events: none;
}

/* ========================================
   SECCIÓN HERÁLDICA DEL ESCUDO
   ======================================== */

.heraldry-section {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: start;
}

@media (max-width: 968px) {
  .heraldry-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Columna del Escudo */
.shield-display {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shield-container-main {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin-bottom: 2rem;
}

.main-shield-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
  animation: shieldFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.shield-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2), transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes shieldFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Lema del Escudo */
.shield-motto {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 240, 255, 0.1));
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  width: 100%;
  max-width: 350px;
}

.motto-text {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #FFD700;
  margin: 0 0 0.5rem 0;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.motto-translation {
  font-size: 0.95rem;
  color: var(--light);
  margin: 0;
  font-style: italic;
  opacity: 0.9;
}

/* Columna de Descripción */
.heraldry-description {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.heraldry-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
  transition: all 0.3s ease;
}

.heraldry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.4);
}

.heraldry-card h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
}

.heraldry-icon {
  font-size: 1.5rem;
}

.heraldry-card p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.heraldry-card strong {
  color: var(--primary);
}

/* Paleta de Colores */
.color-palette {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.color-item {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.color-swatch {
  min-width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.color-swatch.azul-electrico {
  background: linear-gradient(135deg, #0072ff, #00f0ff);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.4);
}

.color-swatch.oro {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.color-swatch.plata {
  background: linear-gradient(135deg, #C0C0C0, #808080);
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.color-item span {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Grid de Cuarteles */
.quartels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .quartels-grid {
    grid-template-columns: 1fr;
  }
}

.quartel-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.quartel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.3);
}

.quartel-header {
  padding: 1rem;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quartel-header.azul {
  background: linear-gradient(135deg, rgba(0, 114, 255, 0.3), rgba(0, 240, 255, 0.3));
}

.quartel-header.plata {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(128, 128, 128, 0.3));
}

.quartel-header.oro {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
}

.quartel-header h5 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  color: var(--light);
}

.quartel-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
  display: block;
}

.quartel-card p {
  padding: 0 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.quartel-card p:last-child {
  padding-bottom: 1rem;
}

/* Tarjeta de Síntesis */
.heraldry-card.synthesis {
  background: linear-gradient(135deg, rgba(0, 114, 255, 0.1), rgba(123, 44, 191, 0.1));
  border: 2px solid rgba(0, 240, 255, 0.3);
}

.heraldry-card.synthesis p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ========================================
   ABOUT ME SECTION - REDISEÑADA
   ======================================== */

.about-modern-section {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Tarjeta de Introducción */
.about-intro-card {
  background: linear-gradient(135deg, rgba(0, 114, 255, 0.15), rgba(123, 44, 191, 0.15));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(0, 240, 255, 0.3);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.about-intro-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  animation: rotate 10s linear infinite;
}

.about-intro-card > * {
  position: relative;
  z-index: 1;
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounceIcon 2s ease-in-out infinite;
}

@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-intro-card h4 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-tagline {
  font-size: 1.2rem;
  color: var(--light);
  margin: 0;
  opacity: 0.9;
  font-style: italic;
}

/* Grid de Estadísticas */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid rgba(0, 240, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.3);
  border-color: rgba(0, 240, 255, 0.5);
}

.stat-card[data-color="game"]:hover {
  border-color: var(--game-color);
  box-shadow: 0 15px 40px rgba(255, 64, 129, 0.3);
}

.stat-card[data-color="software"]:hover {
  border-color: var(--software-color);
  box-shadow: 0 15px 40px rgba(0, 188, 212, 0.3);
}

.stat-card[data-color="robotics"]:hover {
  border-color: var(--robotics-color);
  box-shadow: 0 15px 40px rgba(255, 235, 59, 0.3);
}

.stat-card[data-color="app"]:hover {
  border-color: var(--app-color);
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--light);
  opacity: 0.8;
  line-height: 1.3;
}

/* Cards de Expertise */
.about-expertise-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.expertise-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 2rem;
  transition: all 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.4);
}

.expertise-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.expertise-card h5 {
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  color: var(--primary);
}

.expertise-card p {
  color: var(--light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.expertise-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--light);
  opacity: 0.9;
  font-size: 0.95rem;
}

.expertise-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Filosofía Personal */
.about-philosophy {
  background: linear-gradient(135deg, rgba(0, 114, 255, 0.1), rgba(123, 44, 191, 0.1));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  padding: 2.5rem;
  margin-top: 2rem;
}

.philosophy-content {
  display: flex;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.philosophy-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.philosophy-text h4 {
  font-size: 1.6rem;
  margin: 0 0 1rem 0;
  color: var(--primary);
}

.philosophy-text p {
  color: var(--light);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.philosophy-text strong {
  color: var(--primary);
  font-weight: 600;
}

/* Botón CTA Moderno */
.cta-button-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button-modern:hover::before {
  left: 100%;
}

.cta-button-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5);
}

.cta-button-modern svg {
  transition: transform 0.3s ease;
}

.cta-button-modern:hover svg {
  transform: translateX(5px);
}

/* Responsivo */
@media (max-width: 768px) {
  .about-intro-card h4 {
    font-size: 1.5rem;
  }
  
  .about-tagline {
    font-size: 1rem;
  }
  
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-expertise-cards {
    grid-template-columns: 1fr;
  }
  
  .philosophy-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .philosophy-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* ========================================
   BOTÓN DE CAMBIO DE IDIOMA
   ======================================== */

.language-switcher {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
  color: var(--light);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.lang-button:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
}

.lang-button:active {
  transform: translateY(-1px);
}

.lang-icon {
  font-size: 1.3rem;
  animation: rotate 20s linear infinite;
}

.lang-button:hover .lang-icon {
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lang-switch-animation {
  animation: langSwitch 0.3s ease-in-out;
}

@keyframes langSwitch {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
}

#currentLang {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Notificación de cambio de idioma */
.language-notification {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, rgba(0, 114, 255, 0.95), rgba(123, 44, 191, 0.95));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 240, 255, 0.5);
  border-radius: 50px;
  padding: 1rem 2rem;
  color: var(--light);
  font-weight: 600;
  font-size: 1rem;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
  opacity: 0;
  transition: all 0.3s ease;
}

.language-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsivo - Botón de idioma */
@media (max-width: 768px) {
  .language-switcher {
    top: 1rem;
    right: 1rem;
  }
  
  .lang-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .lang-icon {
    font-size: 1.1rem;
  }
  
  #currentLang {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .lang-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .language-notification {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
}
