/* proyectos.css - Estilos específicos para la página de Proyectos */
/* Hereda estilos base de style.css */

/* Ajustes específicos para Proyectos si son necesarios */
.header {
  /* Asegurar compatibilidad si algo faltaba */
}

/* Breadcumb comienza aquí */
.breadcrumb {
  margin-top: 80px;
  padding: 2rem 0;
  background: var(--gray-800);
  border-bottom: 1px solid var(--gray-700);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  color: var(--gray-400);
}

.breadcrumb__list a {
  color: var(--gray-400);
  text-decoration: none;
}

/* Títulos y subtítulos */
.section__title {
  font-size: 3rem;
  text-align: center;
  color: white;
  margin: 4rem 0 1rem;
}

.proyectos__subtitle {
  text-align: center;
  color: var(--gray-400);
  font-size: 1.2rem;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid de proyectos */
.proyectos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.proyecto__card {
  background: var(--gray-800);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  position: relative;
}

.proyecto__card:hover {
  transform: translateY(-10px);
}

.proyecto__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 2;
}

.proyecto__badge--completado {
  background: var(--success);
  color: white;
}

.proyecto__badge--activo {
  background: var(--primary);
  color: white;
}

.proyecto__badge--desarrollo {
  background: var(--warning);
  color: white;
}

.proyecto__image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.proyecto__content {
  padding: 1.5rem;
}

.proyecto__content h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.proyecto__description {
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.proyecto__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  background: var(--gray-700);
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  font-weight: bold;
  color: #60a5fa;
}

.proyecto__features {
  list-style: none;
  margin: 1rem 0;
}

.proyecto__features li {
  color: var(--gray-300);
  margin: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.proyecto__features li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.proyecto__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-badge {
  background: var(--gray-700);
  color: var(--gray-300);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.8rem;
}

.proyecto__buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn--primary,
.btn--outline {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn--outline:hover {
  background: var(--primary);
  color: white;
}

/* CTA Final */
.proyectos__cta {
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 2px solid #60a5fa;
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.proyectos__cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.cta__icon {
  font-size: 3.5rem;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.cta__title {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 1rem;
}

.cta__text {
  color: var(--gray-300);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__buttons a {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(5px);
}

.modal__content {
  position: relative;
  background: var(--gray-800);
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--gray-700);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal__icon {
  font-size: 3rem;
  color: #60a5fa;
  text-align: center;
  margin-bottom: 1rem;
}

.modal__title {
  font-size: 1.8rem;
  color: white;
  text-align: center;
  margin-bottom: 0.5rem;
}

.modal__subtitle {
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 2rem;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--gray-300);
  font-weight: 600;
}

.form-group input {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-700);
  background: var(--gray-900);
  color: white;
}

.btn--block {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.footer--simple {
  padding: 3rem 0;
  text-align: center;
  color: var(--gray-500);
  margin-top: 4rem;
}

/* Animación rotate */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
}

.btn--whatsapp:hover {
  background: linear-gradient(135deg, #128C7E, #25D366);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Footer Profesional */
.footer {
  background: var(--gray-800);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  border-top: 1px solid var(--gray-700);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer__brand p {
  color: var(--gray-400);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: #60a5fa;
}

.footer__bottom {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  border-top: 1px solid var(--gray-700);
  padding-top: 1.5rem;
}

@media (max-width: 768px) {
  .footer__content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-float__btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float__tooltip {
  background: var(--gray-800);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float__btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .whatsapp-float__tooltip {
    display: none;
  }
}