/* Variables de color - Modo oscuro fijo */
:root {
  --primary: #6e48aa;
  --primary-light: #9d50bb;
  --secondary: #37b6f6;
  --accent: #e84545;
  --dark: #f5f5fa;
  --darker: #e1e1e8;
  --light: #1e1e2c;
  --gray: #2d2d3a;
  --transition: all 0.3s ease;
}


/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden !important;
  transition: none;
  padding-top: 0; /* El navbar fijo se encarga del espacio */
}

.highlight {
  color: var(--primary);
  font-weight: 700;
}

/* Asegurar que el body tenga scroll suave */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background-color: rgba(30, 30, 44, 0.95);
  padding: 20px 0;
  transition: var(--transition);
  width: 100%;
  z-index: 1030;
  position: fixed;
  top: 0;
  left: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}


.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 8px 0;
  margin: 0;
}

.navbar-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: brightness(1.1) contrast(1.1);
  border-radius: 8px;
}

.navbar-logo-img:hover {
  transform: scale(1.05);
  filter: brightness(1.2) contrast(1.2);
}

.navbar-logo {
    width: 38px;
    height: 38px;
    object-fit: cover;
   
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}
.logo-web {
    color: var(--secondary);
    font-weight: 700;
}
.logo-pole {
    color: #ff9800; /* naranja */
    font-weight: 700;
}
@media (max-width: 576px) {
    .navbar-logo {
        width: 30px;
        height: 30px;
    }
}

.navbar-dark .navbar-brand .logo-pole {
  color: white;
}

.slogan {
  font-size: 0.6rem;
  letter-spacing: 1px;
  margin-top: -5px;
}

.nav-link {
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.social-icons a {
  color: var(--light);
  margin-left: 15px;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Video de fondo */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  /* Mejoras para móviles */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Imagen de respaldo */
.bg-image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  display: none; /* Se muestra solo si el video no se puede reproducir */
  animation: slowZoom 20s ease-in-out infinite alternate;
}

#bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 30, 44, 0.2) 0%, rgba(110, 72, 170, 0.1) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding-top: 0;
}

.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.profile-pic:hover {
  transform: scale(1.05);
  border-color: var(--secondary);
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(55, 182, 246, 0.4);
}

.cta-button:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(110, 72, 170, 0.5);
}

/* Sección Proyectos */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

.project-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(102, 126, 234, 0.1);
  backdrop-filter: blur(10px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #ffd700 100%);
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.project-img {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  z-index: 1;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: brightness(0.9) contrast(1.1);
}

.project-card:hover .project-img img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1) contrast(1.2);
}

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: 2;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.project-card:hover .project-badge {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.project-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #667eea;
  font-weight: 700;
  position: relative;
}

.project-info h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

.project-info p {
  color: #4a5568;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
  font-size: 0.95rem;
}

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

.tech-tags span {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.tech-tags span:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.project-buttons {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn-details {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.3);
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

.btn-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-details:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-details:hover::before {
  left: 0;
}

.btn-visit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-grow: 1;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-visit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-visit:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-visit:hover::before {
  left: 0;
}

/* Sección Sobre Mí */
.bg-light {
  background-color: var(--gray) !important;
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.skill-item i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-right: 10px;
  width: 40px;
  text-align: center;
}

.skill-item span {
  font-weight: 500;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0;
  z-index: 1;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #ffd700 100%);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.timeline-item {
  padding: 20px 50px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 4px solid #ffffff;
  border-radius: 50%;
  top: 25px;
  right: -10px;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  z-index: 2;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-date {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  position: absolute;
  top: 15px;
  right: -120px;
  text-align: center;
  width: 140px;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.timeline-item:nth-child(even) .timeline-date {
  left: -120px;
}

.timeline-content {
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #ffd700 100%);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
  margin-bottom: 12px;
  color: #667eea;
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
}

.timeline-content p {
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* Estilos adicionales para la sección de trayectoria */
.timeline-section {
  background: transparent;
  padding: 60px 0;
  border-radius: 20px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

/* Video de fondo para la trayectoria */
.timeline-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  border-radius: 20px;
}

.timeline-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  /* Mejoras para móviles */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.timeline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 30, 44, 0.3) 0%, rgba(110, 72, 170, 0.2) 100%);
  z-index: -1;
  border-radius: 20px;
}

.timeline-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.timeline-section::before {
  display: none;
}

.timeline-section h3 {
  color: #667eea;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.timeline-section h3::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #ffd700 100%);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Sección Contacto */
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control {
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(110, 72, 170, 0.25);
}

textarea.form-control {
  height: auto;
  resize: none;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

/* Botón volver arriba */
.btn-back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.btn-back-top.active {
  opacity: 1;
  visibility: visible;
  bottom: 100px;
}

.btn-back-top:hover {
  background: var(--primary-light);
}

/* Modal WhatsApp */
.whatsapp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.whatsapp-modal.active {
  opacity: 1;
  visibility: visible;
}

.whatsapp-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(37, 211, 102, 0.1);
  overflow: hidden;
}

.whatsapp-modal.active .whatsapp-modal-content {
  transform: scale(1);
}

.whatsapp-modal-header {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatsapp-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.whatsapp-modal-header h3 i {
  margin-right: 10px;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.whatsapp-modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group textarea:focus {
  outline: none;
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
  background: white;
}

.whatsapp-modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.btn-cancel {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-send {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Modal de confirmación */
.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.confirmation-modal.active {
  opacity: 1;
  visibility: visible;
}

.confirmation-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(37, 211, 102, 0.1);
}

.confirmation-modal.active .confirmation-modal-content {
  transform: scale(1);
}

.confirmation-icon {
  font-size: 4rem;
  color: #25D366;
  margin-bottom: 20px;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.confirmation-modal-content h3 {
  color: #25D366;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
}

.confirmation-modal-content p {
  color: #6c757d;
  margin-bottom: 30px;
  line-height: 1.6;
}

.confirmation-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cancel-confirm {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel-confirm:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-continue-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-continue-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(110, 72, 170, 0.1) 0%, rgba(55, 182, 246, 0.1) 100%);
  pointer-events: none;
}

.footer-brand {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.footer-brand .logo-web {
  font-size: 1.8rem;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-brand .logo-pole {
  font-size: 1.8rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 5px;
  color: #f0f0f0;
}

.social-icons {
  display: flex;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.social-icons a {
  color: #ffffff;
  font-size: 1.3rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
  color: #ffd700;
  transform: translateY(-3px) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Estilos adicionales para el texto del footer */
footer p {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

footer strong {
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Botón volver arriba */
.btn-back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.btn-back-top.active {
  opacity: 1;
  visibility: visible;
  bottom: 100px;
}

.btn-back-top:hover {
  background: var(--primary-light);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section h1 {
      font-size: 2.8rem;
  }
  
  .profile-pic {
      width: 250px;
      height: 250px;
      margin-top: 30px;
  }
  
  .timeline::before {
      left: 30px;
  }
  
  .timeline-item {
      width: 100%;
      padding-left: 70px;
      padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
      left: 0;
  }
  
  .timeline-date {
      left: 0 !important;
      right: auto;
      top: 0;
  }
  
  /* Botones flotantes para pantallas medianas */
  .whatsapp-float {
      bottom: 28px;
      right: 28px;
      width: 60px;
      height: 60px;
      font-size: 1.8rem;
  }
  
  .btn-back-top {
      bottom: 28px;
      right: 28px;
      width: 50px;
      height: 50px;
      font-size: 1.2rem;
  }
  
  .btn-back-top.active {
      bottom: 98px;
  }
  
  /* Modales responsive */
  .whatsapp-modal-content {
      width: 95%;
      max-width: 450px;
  }
  
  .confirmation-modal-content {
      width: 95%;
      max-width: 400px;
      padding: 30px;
  }
}

/* Pantallas muy grandes */
@media (min-width: 1200px) {
  .whatsapp-float {
      bottom: 35px;
      right: 35px;
      width: 65px;
      height: 65px;
      font-size: 2rem;
  }
  
  .btn-back-top {
      bottom: 35px;
      right: 35px;
      width: 55px;
      height: 55px;
      font-size: 1.3rem;
  }
  
  .btn-back-top.active {
      bottom: 110px;
  }
}

/* Mejoras de accesibilidad táctil */
@media (hover: none) and (pointer: coarse) {
  .whatsapp-float {
      min-width: 44px;
      min-height: 44px;
      padding: 8px;
  }
  
  .btn-back-top {
      min-width: 44px;
      min-height: 44px;
      padding: 8px;
  }
  
  .whatsapp-float:hover {
      transform: none;
  }
  
  .btn-back-top:hover {
      transform: none;
  }
  
  .whatsapp-float:active {
      transform: scale(0.95);
  }
  
  .btn-back-top:active {
      transform: scale(0.95);
  }
}

@media (max-width: 768px) {
  .hero-section {
      min-height: 600px;
  }
  
  /* Mejoras para videos en móviles */
  .bg-video,
  .timeline-video {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
      will-change: transform;
  }
  
  .hero-section h1 {
      font-size: 2.2rem;
  }
  
  .subtitle {
      font-size: 1.2rem;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .navbar-brand {
      font-size: 1.5rem;
  }
  
  .navbar-logo-img {
      height: 85px;
  }
  
  .social-icons {
      justify-content: center;
      margin-top: 15px;
  }
  
  footer .col-md-4 {
      text-align: center !important;
      margin-bottom: 20px;
  }
  
  /* Botones flotantes para tablets */
  .whatsapp-float {
      bottom: 25px;
      right: 25px;
      width: 58px;
      height: 58px;
      font-size: 1.7rem;
  }
  
  .btn-back-top {
      bottom: 25px;
      right: 25px;
      width: 48px;
      height: 48px;
      font-size: 1.1rem;
  }
  
  .btn-back-top.active {
      bottom: 93px;
  }
  
  /* Navbar responsive */
  .navbar-nav {
      text-align: center;
      margin-top: 15px;
  }
  
  .navbar-nav .nav-link {
      padding: 10px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
      border-bottom: none;
  }
  
  /* Hero section responsive */
  .hero-content {
      padding-top: 120px;
  }
  
  .profile-pic {
      width: 200px;
      height: 200px;
      margin-top: 20px;
  }
  
  /* Proyectos responsive */
  .project-card {
      margin-bottom: 20px;
  }
  
  .project-buttons {
      flex-direction: column;
      gap: 10px;
  }
  
  .btn-details, .btn-visit {
      width: 100%;
      text-align: center;
  }
  
  /* Timeline responsive */
  .timeline-section {
      padding: 40px 0;
  }
  
  .timeline-item {
      padding: 15px 40px;
  }
  
  .timeline-content {
      padding: 20px;
  }
  
  /* Modales responsive */
  .whatsapp-modal-header {
      padding: 20px;
  }
  
  .whatsapp-modal-header h3 {
      font-size: 1.1rem;
  }
  
  .whatsapp-modal-body {
      padding: 20px;
  }
  
  .whatsapp-modal-buttons {
      flex-direction: column;
      gap: 10px;
  }
  
  .btn-cancel, .btn-send {
      width: 100%;
  }
  
  .confirmation-buttons {
      flex-direction: column;
      gap: 10px;
  }
  
  .btn-cancel-confirm, .btn-continue-whatsapp {
      width: 100%;
  }
}

@media (max-width: 576px) {
  /* Hero section móvil */
  .hero-section {
      min-height: 500px;
  }
  
  .hero-section h1 {
      font-size: 1.8rem;
      line-height: 1.3;
  }
  
  .subtitle {
      font-size: 1rem;
  }
  
  .profile-pic {
      width: 180px;
      height: 180px;
      margin-top: 15px;
  }
  
  .hero-content {
      padding-top: 100px;
  }
  
  /* Navbar móvil */
  .navbar-brand {
      font-size: 1.3rem;
  }
  
  .navbar-logo-img {
      height: 70px;
  }
  
  .navbar-toggler {
      border: none;
      padding: 8px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      transition: var(--transition);
  }
  
  .navbar-toggler:focus {
      box-shadow: none;
      background: rgba(255, 255, 255, 0.2);
  }
  
  .navbar-toggler:hover {
      background: rgba(255, 255, 255, 0.15);
  }
  
  /* Secciones móvil */
  .section-title {
      font-size: 1.8rem;
  }
  
  .py-5 {
      padding: 3rem 0 !important;
  }
  
  /* Proyectos móvil */
  .project-card {
      margin-bottom: 15px;
  }
  
  .project-info {
      padding: 20px;
  }
  
  .project-info h3 {
      font-size: 1.2rem;
  }
  
  .project-buttons {
      flex-direction: column;
      gap: 8px;
  }
  
  .btn-details, .btn-visit {
      width: 100%;
      padding: 10px 15px;
      font-size: 0.9rem;
  }
  
  /* Skills móvil */
  .skill-item {
      margin-bottom: 10px;
  }
  
  .skill-item i {
      font-size: 1.5rem;
      width: 35px;
  }
  
  .skill-item span {
      font-size: 0.9rem;
  }
  
  /* Timeline móvil */
  .timeline-section {
      padding: 30px 0;
  }
  
  .timeline-section h3 {
      font-size: 1.5rem;
  }
  
  .timeline-item {
    padding: 15px 60px 15px 70px;
    margin-bottom: 25px;
    position: relative;
  }
  
  .timeline-date {
    font-size: 0.85rem;
    padding: 6px 15px;
    width: 130px;
    left: -65px !important;
    right: auto !important;
    top: 10px;
    position: absolute;
    z-index: 3;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
  }
  
  .timeline-content {
    padding: 20px;
    margin-top: 10px;
  }
  
  .timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  /* Contacto móvil */
  .contact-form {
      padding: 20px;
  }
  
  .form-control {
      height: 45px;
      font-size: 0.9rem;
  }
  
  textarea.form-control {
      height: 100px;
  }
  
  /* Footer móvil */
  .footer-brand .logo-web,
  .footer-brand .logo-pole {
      font-size: 1.5rem;
  }
  
  .social-icons a {
      width: 40px;
      height: 40px;
      font-size: 1.1rem;
  }
  
  /* Botones flotantes para móviles pequeños */
  .whatsapp-float {
      bottom: 16px !important;
      right: 16px !important;
      width: 48px !important;
      height: 48px !important;
      font-size: 1.7rem !important;
  }
  
  .btn-back-top {
      bottom: 72px !important;
      right: 16px !important;
      width: 40px !important;
      height: 40px !important;
      font-size: 1.2rem !important;
  }
  
  .navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .btn-back-top.active {
      bottom: 93px;
  }
  
  /* Modales móvil */
  .whatsapp-modal-content {
      width: 98%;
      max-width: none;
      margin: 10px;
  }
  
  .whatsapp-modal-header {
      padding: 15px;
  }
  
  .whatsapp-modal-header h3 {
      font-size: 1rem;
  }
  
  .whatsapp-modal-body {
      padding: 15px;
  }
  
  .form-group textarea {
      padding: 12px;
      font-size: 0.9rem;
  }
  
  .confirmation-modal-content {
      width: 98%;
      max-width: none;
      margin: 10px;
      padding: 25px;
  }
  
  .confirmation-icon {
      font-size: 3rem;
  }
  
  .confirmation-modal-content h3 {
      font-size: 1.3rem;
  }
  
  .confirmation-modal-content p {
      font-size: 0.9rem;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
  .hero-section h1 {
      font-size: 1.6rem;
  }
  
  .navbar-logo-img {
      height: 65px;
  }
  
  .subtitle {
      font-size: 0.9rem;
  }
  
  .profile-pic {
      width: 150px;
      height: 150px;
  }
  
  .section-title {
      font-size: 1.6rem;
  }
  
  .project-info h3 {
      font-size: 1.1rem;
  }
  
  .timeline-content h4 {
      font-size: 0.9rem;
  }
  
  .timeline-date {
      width: 110px;
      font-size: 0.8rem;
      left: -55px !important;
      right: auto !important;
      top: 8px;
      padding: 5px 10px;
      white-space: nowrap;
      overflow: visible;
      text-align: center;
      z-index: 5;
  }
  
  .whatsapp-float {
      width: 50px;
      height: 50px;
      font-size: 1.4rem;
  }
  
  .btn-back-top {
      width: 40px;
      height: 40px;
      font-size: 0.9rem;
  }
}

/* Pantallas extremadamente pequeñas */
@media (max-width: 360px) {
  .timeline-item {
      padding: 15px 45px 15px 55px;
  }
  
  .timeline-date {
      width: 100px;
      font-size: 0.75rem;
      left: -50px !important;
      padding: 4px 8px;
      top: 6px;
  }
  
  .timeline-content {
      padding: 12px;
      margin-top: 6px;
  }
  
  .timeline-content h4 {
      font-size: 0.95rem;
  }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
      min-height: 400px;
  }
  
  .hero-content {
      padding-top: 80px;
  }
  
  .profile-pic {
      width: 120px;
      height: 120px;
  }
  
  .py-5 {
      padding: 2rem 0 !important;
  }
  
  .timeline-section {
      padding: 20px 0;
  }
}

/* Pantallas ultra anchas */
@media (min-width: 1400px) {
  .container {
      max-width: 1320px;
  }
  
  .hero-section h1 {
      font-size: 4rem;
  }
  
  .subtitle {
      font-size: 1.8rem;
  }
  
  .profile-pic {
      width: 350px;
      height: 350px;
  }
  
  .section-title {
      font-size: 3rem;
  }
  
  .project-card {
      margin-bottom: 30px;
  }
}

/* Ajuste para evitar overflow horizontal en contenedores */
.container, .container-fluid {
  max-width: 100vw;
  overflow-x: hidden;
}