
/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@font-face {
  font-family: "ShlopRegular";
  src: url('../webFonts/ShlopRegular/font.woff2') format('woff2'), 
       url('../webFonts/ShlopRegular/font.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Variables de colores Y fuentes */
:root {
  --rosa: #eb017d;
  --cian: #00ffff;
  --blanco: #ffffff;
  --negro: #000000;
  --fuente-texto: 'Poppins', sans-serif; /* NUEVA VARIABLE */
}
/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--negro);
  color: var(--blanco);
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* Tipografías */
h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-family: "ShlopRegular", Arial, sans-serif;
  color: var(--rosa);
}

h1, .display-1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2, .display-2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3, .display-3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.display-4 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.display-5 {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

p, .fs-3, .fs-4, .fs-5 {
  font-family: var(--fuente-texto);
  color: var(--blanco);
}

.fs-3 {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.fs-4 {
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
}

.fs-5 {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

/* Navegación */
.navbar {
  background-color: var(--negro) !important;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  max-height: 50px;
}

.navbar-nav .nav-link {
  color: var(--blanco) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  margin: 0 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--rosa) !important;
}

.dropdown-menu {
  background-color: var(--negro);
  border: 1px solid var(--rosa);
}

.dropdown-item {
  color: var(--blanco) !important;
}

.dropdown-item:hover {
  background-color: var(--rosa);
  color: var(--negro) !important;
}

.navbar-toggler {
  border-color: var(--rosa);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28235, 1, 125, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Secciones */
section {
  padding: 80px 0;
}

.container-fluid {
  padding: 0 15px;
}

/* Hero Section */
.hero-section {
  padding-top: 120px;
  padding-bottom: 80px;
}

.profile-img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  border: 3px solid var(--rosa);
  box-shadow: 0 0 20px rgba(235, 1, 125, 0.5);
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons img {
  width: 50px;
  height: 50px;
}

/* Separadores */
hr {
  border: 3px solid var(--rosa);
  opacity: 1;
  margin: 50px 0;
}

/* ===== VIDEOS Y EMBEDS RESPONSIVOS - CORREGIDO ===== */
.video-container, .sketchfab-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-container iframe, 
.sketchfab-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* IMPORTANTE: Asegurar que los videos sean visibles */
iframe[src*="youtube"],
iframe[src*="sketchfab"],
iframe[src*="vimeo"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Galería */
.gallery-item {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(235, 1, 125, 0.3);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Carousel */
.carousel {
  margin: 0 auto;
  max-width: 1000px;
}

.carousel-item img {
  border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--rosa);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Formulario de contacto */
.contact-form {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--rosa);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--rosa);
  color: var(--blanco);
  padding: 12px 15px;
  margin-bottom: 20px;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--cian);
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 255, 0.25);
  color: var(--blanco);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
  background-color: var(--rosa);
  border-color: var(--rosa);
  padding: 12px 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--cian);
  border-color: var(--cian);
  color: var(--negro);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--rosa);
  color: var(--rosa);
  padding: 12px 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--rosa);
  border-color: var(--rosa);
  color: var(--blanco);
  transform: translateY(-2px);
}

.filter-buttons .btn-outline-primary.active {
    background-color: var(--rosa) !important;
    border-color: var(--rosa) !important;
    color: var(--blanco) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 1, 125, 0.4) !important;
}

.filter-buttons .btn-outline-primary:active {
    background-color: rgba(235, 1, 125, 0.2) !important;
    border-color: var(--rosa) !important;
    color: var(--rosa) !important;
    transform: translateY(0) scale(0.95) !important;
    box-shadow: 0 2px 8px rgba(235, 1, 125, 0.3) !important;
    transition: all 0.1s ease !important;
}

/* Efecto hover para botones activos */
.filter-buttons .btn-outline-primary.active:hover {
    background-color: var(--rosa) !important;
    border-color: var(--rosa) !important;
    color: var(--blanco) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(235, 1, 125, 0.6) !important;
}

/* Footer */
footer {
  background-color: var(--rosa);
  padding: 50px 0 30px;
  margin-top: 50px;
}

.footer-logo {
  max-width: 100%;
  height: auto;
}

.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-info img {
  margin-right: 15px;
}

/* Botones de descarga */
.download-btn {
  display: inline-block;
  background-color: var(--rosa);
  color: var(--blanco);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.download-btn:hover {
  background-color: var(--cian);
  color: var(--negro);
  transform: translateY(-2px);
}

/* ===== MEJORAS DE ALTA PRIORIDAD ===== */

/* 1. Call-to-Action Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(235, 1, 125, 0.1) 0%, rgba(0, 255, 255, 0.1) 100%);
  border-radius: 20px;
  margin: 50px 0;
}

.cta-buttons {
  margin-top: 30px;
}

.cta-buttons .btn {
  margin: 10px 15px;
  min-width: 180px;
}

/* 2. Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--rosa);
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

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

.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* 3. Fade-in Animations */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* 4. Badges para tecnologías */
.badge {
  background-color: var(--rosa);
  color: var(--blanco);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin: 5px;
  display: inline-block;
}

/* 5. Success/Error Messages */
.alert {
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  border: 2px solid;
}

.alert-success {
  background-color: rgba(0, 255, 0, 0.1);
  border-color: #00ff00;
  color: #00ff00;
}

.alert-error {
  background-color: rgba(255, 0, 0, 0.1);
  border-color: #ff0000;
  color: #ff0000;
}

/* ===== SISTEMA DE PARTÍCULAS ROSAS MEJORADO ===== */

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--rosa);
  border-radius: 50%;
  animation: floatPink 8s ease-in-out infinite;
  opacity: 0.6;
}

/* Variaciones de tamaño y animación para partículas rosas */
.particle.small {
  width: 3px;
  height: 3px;
  animation-duration: 12s;
  opacity: 0.4;
}

.particle.medium {
  width: 5px;
  height: 5px;
  animation-duration: 8s;
  opacity: 0.6;
}

.particle.large {
  width: 8px;
  height: 8px;
  animation-duration: 6s;
  opacity: 0.8;
}

.particle.xlarge {
  width: 12px;
  height: 12px;
  animation-duration: 10s;
  opacity: 0.3;
}

/* Animación de flotación suave para partículas rosas */
@keyframes floatPink {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-40px) translateX(20px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) translateX(-15px) scale(0.9);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-30px) translateX(10px) scale(1.05);
    opacity: 0.5;
  }
}

/* Efecto de brillo suave en partículas */
.particle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--rosa) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0.3;
  border-radius: 50%;
}

/* Partículas que parpadean suavemente */
.particle.blink {
  animation: floatPink 7s ease-in-out infinite, blinkParticle 4s ease-in-out infinite;
}

@keyframes blinkParticle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Partículas con movimiento más dramático */
.particle.dramatic {
  animation: dramaticFloat 15s ease-in-out infinite;
}

@keyframes dramaticFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translateY(-100px) translateX(50px) rotate(90deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-50px) translateX(-80px) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-80px) translateX(30px) rotate(270deg);
    opacity: 0.9;
  }
}

/* Capa de overlay para mejor contraste */
.particles-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
  z-index: -1;
}

/* ===== ANIMACIONES AVANZADAS ===== */

/* Efecto de escritura para títulos */
.typing-animation {
  overflow: hidden;
  border-right: 3px solid var(--rosa);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--rosa) }
}

/* Efecto de neón para títulos */
.neon-text {
  color: var(--blanco);
  text-shadow: 
    0 0 5px var(--rosa),
    0 0 10px var(--rosa),
    0 0 15px var(--rosa),
    0 0 20px var(--rosa),
    0 0 35px var(--rosa),
    0 0 40px var(--rosa);
  animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 
      0 0 5px var(--rosa),
      0 0 10px var(--rosa),
      0 0 15px var(--rosa),
      0 0 20px var(--rosa),
      0 0 35px var(--rosa),
      0 0 40px var(--rosa);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

/* Animación de flotación para elementos */
.float-element {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* Efecto de onda en botones */
.wave-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wave-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.wave-button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Animación de zoom suave */
.zoom-hover {
  transition: transform 0.5s ease;
}

.zoom-hover:hover {
  transform: scale(1.05);
}

/* Efecto de brillo en tarjetas */


@keyframes glow-rotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* Animación de aparición escalonada */
.stagger-fade-in > * {
  opacity: 0;
  transform: translateY(30px);
  animation: staggerFadeIn 0.6s ease forwards;
}

.stagger-fade-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade-in > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade-in > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de máquina de escribir moderno */
.typewriter {
  overflow: hidden;
  position: relative;
}

.typewriter::after {
  content: '|';
  position: absolute;
  right: 0;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Animación de rotación 3D */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(45deg, var(--rosa), var(--cian));
}

/* Efecto de pulso para elementos importantes */
.pulse-element {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 rgba(235, 1, 125, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(235, 1, 125, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(235, 1, 125, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(235, 1, 125, 0);
  }
}

/* Animación de slide-in desde diferentes direcciones */
.slide-in-left {
  transform: translateX(-100px);
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  transform: translateX(100px);
  opacity: 0;
  animation: slideInRight 0.8s ease forwards;
}

.slide-in-bottom {
  transform: translateY(100px);
  opacity: 0;
  animation: slideInBottom 0.8s ease forwards;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInBottom {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Progress bar animada */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rosa), var(--cian));
  border-radius: 4px;
  animation: progressFill 2s ease-in-out forwards;
  transform: translateX(-100%);
}

@keyframes progressFill {
  to {
    transform: translateX(0);
  }
}

/* Efecto de texto gradiente animado */
.animated-gradient-text {
  background: linear-gradient(45deg, var(--rosa), var(--cian), var(--rosa));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Contador animado */
.counter {
  font-size: 3rem;
  font-weight: bold;
  color: var(--rosa);
}

/* Efecto de morphing para formas */
.morph-shape {
  animation: morph 8s ease-in-out infinite;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* ===== ESTILOS PARA PÁGINA DE PROYECTOS ===== */

/* Filtros */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.filter-buttons .btn {
  margin: 5px;
  transition: all 0.3s ease;
}

/* Tarjetas de proyecto - CORREGIDAS */
.project-card-inner {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(235, 1, 125, 0.3);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card-inner:hover {
  transform: translateY(-10px);
  border-color: var(--rosa);
  box-shadow: 0 15px 30px rgba(235, 1, 125, 0.2);
}

.project-media {
  position: relative;
  overflow: hidden;
  height: 250px; /* Altura fija para consistencia */
}

/* IMPORTANTE: Asegurar que los videos en tarjetas sean visibles */
.project-media .video-container,
.project-media iframe {
  height: 100% !important;
  width: 100% !important;
  display: block !important;
  visibility: visible !important;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card-inner:hover .project-media img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--rosa);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.project-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  color: var(--rosa);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.project-description {
  color: var(--blanco);
  margin-bottom: 20px;
  flex-grow: 1;
  opacity: 0.9;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  background: rgba(235, 1, 125, 0.2);
  color: var(--rosa);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(235, 1, 125, 0.3);
}

.project-features {
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--blanco);
  opacity: 0.8;
}

.feature-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* ===== ESTILOS PARA PÁGINA DE GALERÍA ===== */

.gallery-card-inner {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(235, 1, 125, 0.3);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-card-inner:hover {
  transform: translateY(-10px);
  border-color: var(--rosa);
  box-shadow: 0 15px 30px rgba(235, 1, 125, 0.2);
}

.gallery-media {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card-inner:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--rosa);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card-inner:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gallery-title {
  color: var(--rosa);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.gallery-description {
  color: var(--blanco);
  margin-bottom: 15px;
  flex-grow: 1;
  opacity: 0.9;
  font-size: 0.9rem;
}

.gallery-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.meta-item {
  color: var(--cian);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ===== ESTILOS PARA PÁGINA DE CONTACTO ===== */

.contact-info-card,
.contact-form-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(235, 1, 125, 0.3);
  height: 100%;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  border: 1px solid rgba(235, 1, 125, 0.1);
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(235, 1, 125, 0.05);
  border-color: rgba(235, 1, 125, 0.3);
  transform: translateX(10px);
}

.contact-icon {
  flex-shrink: 0;
}

.contact-details h3 {
  color: var(--rosa);
  margin-bottom: 5px;
}

.contact-details .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Media Queries para responsividad */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--negro);
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid var(--rosa);
  }
  
  .hero-section {
    padding-top: 100px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .cta-buttons .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
  
  .project-media,
  .gallery-media {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .container-fluid {
    padding: 0 10px;
  }
  
  .hero-section {
    padding-top: 80px;
    text-align: center;
  }
  
  .profile-img {
    max-width: 250px;
    margin-bottom: 30px;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  section {
    padding: 40px 0;
  }
  
  .contact-info {
    justify-content: center;
    text-align: center;
  }
  
  .footer-logo {
    max-width: 300px;
    margin-bottom: 20px;
  }
  
  .cta-section {
    padding: 50px 20px;
    margin: 30px 0;
  }
  
  .project-content,
  .gallery-content {
    padding: 15px;
  }
}

@media (max-width: 575px) {
  h1, .display-1 {
    font-size: 2rem;
  }
  
  h2, .display-2 {
    font-size: 1.75rem;
  }
  
  .fs-3 {
    font-size: 1rem;
  }
  
  .fs-4 {
    font-size: 0.9rem;
  }
  
  .social-icons img {
    width: 40px;
    height: 40px;
  }
  
  .contact-form {
    padding: 20px;
  }
  
  .btn-primary, .btn-outline-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .project-media,
  .gallery-media {
    height: 180px;
  }
}
/* ===== CORRECCIÓN DEFINITIVA PARA VIDEOS ===== */

/* Contenedor de video universal */
.video-container-fixed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-container-fixed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Para videos en tarjetas */
.card-video-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: #000;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.card-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block !important;
}

/* Override cualquier estilo que oculte videos */
iframe[src*="youtube"],
iframe[src*="youtu.be"],
iframe[src*="vimeo"],
iframe[src*="sketchfab"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

/* ===== CORRECCIÓN PARA MODALS ===== */

/* Fondo del modal */
.modal-content {
    background-color: rgba(0, 0, 0, 0.95) !important;
    border: 2px solid var(--rosa) !important;
    border-radius: 15px !important;
    color: var(--blanco) !important;
}

/* Header del modal */
.modal-header {
    background: linear-gradient(135deg, rgba(235, 1, 125, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
    border-bottom: 1px solid var(--rosa) !important;
    color: var(--rosa) !important;
}

.modal-title {
    color: var(--rosa) !important;
    font-family: "ShlopRegular", Arial, sans-serif !important;
    font-size: 1.5rem !important;
}

/* Botón de cerrar */
.btn-close {
    filter: invert(1) !important;
    opacity: 0.8 !important;
}

.btn-close:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Body del modal */
.modal-body {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 25px !important;
}

/* Textos dentro del modal */
.modal-body p,
.modal-body .fs-5,
.modal-body .fs-6 {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

/* Footer del modal */
.modal-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(235, 1, 125, 0.1) 100%) !important;
    border-top: 1px solid var(--rosa) !important;
    padding: 15px 25px !important;
}

/* Botones dentro del modal */
.modal-footer .btn {
    margin: 0 5px;
}

/* Asegurar que los videos en modals sean visibles */
.modal-body .video-container-fixed,
.modal-body .video-container {
    margin: 15px 0;
}

.modal-body iframe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Listas en modals */
.modal-body ul,
.modal-body ol {
    color: rgba(255, 255, 255, 0.9) !important;
    padding-left: 20px;
    margin: 15px 0;
}

.modal-body li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Títulos dentro del modal body */
.modal-body h4,
.modal-body h5,
.modal-body h6 {
    color: var(--cian) !important;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: "ShlopRegular", Arial, sans-serif;
}

/* Badges y tags en modals */
.modal-body .badge,
.modal-body .tech-tag {
    background: rgba(235, 1, 125, 0.2) !important;
    color: var(--rosa) !important;
    border: 1px solid rgba(235, 1, 125, 0.3) !important;
}

/* Overlay del modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
}


.modal-backdrop.show {
    opacity: 0.9 !important;
}