:root {
  --bg-dark: #0d1117;
  --bg-section: #161b22;
  --bg-card: #1c2128;
  --primary-blue: #00a3ff;
  --text-light: #c9d1d9;
  --border-color: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  margin: 0;
  overflow-x: hidden;
}

/* --- Logo & Navbar --- */
.navbar {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}
.logo-centered-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo-main {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}
.logo-main span {
  color: var(--primary-blue);
}
.logo-subtitle {
  font-size: 0.6rem;
  letter-spacing: 2.8px;
  color: var(--text-light);
  opacity: 0.6;
  margin-top: 5px;
  text-transform: uppercase;
  text-align: center;
}

.navbar .nav-link {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  transition: 0.3s;
}
.btn-nav-cta {
  background: var(--primary-blue);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 5px;
  margin-left: 15px;
}

/* --- Hero & Particles (FIXED 3PX) --- */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}
.btn-hero-pill {
  padding: 15px 75px !important;
  border-radius: 50px !important;
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-weight: 600;
  background: var(--primary-blue);
  border: none;
}

/* --- Especialidades Card --- */
.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: 0.3s;
  height: 100%;
}
.solution-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 163, 255, 0.1);
}
.solution-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

/* --- Formulario & Calendario (FIXED CORNER) --- */
.contact-section {
  background: var(--bg-section);
  position: relative;
  z-index: 2;
}
.unified-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.calendar-anchor {
  position: relative;
}

.date-trigger {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
.time-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}
.time-chip.selected {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* --- Footer Premium --- */
.footer-premium {
  background: #0b0e14;
  border-top: 1px solid var(--border-color);
}
.social-links-footer a {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 15px;
  opacity: 0.6;
  transition: 0.3s;
}
.social-links-footer a:hover {
  opacity: 1;
  color: var(--primary-blue);
  transform: translateY(-5px);
  display: inline-block;
}
.copyright-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* WhatsApp & Pop-up */
.wa-premium-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 2000;
}
.wa-tooltip {
  background: #fff;
  color: #333;
  padding: 10px 15px;
  border-radius: 25px;
  margin-right: 15px;
  font-weight: 600;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}
.wa-icon-box {
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}
.wa-premium-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.popup-overlay.show {
  display: flex;
}
.popup-card {
  background: var(--bg-card);
  padding: 45px;
  border-radius: 25px;
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  max-width: 420px;
}
.icon-success-circle {
  font-size: 4rem;
  color: var(--primary-blue);
}

/* UI Helpers */
.label-tech {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}
.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 10px;
  padding: 12px;
}
.form-control:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-blue);
  color: #fff;
  box-shadow: none;
}

/* Flatpickr Dark Theme */
.flatpickr-calendar {
  background: #1c2128 !important;
  border: 1px solid var(--border-color) !important;
  color: #fff !important;
}
.flatpickr-day {
  color: #fff !important;
}
.flatpickr-day.selected {
  background: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
}

/* Animaciones */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .unified-card {
    padding: 1.5rem;
  }
  .border-start-dev {
    border-left: none;
    padding-left: 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
  }
}
:root {
  --bg-dark: #0d1117;
  --bg-card: #1c2128;
  --primary-blue: #00a3ff;
  --text-light: #c9d1d9;
  --border-color: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  margin: 0;
  overflow-x: hidden;
}

/* --- Logo Centrado & Alineado --- */
.logo-brand-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo-main {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}
.logo-main span {
  color: var(--primary-blue);
}
.logo-subtitle {
  font-size: 0.6rem;
  letter-spacing: 2.8px;
  color: var(--text-light);
  opacity: 0.6;
  margin-top: 5px;
  text-transform: uppercase;
  text-align: center;
}

/* --- Hero & Particles (PUNTOS SUTILES 3PX) --- */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* --- Especialidades Card --- */
.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  height: 100%;
  transition: 0.3s;
}
.spec-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 163, 255, 0.15);
}
.spec-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

/* --- Perfil CEO --- */
.ceo-frame {
  position: relative;
  display: inline-block;
}
.frame-accent {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-blue);
  border-radius: 16px;
  z-index: -1;
}

/* --- Footer Premium --- */
.footer-premium {
  background: #0b0e14;
  border-top: 1px solid var(--border-color);
}
.social-footer-links a {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 15px;
  opacity: 0.6;
  transition: 0.3s;
}
.social-footer-links a:hover {
  opacity: 1;
  color: var(--primary-blue);
  transform: translateY(-5px);
  display: inline-block;
}
.copyright-txt {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- UI Helpers --- */
.label-tech-blue {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}
.btn-nav-accent {
  background: var(--primary-blue);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 5px;
}

/* Flatpickr Fix (FIX CORNER ISSUE) */
.flatpickr-calendar {
  background: #1c2128 !important;
  border: 1px solid var(--border-color) !important;
  color: #fff !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}
:root {
  --bg-dark: #0d1117;
  --bg-card: #1c2128;
  --cobalt: #2962ff;
  --electric: #00a3ff;
  --cyan: #00e5ff;
  --sky: #40c4ff;
  --navy: #3d5afe;
  --tech: #00b0ff;
  --text-light: #c9d1d9;
  --border-color: rgba(255, 255, 255, 0.1);
}

/* --- Logo Centrado y Subtítulo --- */
.logo-brand-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo-main {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}
.logo-main span {
  color: var(--electric);
}
.logo-subtitle {
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: var(--text-light);
  opacity: 0.6;
  margin-top: 5px;
  text-transform: uppercase;
  text-align: center;
}

/* --- Hero --- */
.page-hero-portfolio {
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}
.text-cyan-light {
  color: var(--cyan);
}

/* --- Portfolio Cards con degradación de Azules --- */
.portfolio-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border-left: 5px solid transparent;
  transition: 0.4s ease;
  height: 100%;
}
.portfolio-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.03);
}

/* Colores de Borde */
.border-cobalt {
  border-left-color: var(--cobalt);
}
.border-electric {
  border-left-color: var(--electric);
}
.border-cyan {
  border-left-color: var(--cyan);
}
.border-sky {
  border-left-color: var(--sky);
}
.border-navy {
  border-left-color: var(--navy);
}
.border-tech {
  border-left-color: var(--tech);
}

/* Tags de Categoría */
.project-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
}
.tag-cobalt {
  background: rgba(41, 98, 255, 0.15);
  color: var(--cobalt);
}
.tag-electric {
  background: rgba(0, 163, 255, 0.15);
  color: var(--electric);
}
.tag-cyan {
  background: rgba(0, 229, 255, 0.15);
  color: var(--cyan);
}
.tag-sky {
  background: rgba(64, 196, 255, 0.15);
  color: var(--sky);
}
.tag-navy {
  background: rgba(61, 90, 254, 0.15);
  color: var(--navy);
}
.tag-tech {
  background: rgba(0, 176, 255, 0.15);
  color: var(--tech);
}

/* Tech Stack */
.tech-stack {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.tech-stack span {
  font-size: 0.7rem;
  font-family: "Roboto Mono", monospace;
  color: var(--primary-blue);
  background: rgba(0, 163, 255, 0.05);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 163, 255, 0.1);
}

/* --- Footer & WA --- */
.footer-premium {
  background: #0b0e14;
  border-top: 1px solid var(--border-color);
}
.social-icons-footer a {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 15px;
  opacity: 0.6;
  transition: 0.3s;
}
.social-icons-footer a:hover {
  opacity: 1;
  color: var(--electric);
  transform: translateY(-5px);
  display: inline-block;
}
.copyright-text-muted {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.wa-premium-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
}
.wa-icon-box {
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Flatpickr Fix */
.flatpickr-calendar {
  background: #1c2128 !important;
  border: 1px solid var(--border-color) !important;
  color: #fff !important;
}
:root {
  --bg-dark: #0d1117;
  --bg-card: #1c2128;
  --primary-blue: #00a3ff;
  --blue-cobalt: #2962ff;
  --blue-cyan: #00e5ff;
  --text-light: #c9d1d9;
  --border-color: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  margin: 0;
  overflow-x: hidden;
}

/* --- Logo Centrado Perfeccionado --- */
.logo-brand-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo-main {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}
.logo-main span {
  color: var(--primary-blue);
}
.logo-subtitle {
  font-size: 0.55rem;
  letter-spacing: 2.8px;
  color: var(--text-light);
  opacity: 0.6;
  margin-top: 5px;
  text-transform: uppercase;
  text-align: center;
}

/* --- Hero y Partículas Minimalistas --- */
.page-hero-small {
  position: relative;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.3;
}

/* --- Tarjetas Estilo Especialidades --- */
.spec-card-v2 {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border-top: 4px solid var(--primary-blue);
  transition: 0.3s ease;
}
.spec-card-v2:hover {
  transform: translateY(-8px);
  border-color: var(--primary-blue);
}
.spec-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  display: block;
}

.border-cobalt {
  border-top-color: var(--blue-cobalt);
}
.border-electric {
  border-top-color: var(--primary-blue);
}
.border-cyan {
  border-top-color: var(--blue-cyan);
}

/* --- Botones --- */
.btn-nav-cta {
  background: var(--primary-blue);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 5px;
  margin-left: 15px;
}

.btn-card-full {
  width: 100%;
  padding: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  background-color: var(--primary-blue) !important;
  border: none !important;
  border-radius: 10px;
  transition: 0.3s;
}
.btn-card-full:hover {
  transform: scale(1.02);
  filter: brightness(1.2);
}

/* --- Texto Legible --- */
.text-light-gray {
  color: #c9d1d9 !important;
  line-height: 1.7;
}
.highlight-quote {
  border-left: 3px solid var(--primary-blue);
  padding-left: 1.5rem;
  font-style: italic;
  color: #fff;
  margin-top: 2rem;
}

/* Footer y Social */
.footer-premium {
  background: #0b0e14;
  border-top: 1px solid var(--border-color);
}
.social-footer a {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 15px;
  opacity: 0.6;
  transition: 0.3s;
}
.social-footer a:hover {
  opacity: 1;
  color: var(--primary-blue);
}
/* Botón de cerrar Pop-up mejorado */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: var(--primary-blue); /* Fondo muy sutil */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6); /* Color suave por defecto */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.close-btn:hover {
  background: var(--primary-blue); /* Cambia al azul de la marca */
  color: #fff;
  transform: rotate(90deg); /* Efecto de giro elegante */
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgb(248, 59, 25);
}
/* --- Feedback Visual de Validación --- */

/* Estado cuando el campo es válido */
.form-control.is-valid-custom {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.2);
  background-color: rgba(0, 163, 255, 0.02) !important;
}

/* Estado cuando el campo aún no es válido (opcional, borde sutil) */
.form-control:focus {
  border-color: rgba(0, 163, 255, 0.5) !important;
  box-shadow: 0 0 8px rgba(0, 163, 255, 0.1);
  outline: none;
}

/* Transición suave para los cambios de color */
.form-control {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease !important;
}
/* --- Ajustes Menú Mobile (Hamburguesa) --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-dark);
        padding: 2rem 1rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center; /* Centra el texto de los links */
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center; /* Alinea los items en el eje central */
    }

    .nav-item {
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-link {
        font-size: 1.1rem;
        letter-spacing: 2px;
        padding: 10px 0 !important;
    }

    /* Ajuste del botón Contacto para que no ocupe todo el ancho si no es necesario */
    .btn-cta-nav {
        width: 80%; 
        max-width: 300px;
        margin: 1.5rem auto !important;
        display: inline-block;
        padding: 12px !important;
    }
}