/* 
 * Montero Digital Solutions
 * Estilos principales
 * Actualizado: Mayo 2025
 */

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Barra de navegación */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.1);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(0, 255, 100, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(0, 255, 153, 0.5);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.prompt-symbol {
  color: #00ff99;
  font-size: 1.8rem;
  font-weight: bold;
  font-family: monospace;
  animation: blink 1.5s step-end infinite;
  opacity: 0.8;
}

.logo-mds {
  color: #00ff99;
  font-size: 2.2rem;
  font-weight: 600;
  font-family: "Courier New", "Fira Code", "Consolas", monospace;
  text-shadow: 0 0 8px rgba(0, 255, 153, 0.4);
  margin-left: 2px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.3;
  }
}

/* Menú de navegación */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #00ff99;
  border-bottom-color: #00ff99;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #00ff99;
  margin: 3px 0;
  transition: 0.2s;
}

/* Botones generales */
.btn,
.btn-small,
.btn-slide {
  display: inline-block;
  background: transparent;
  transition: 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 40px;
}

.btn:hover {
  background: #00ff99;
  border-color: #00ff99;
  color: #0a0a0a;
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
}

.btn-small {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 30px;
}

.btn-small:hover {
  background: #00ff99;
  border-color: #00ff99;
  color: #0a0a0a;
}

.btn-slide {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.8rem 2rem;
  font-weight: bold;
  border-radius: 40px;
}

.btn-slide:hover {
  background: #00ff99;
  border-color: #00ff99;
  color: #0a0a0a;
}

/* Secciones */
.section {
  padding: 5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

#servicios,
#paquetes,
#trabajos {
  background: #0d0d0d;
}
#contacto {
  background: linear-gradient(180deg, #111111 0%, #121212 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  color: #ffffff;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #00ff99;
  margin: 0.5rem auto 0;
}

p,
.service-card p,
.package-card li {
  color: #cccccc;
}

/* Carrusel */
.slider {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 10%, #0a0a0a, #000c1d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  max-width: 90%;
  padding: 2rem;
}

.slide-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff !important;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ddd;
}

/* Controles del carrusel */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  transition:
    opacity 0.2s,
    color 0.2s;
  opacity: 0;
  pointer-events: none;
}

.slider-btn.prev {
  left: 20px;
}
.slider-btn.next {
  right: 20px;
}
.slider-btn:hover {
  color: #00ff99;
}
.slider-btn:active {
  color: #00ff99;
}
.slider-btn:focus {
  outline: none;
}
.slider:hover .slider-btn {
  opacity: 1;
  pointer-events: auto;
}
.slider.show-buttons .slider-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Indicadores */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.dot.active {
  background: #00ff99;
  transform: scale(1.2);
}

/* Fondos de slides */
.slide-1 {
  background-image: url("../img/hero1.png");
  background-size: cover;
  background-position: center;
}
.slide-2 {
  background-image: url("../img/hero2.png");
  background-size: cover;
  background-position: center;
}
.slide-3 {
  background-image: url("../img/hero3.png");
  background-size: cover;
  background-position: center;
}
.slide-4 {
  background-image: url("../img/slide4.jpg");
  background-size: cover;
  background-position: center;
}

/* Capa oscura para slides con texto */
.slide-2::before,
.slide-3::before,
.slide-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.slide-2 .slide-content,
.slide-3 .slide-content,
.slide-4 .slide-content {
  position: relative;
  z-index: 2;
}

.slide-1 {
  z-index: 0;
}

/* Grids */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: 0.2s;
}

.service-card:hover {
  border-color: #00ff99;
  transform: translateY(-5px);
}

.service-card h3 {
  color: #00ff99;
  margin-bottom: 1rem;
}

/* Paquetes - Carrusel horizontal */
.packages-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem 2rem 0.5rem;
  margin: 0 -1rem;
  -webkit-overflow-scrolling: touch;
}

.packages-hint {
  text-align: center;
  font-size: 1rem;
  color: #00ff99;
  opacity: 0.7;
  margin-top: -1rem;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.package-card {
  flex: 0 0 calc(33.333% - 1.4rem);
  min-width: 280px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 550px;
  justify-content: space-between;
  text-align: center;
}

.package-card .btn-small {
  margin-top: auto;
  align-self: center;
}

.package-card.featured {
  border-color: #00ff99;
  transform: scale(1.02);
}
.package-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.price {
  font-size: 1.8rem;
  color: #00ff99;
  font-weight: bold;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.package-card ul {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}
.package-card li {
  margin: 0.8rem 0;
}
.package-card li i {
  color: #00ff99;
  margin-right: 8px;
}

.packages-grid::-webkit-scrollbar {
  height: 6px;
}
.packages-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.packages-grid::-webkit-scrollbar-thumb {
  background: #00ff99;
  border-radius: 10px;
}

.package-full {
  margin-bottom: 1.5rem;
}

/* Etiqueta más vendido */
.badge {
  background: #00ff99;
  color: #0a0a0a;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  display: inline-block;
  margin: -0.8rem 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 6px rgba(0, 255, 153, 0.4);
}

.package-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.btn-toggle {
  background: transparent;
  border: none;
  color: #00ff99;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.8rem;
  font-family: monospace;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.work-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.2s;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: #00ff99;
}

.work-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid rgba(0, 255, 153, 0.3);
}

.work-card p {
  padding: 1rem;
  text-align: center;
}

/* Portafolio */
.portafolio-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  transition: 0.3s;
}

.portafolio-card:hover {
  border-color: #00ff99;
}
.portafolio-imagen {
  flex: 1;
}
.portafolio-img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 153, 0.3);
}
.portafolio-contenido {
  flex: 1;
}
.portafolio-contenido h3 {
  font-size: 1.8rem;
  color: #00ff99;
  margin-bottom: 1rem;
}
.portafolio-contenido p {
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.btn-portafolio {
  display: inline-block;
  background: transparent;
  border: 2px solid #00ff99;
  color: #00ff99;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 40px;
  transition: 0.2s;
  margin-top: 0.5rem;
}
.btn-portafolio:hover {
  background: #00ff99;
  color: #0a0a0a;
  transform: translateX(5px);
}

/* Contacto */
.contacto-simple {
  background: linear-gradient(135deg, #0a0a0a 0%, #0f0f1a 100%);
}
.contacto-subtitulo {
  text-align: center;
  color: #aaa;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.contacto-botones {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.contacto-boton {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s;
}
.contacto-boton:hover {
  border-color: #00ff99;
  transform: translateY(-2px);
}
.boton-icono {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.contacto-boton:hover .boton-icono {
  fill: #00ff99;
}
.contacto-info-simple {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1.3px solid #00ff99;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 0.9rem;
}
.info-icono {
  width: 18px;
  height: 18px;
  color: #00ff99;
}

/* Footer */
.footer {
  background: #050505;
  border-top: 2px solid rgba(0, 255, 153, 0.15);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo-text {
  font-family: "Share Tech Mono", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 1px;
  white-space: nowrap;
  text-transform: uppercase;
}

.footer-desc {
  color: #999;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-contact,
.footer-links {
  list-style: none;
}
.footer-contact li,
.footer-links li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: 0.2s;
}
.footer-links a:hover {
  color: #00ff99;
}
.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.2s;
}
.footer-social-link:hover {
  color: #00ff99;
}
.footer-social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-bottom p {
  color: #777;
  font-size: 0.75rem;
  margin: 0.3rem 0;
}
.footer-credit {
  color: #555;
}
.credit-mds {
  color: #00ff99;
  font-weight: 500;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links li {
    margin: 1rem 0;
  }
  .slide-1 {
    background-image: url("../img/hero1movil.png");
    background-size: cover;
    background-position: center;
  }
  .slide-2 .slide-content h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  .slide-2 .slide-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 0 0.8rem;
  }
  .slide-2 .slide-content strong {
    display: inline-block;
    font-size: 1.05rem;
  }
  .slide-2::before {
    background: rgba(0, 0, 0, 0.7);
  }
  .slide-2 .slide-content {
    padding: 1rem;
    max-width: 95%;
  }
  .slide-3 .slide-content,
  .slide-4 .slide-content {
    padding: 1.2rem;
  }
  .slide-3 .slide-content h2,
  .slide-4 .slide-content h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  .slide-3 .slide-content p,
  .slide-4 .slide-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .slide-3 .btn-slide,
  .slide-4 .btn-slide {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
  }
  .package-card {
    flex: 0 0 calc(85% - 1rem);
    min-width: 260px;
    min-height: 500px;
    max-width: 350px;
    margin: 0 auto;
  }
  .packages-grid {
    gap: 1.3rem;
    margin: 0;
    padding: 1rem 0.5rem;
  }
  .footer-logo-text {
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
  }
  .portafolio-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .portafolio-contenido h3 {
    font-size: 1.3rem;
  }
  .portafolio-img {
    max-width: 250px;
  }
  .contacto-botones {
    gap: 0.8rem;
  }
  .contacto-boton {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
  .boton-icono {
    width: 18px;
    height: 18px;
  }
  .contacto-info-simple {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .slider-btn:active,
  .slider-btn:focus,
  .slider-btn:hover {
    color: #fff !important;
    background: transparent !important;
  }
  .slider-btn:active {
    color: #00ff99 !important;
  }
}

@media (min-width: 701px) and (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .service-card {
    padding: 1rem;
  }
  .service-card h3 {
    font-size: 1rem;
  }
  .service-card p {
    font-size: 0.8rem;
  }
  .service-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
    text-align: center;
  }
  .slide-content h2 {
    font-size: 1.8rem;
  }
  .slide-content p {
    font-size: 1rem;
  }
  .slider-btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
  .slider-btn.prev {
    left: 10px;
  }
  .slider-btn.next {
    right: 10px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
  }
  .footer-col,
  .footer-col h4 {
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-contact li,
  .footer-links li {
    justify-content: center;
  }
  .footer-social {
    align-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer {
    padding: 2rem 1rem 1rem;
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-align: center;
  }
  .footer-logo-text {
    font-size: 0.8rem;
    white-space: normal;
  }
  .footer-desc {
    font-size: 0.7rem;
  }
  .footer-contact li,
  .footer-links li,
  .footer-social-link {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
  .footer-icon {
    width: 12px;
    height: 12px;
  }
  .footer-bottom p {
    font-size: 0.65rem;
  }
  .footer-col:last-child {
    display: block;
    margin: 0 auto;
    text-align: center;
  }
  .footer-col:last-child ul {
    padding-left: 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    text-align: center;
  }
  .package-card {
    flex: 0 0 calc(50% - 1rem);
  }
}
