:root {
  --primary: #0284c7;
  --primary-accent: #38bdf8;
  --bg-dark: #090d16;
  --bg-card: #111827;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #f8fafc;
  color: var(--text-main);
  line-height: 1.6;
}

/* BARRA DE PROGRESO */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8%;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-accent);
}

/* HERO SECTION */
.hero {
  position: relative;
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary-accent);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 35px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 35px;
}

.stat-item {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-accent);
}

.stat-desc {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* DESTACADOS */
.container-small {
  max-width: 1100px;
  margin: -40px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
}

.feat-icon {
  color: var(--primary);
  margin-bottom: 12px;
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* TITULOS DE SECCIÓN */
.container {
  padding: 80px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

.title-line {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 15px;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
}

/* FILTROS */
.filter-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 25px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* GRID Y TARJETAS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img-container {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-container img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(9, 13, 22, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-overlay {
  opacity: 1;
}

.view-btn {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.card-body {
  padding: 22px;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag-tv { background: #e0f2fe; color: #0284c7; }
.tag-foto { background: #fef3c7; color: #d97706; }
.tag-diseno { background: #f3e8ff; color: #9333ea; }

.card-body h3 {
  font-size: 1.15rem;
  margin: 12px 0 6px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* HABILIDADES TÉCNICAS */
.bg-alt {
  background: #f1f5f9;
}

.skills-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.skill-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.skill-per {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

/* MODALES */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-card img {
  width: 100%;
  max-height: 400px;
  object-fit: contain; /* Muestra la imagen completa sin recortarla */
  background-color: #0f172a; /* Fondo oscuro elegante para los bordes */
  border-radius: 10px;
  margin-bottom: 18px;
}

.modal-subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.modal-chips {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.modal-chips span {
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

/* CONTACTO */
.bg-dark {
  background: var(--bg-dark);
  color: #fff;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #111827;
  color: #fff;
  font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--primary);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

footer {
  background: #030712;
  color: #64748b;
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}
/* CONTENEDOR RESPONSIVO DE VIDEO */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  margin-bottom: 18px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}.modal-video {
  width: 100%;
  max-height: 380px;
  border-radius: 10px;
  background-color: #000;
  margin-bottom: 18px;
  outline: none;
}
.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 25px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: #000;
}