:root {
  --primary-bg: #0a0a0f;
  --secondary-bg: #111122;
  --accent-1: #00f0ff;
  --accent-2: #ff00ff;
  --accent-3: #9d00ff;
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --text-muted: #666688;
  --card-bg: rgba(17, 17, 34, 0.8);
  --card-border: rgba(0, 240, 255, 0.3);
  --card-glow: rgba(0, 240, 255, 0.1);
  --success: #00ff88;
  --warning: #ffaa00;
  --danger: #ff0044;
}

* {
  margin: 0; /* CORREGIDO: era 100 */
  padding: 0; /* CORREGIDO: era 100 */
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Mono', monospace;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(10, 10, 15, 0.9), rgba(10, 10, 15, 0.9)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,240,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-2);
  text-shadow: 0 0 10px var(--accent-2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

section {
  padding: 5rem 0;
  position: relative;
}

/* Efectos de texto glitch */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--accent-2);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent-1);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(42px, 9999px, 44px, 0); }
  5% { clip: rect(12px, 9999px, 59px, 0); }
  10% { clip: rect(48px, 9999px, 29px, 0); }
  15% { clip: rect(42px, 9999px, 73px, 0); }
  20% { clip: rect(63px, 9999px, 27px, 0); }
  25% { clip: rect(34px, 9999px, 55px, 0); }
  30% { clip: rect(86px, 9999px, 73px, 0); }
  35% { clip: rect(20px, 9999px, 20px, 0); }
  40% { clip: rect(26px, 9999px, 60px, 0); }
  45% { clip: rect(25px, 9999px, 66px, 0); }
  50% { clip: rect(57px, 9999px, 98px, 0); }
  55% { clip: rect(5px, 9999px, 46px, 0); }
  60% { clip: rect(82px, 9999px, 31px, 0); }
  65% { clip: rect(54px, 9999px, 27px, 0); }
  70% { clip: rect(28px, 9999px, 99px, 0); }
  75% { clip: rect(45px, 9999px, 69px, 0); }
  80% { clip: rect(23px, 9999px, 85px, 0); }
  85% { clip: rect(54px, 9999px, 84px, 0); }
  90% { clip: rect(45px, 9999px, 47px, 0); }
  95% { clip: rect(37px, 9999px, 20px, 0); }
  100% { clip: rect(4px, 9999px, 91px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  5% { clip: rect(52px, 9999px, 74px, 0); }
  10% { clip: rect(79px, 9999px, 85px, 0); }
  15% { clip: rect(75px, 9999px, 5px, 0); }
  20% { clip: rect(67px, 9999px, 61px, 0); }
  25% { clip: rect(14px, 9999px, 79px, 0); }
  30% { clip: rect(1px, 9999px, 66px, 0); }
  35% { clip: rect(86px, 9999px, 30px, 0); }
  40% { clip: rect(23px, 9999px, 98px, 0); }
  45% { clip: rect(85px, 9999px, 72px, 0); }
  50% { clip: rect(71px, 9999px, 75px, 0); }
  55% { clip: rect(2px, 9999px, 48px, 0); }
  60% { clip: rect(30px, 9999px, 16px, 0); }
  65% { clip: rect(59px, 9999px, 50px, 0); }
  70% { clip: rect(41px, 9999px, 62px, 0); }
  75% { clip: rect(2px, 9999px, 82px, 0); }
  80% { clip: rect(47px, 9999px, 73px, 0); }
  85% { clip: rect(3px, 9999px, 27px, 0); }
  90% { clip: rect(26px, 9999px, 55px, 0); }
  95% { clip: rect(42px, 9999px, 97px, 0); }
  100% { clip: rect(38px, 9999px, 49px, 0); }
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--accent-1);
  background: transparent;
  color: var(--accent-1);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px var(--accent-1);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--accent-1);
  color: var(--primary-bg);
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 20px var(--accent-2);
}

.btn-secondary {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn-secondary:hover {
  background: rgba(255, 0, 255, 0.1);
}

/* Navegación */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--accent-1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-1);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--accent-1);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section - MEJORADO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
  color: var(--accent-1);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-2);
  min-height: 2rem;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* FOTO DE PERFIL - CORREGIDA */
.profile-avatar {
  width: clamp(250px, 35vw, 400px); /* Más grande */
  height: clamp(250px, 35vw, 400px);
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0 50px var(--accent-1);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Eliminar completamente el borde y placeholder */
.profile-avatar {
  border: none !important;
  background: transparent !important;
}

.profile-avatar::before {
  display: none !important;
}

.cyber-grid {
  width: 300px;
  height: 300px;
  background:
    linear-gradient(90deg, transparent 49%, var(--accent-1) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, var(--accent-1) 50%, transparent 51%);
  background-size: 20px 20px;
  opacity: 0.3;
  animation: grid-move 20s linear infinite;
  position: absolute;
  z-index: -1;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 20px); }
}

/* Secciones generales */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.accent {
  color: var(--accent-1);
}

/* Cards */
.profile-card, .ontech-card, .service-card, .blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-card::before, .ontech-card::before, .service-card::before, .blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--card-glow), transparent);
  transition: left 0.5s;
}

.profile-card:hover::before, .ontech-card:hover::before, .service-card:hover::before, .blog-card:hover::before {
  left: 100%;
}

.profile-card:hover, .ontech-card:hover, .service-card:hover, .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--card-glow);
}

.card-title {
  color: var(--accent-1);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--accent-1);
  padding-bottom: 0.5rem;
}

/* Sección Perfil */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.contact-icon {
  font-size: 1.2rem;
  width: 30px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.skill-item {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--card-border);
  padding: 0.8rem 1rem;
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(0, 240, 255, 0.2);
  transform: scale(1.05);
}

.education-list, .timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-item, .timeline-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.education-item:last-child, .timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
}

.timeline-date {
  color: var(--accent-2);
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.timeline-content h4 {
  color: var(--accent-1);
  margin-bottom: 0.5rem;
}

/* Experiencia Laboral COMPLETA (sin scroll) */
.experience-full {
  grid-column: 1 / -1;
}

.experience-grid-full {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.exp-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-1);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
}

.exp-date {
  background: var(--accent-1);
  color: var(--primary-bg);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  height: fit-content;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.exp-content h4 {
  color: var(--accent-2);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.exp-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Sección Ontech */
.ontech-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ontech-logo h3 {
  font-size: 3rem;
  color: var(--accent-1);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px var(--accent-1);
}

.ontech-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-style: italic;
}

.ontech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.services-section {
  margin-bottom: 3rem;
}

.services-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card h4 {
  color: var(--accent-1);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.ontech-approach {
  margin-top: 3rem;
}

.approach-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent-1);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.approach-step {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  position: relative;
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--accent-1);
  color: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

/* SECCIÓN BLOG - MEJORADA */
.blog-section {
  padding: 5rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem; /* Más espacio entre tarjetas */
  margin-top: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-image {
  height: 220px;
  background: linear-gradient(45deg, var(--accent-3), var(--accent-2));
  border-radius: 8px 8px 0 0;
  margin: -2rem -2rem 1rem -2rem;
  position: relative;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 240, 255, 0.3), rgba(255, 0, 255, 0.3));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.blog-category {
  background: var(--accent-1);
  color: var(--primary-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 0.5rem;
}

.blog-title {
  color: var(--accent-1);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.3;
  min-height: 3.5rem;
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.6;
}

.blog-link {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--accent-1);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.blog-link:hover {
  background: var(--accent-1);
  color: var(--primary-bg);
}

/* Estilos específicos para páginas de blog individuales */
.blog-post {
  padding: 120px 0 50px;
  min-height: 100vh;
}

.post-header {
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  position: relative;
  z-index: 10;
}

.post-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--accent-1);
  margin: 1.5rem 0;
  line-height: 1.2;
  word-wrap: break-word;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-date, .post-category {
  background: rgba(0, 240, 255, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  border: 1px solid var(--card-border);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-3), var(--accent-2));
}

.author-name {
  font-weight: 700;
  color: var(--accent-1);
  font-size: 1.1rem;
}

.author-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.post-content h2 {
  color: var(--accent-2);
  margin: 2.5rem 0 1rem 0;
  font-size: 1.8rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cyber-quote {
  border-left: 4px solid var(--accent-1);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: rgba(0, 240, 255, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.2rem;
}

.cyber-list {
  list-style: none;
  margin: 2rem 0;
}

.cyber-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  position: relative;
  padding-left: 2rem;
}

.cyber-list li::before {
  content: '▸';
  color: var(--accent-1);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.post-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 3rem 0 2rem 0;
}

.tag {
  background: rgba(0, 240, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--card-border);
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nav-previous, .nav-next {
  padding: 1rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-previous:hover, .nav-next:hover {
  background: var(--accent-1);
  color: var(--primary-bg);
  border-color: var(--accent-1);
}

/* Sección Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  color: var(--accent-1);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-details {
  margin: 2rem 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--accent-1);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-1);
  color: var(--primary-bg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'Roboto Mono', monospace;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 10px var(--card-glow);
}

/* Footer */
.footer {
  background: var(--secondary-bg);
  border-top: 1px solid var(--card-border);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: var(--accent-1);
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Botón WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

.whatsapp-btn svg {
  width: 35px;
  height: 35px;
  display: block;
  margin: auto;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover svg {
  transform: scale(1.1);
  filter: brightness(1.2);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--secondary-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    border-top: 1px solid var(--card-border);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 1rem 0;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
  
  .profile-avatar {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
  }
  
  .skill-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .exp-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .exp-date {
    justify-self: center;
    max-width: 150px;
  }
  
  .ontech-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .approach-steps {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .timeline-date {
    margin-bottom: 0.5rem;
    text-align: left;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }
  
  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
  
  /* Blog responsive */
  .post-header {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .profile-avatar {
    width: 220px;
    height: 220px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-avatar {
    width: 300px;
    height: 300px;
  }
}

/* Estilos para imágenes */
.ontech-logo-img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

/* ============================================= */
/* ESTILOS PARA EL FORMULARIO DE CONTACTO */
/* ============================================= */

/* Notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.contact-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent-1);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 450px;
    animation: slideInRight 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-notification-success {
    border-left-color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}

.contact-notification-error {
    border-left-color: var(--danger);
    background: rgba(255, 0, 68, 0.1);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notification-message {
    white-space: pre-line;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Estados del botón de enviar */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--success) !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados de validación del formulario */
.form-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-group.focused label {
    color: var(--accent-1);
    transform: translateY(-2px);
}

.form-group.valid label {
    color: var(--success);
}

.form-group.invalid label {
    color: var(--danger);
}

.form-group.valid::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success);
    font-weight: bold;
}

.form-group.invalid::after {
    content: '!';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--danger);
    font-weight: bold;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 15px var(--card-glow);
    transform: translateY(-2px);
}

.form-group.valid input,
.form-group.valid textarea {
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(255, 0, 68, 0.2);
}

/* Efectos de carga para el formulario */
#contactForm {
    transition: all 0.3s ease;
}

#contactForm:disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
    .contact-notification {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
        animation: slideInRight 0.3s ease;
    }
    
    .notification-message {
        font-size: 0.85rem;
    }
}