/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;500;700&family=Orbitron:wght@400;700&family=Rajdhani:wght@500;700&family=Share+Tech+Mono&family=Syncopate:wght@700&family=Audiowide&family=Quicksand:wght@400;600&family=Raleway:wght@300;400;700&display=swap');

/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --light-gray: #F8F9FA;
    --dark-gray: #343A40;
    
    /* Colores de botón hover */
    --button-hover-bg: #121212;
    --button-hover-text: #10b981;
    --button-hover-border: #10b981;
    
    /* Efectos */
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 100px 0;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Títulos de sección */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text-primary);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Cursor Personalizado */
.cursor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Fondo dinámico */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, 
        #1a1a2e 0%, 
        #16213e 25%, 
        #0f3460 50%, 
        #533a71 75%, 
        #1a1a2e 100%
    );
    transition: all 2s ease-in-out;
}

/* Barra de Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.nav-links a:hover,
.nav-links a.active {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* Estilos del Logo */
.nav-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
    transition: var(--transition);
}

.logo a:hover .nav-logo {
    transform: scale(1.05);
}

/* Sección Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    margin-top: 0px;
    text-align: center;
    position: relative;
    width: 100vw;
    overflow-x: hidden;
}

.hero-content {
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 8rem 2rem 3rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0px;
    margin-left: calc(-50vw + 50%);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    animation: shimmer 3s infinite;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.highlight {
    background: linear-gradient(45deg, 
        #60a5fa, #3b82f6, #1d4ed8, #1e40af, 
        #7c3aed, #a855f7, #c084fc, #e879f9
    );
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 4s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        #60a5fa, #3b82f6, #1d4ed8, #1e40af, 
        #7c3aed, #a855f7, #c084fc, #e879f9
    );
    background-size: 300% 300%;
    animation: gradientText 4s ease-in-out infinite;
    filter: blur(20px);
    opacity: 0.4;
    z-index: -1;
}

.title {
    font-size: 1.5rem;
    color: #ffffff !important;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

/* Efecto máquina de escribir */
.typewriter-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.typewriter-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
    min-height: 80px;
    max-width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    text-align: center;
}

.typewriter-text::after {
    content: '|';
    color: rgba(255, 255, 255, 0.9);
    animation: blink 1s infinite;
    margin-left: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Diferentes fuentes para el efecto typewriter */
.font-1 { font-family: 'Inter', sans-serif; }
.font-2 { font-family: 'Georgia', serif; }
.font-3 { font-family: 'Courier New', monospace; }
.font-4 { font-family: 'Arial', sans-serif; }
.font-5 { font-family: 'Helvetica', sans-serif; }
.font-6 { font-family: 'Times New Roman', serif; }
.font-7 { font-family: 'Verdana', sans-serif; }
.font-8 { font-family: 'Trebuchet MS', sans-serif; }
.font-9 { font-family: 'Palatino', serif; }
.font-10 { font-family: 'Impact', sans-serif; }
.font-11 { font-family: 'Comic Sans MS', cursive; }
.font-12 { font-family: 'Lucida Console', monospace; }
.font-13 { font-family: 'Tahoma', sans-serif; }
.font-14 { font-family: 'Geneva', sans-serif; }
.font-15 { font-family: 'Century Gothic', sans-serif; }
.font-16 { font-family: 'Bookman', serif; }
.font-17 { font-family: 'Garamond', serif; }
.font-18 { font-family: 'Optima', sans-serif; }
.font-19 { font-family: 'Futura', sans-serif; }
.font-20 { font-family: 'Avantgarde', sans-serif; }
.font-21 { font-family: 'Copperplate', sans-serif; }
.font-22 { font-family: 'Papyrus', fantasy; }
.font-23 { font-family: 'Brush Script MT', cursive; }
.font-24 { font-family: 'Chalkduster', fantasy; }
.font-25 { font-family: 'Marker Felt', fantasy; }
.font-26 { font-family: 'Monaco', monospace; }
.font-27 { font-family: 'Menlo', monospace; }
.font-28 { font-family: 'Consolas', monospace; }
.font-29 { font-family: 'Source Code Pro', monospace; }
.font-30 { font-family: 'Fira Code', monospace; }

/* Estilos de Botones */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.primary-btn {
    background: rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(37, 99, 235, 0.5);
}

.primary-btn:hover {
    background: var(--button-hover-bg) !important;
    color: var(--button-hover-text) !important;
    border-color: var(--button-hover-border) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6) !important;
}

.secondary-btn {
    background-color: transparent;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.contact-social {
    margin-top: 2rem;
}

/* Secciones con fondo adaptado */
.section {
    padding: 5rem 5% 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* Tech Name Container y efectos */
.tech-name-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      linear-gradient(90deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.05) 50%, rgba(16, 185, 129, 0) 100%),
      radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
    z-index: 0;
}

.circuit-lines::before, .circuit-lines::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
      linear-gradient(to right, rgba(16, 185, 129, 0.2) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: circuitMove 20s linear infinite;
}

.circuit-lines::after {
    background-size: 15px 15px;
    opacity: 0.2;
    animation-duration: 15s;
    animation-direction: reverse;
}

.name-3d-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(10deg);
    transition: transform 0.5s ease;
}

.name-3d-wrapper:hover {
    transform: perspective(800px) rotateX(15deg) translateY(-5px);
}

/* Contenedor para la transición entre estilos */
.name-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Versiones de nombre */
.name-glitch-version, .name-elegant-version {
  position: relative;
  padding-top: 15px;
}

/* Estado inicial: mostrar glitch, ocultar elegante */
.name-glitch-version {
    opacity: 1;
}

.name-elegant-version {
    opacity: 0;
}

/* Estilos para nombres */
.name-glitch, .surname-glitch {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    letter-spacing: 2px;
    position: relative;
    color: #ffffff;
    text-shadow: 
      0 0 10px rgba(16, 185, 129, 0.8),
      0 0 20px rgba(16, 185, 129, 0.4),
      0 0 30px rgba(16, 185, 129, 0.2);
    animation: textPulse 4s infinite alternate;
}

/* Efecto glitch avanzado */
.name-glitch::before, .name-glitch::after,
.surname-glitch::before, .surname-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.name-glitch::before, .surname-glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00de;
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.name-glitch::after, .surname-glitch::after {
    left: -2px;
    text-shadow: 1px 0 #00ddff;
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

/* Versión elegante del nombre */
.first-name, .last-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 3.5rem;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.last-name {
    font-weight: 500;
}

.name-separator {
    width: 60px;
    height: 50px;
    position: relative;
    opacity: 0.8;
    transition: var(--transition);
}

.circuit-path {
    fill: none;
    stroke: #10b981;
    stroke-width: 1.5;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawCircuit 4s forwards infinite alternate;
}

.surname-wrapper {
    position: relative;
}

/* Posicionamiento del tech-tag arriba a la derecha */
.tech-tag {
  position: absolute;
  top: -15px;
  right: 0;
  transform: translateX(-20%); /* Moverlo un poco a la izquierda desde el final de Pablo */
  background: rgba(18, 18, 18, 0.8);
  color: #10b981;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 1px;
  z-index: 20;
}

.binary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, transparent);
    z-index: 1;
    overflow: hidden;
    opacity: 0.2;
}

.binary-overlay::before {
    content: "01001001010101110000111001010001010";
    position: absolute;
    font-family: monospace;
    color: rgba(16, 185, 129, 0.6);
    font-size: 10px;
    line-height: 10px;
    width: 100%;
    height: 100%;
    animation: binaryRain 20s linear infinite;
}

.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.skills {
    margin: 2rem 0;
}

.skills h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 30px;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-10px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-title {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.project-image {
    height: 200px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    overflow: hidden;
}

.placeholder-project {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: 500;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    text-decoration: underline;
}

/* Contact section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item a,
.contact-item p {
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: inherit;
    transition: var(--transition);
    width: 100%;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem 5%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.heart {
    color: #ef4444;
}

/* Animaciones */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes circuitMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

@keyframes glitch-1 {
    0%, 100% { transform: none; opacity: 0.8; }
    41.99% { transform: none; opacity: 0.8; }
    42% { transform: skewX(0.5deg) translate(-2px, 0); opacity: 0.8; }
    43% { transform: none; opacity: 0.8; }
    43.01% { transform: skewX(-0.5deg) translate(2px, 0); opacity: 0.8; }
    44% { transform: none; opacity: 0.8; }
}

@keyframes glitch-2 {
    0%, 100% { transform: none; opacity: 0.8; }
    64.99% { transform: none; opacity: 0.8; }
    65% { transform: skewX(0.5deg) translate(2px, 0); opacity: 0.8; }
    65.5% { transform: none; opacity: 0.8; }
    65.51% { transform: skewX(-0.5deg) translate(-2px, 0); opacity: 0.8; }
    66% { transform: none; opacity: 0.8; }
}

@keyframes textPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.4), 0 0 30px rgba(16, 185, 129, 0.2); }
    50% { text-shadow: 0 0 15px rgba(16, 185, 129, 1), 0 0 25px rgba(16, 185, 129, 0.6), 0 0 35px rgba(16, 185, 129, 0.4); }
}

@keyframes drawCircuit {
    to { stroke-dashoffset: 0; }
}

@keyframes binaryRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones suaves para el hero */
.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content h1 { animation-delay: 0.1s; }
.hero-content .title { animation-delay: 0.2s; }
.hero-content .typewriter-container { animation-delay: 0.3s; }
.hero-content .cta-buttons { animation-delay: 0.4s; }
.hero-content .social-links { animation-delay: 0.5s; }

/* Responsive */
@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding-top: 150px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .cta-buttons, .social-links {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-stats {
        width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .contact-social {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transform: translateY(-150%);
        transition: transform 0.5s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .burger {
        display: block;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        width: 100vw;
        min-height: 100vh;
        padding: 6rem 1.5rem 2rem 1.5rem;
        margin-left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .typewriter-container {
        height: 100px;
    }

    .typewriter-text {
        max-width: 95%;
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-logo {
        height: 30px;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-logo-full {
        display: none;
    }
    .nav-logo-icon {
        display: block;
    }
}

@media (min-width: 481px) {
    .nav-logo-full {
        display: block;
    }
    .nav-logo-icon {
        display: none;
    }
}
/* Disposición horizontal de los nombres */
.name-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  gap: 20px; /* Espacio entre Omeñuk y Pablo */
}

/* Posicionamiento del tag profesional */
.tech-tag {
  position: absolute;
  top: -15px;
  right: 0;
  background: rgba(18, 18, 18, 0.8);
  color: #10b981;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 1px;
  z-index: 20;
}

/* Ajuste opcional para el efecto 3D */
.name-3d-wrapper:hover {
  transform: perspective(800px) rotateX(10deg) translateY(-5px);
}
/* Asegurar centrado completo del nombre en ambos estados */
.name-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.name-glitch-version, .name-elegant-version {
  position: absolute;
  display: flex;
  justify-content: center;
  width: 100%;
  transition: opacity 1s ease;
}

.name-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  gap: 20px; /* Espacio entre Omeñuk y Pablo */
  justify-content: center;
}

/* Mover el tag más a la derecha */
.tech-tag {
  position: absolute;
  top: -20px;
  right: 0;
  transform: translateX(50%); /* Eliminado el desplazamiento hacia la izquierda */
  background: rgba(18, 18, 18, 0.8);
  color: #10b981;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  z-index: 20;
}