
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0c0c0c;
  color: #fefefe;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  background-color: #000;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 100;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding-bottom: 4px;
  transition: border-bottom 0.3s;
}

.navbar a.active,
.navbar a:hover {
  border-bottom: 2px solid #f97316;
  color: #f97316;
}

/* HERO */
.hero {
  text-align: center;
  padding: 0.1rem 1rem;
  background-color: #0c0c0c;
}

.hero img {
  display: block;
  margin: 0 auto;
  max-width: 1000px;  
  width: 100%;
  height: auto;
}

/* LOGO GIRATORIO */
.logo-gira {
  animation: voltear 10s linear infinite;
  transform-style: preserve-3d;
}

@keyframes voltear {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* ACERCA */
.acerca {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  text-align: center;
}

.acerca h2 {
  color: #f97316;
  margin-bottom: 1rem;
  letter-spacing: 1.5px;
}

.acerca p {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* SERVICIOS (lista + carrusel) */
.servicios {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.servicios h2 {
  color: #f97316;
  margin-bottom: 1.5rem;
}

.servicios ul {
  list-style: none;
  padding: 0;
}

.servicios li {
  text-align: left;
  margin: 0.5rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.servicios i {
  color: #f97316;
  font-size: 1.2rem;
}

.servicios-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
}

.servicios-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background: #f97316;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  font-size: 1rem;
}

.btn-ver-mas:hover {
  background: #d85c00;
  box-shadow: 0 4px 16px rgba(249,115,22,0.14);
  color: #fff;
}

.bx-right-arrow-alt {
  color: #fff !important;
}

/* CARRUSEL DE SERVICIOS */
.carrusel-servicios {
  width: 220px;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: grab;
}

.carrusel-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s;
  border-radius: 20px;
  background: #0c0c0c;
}

.carrusel-img.active {
  opacity: 1;
  z-index: 2;
}

/*  PORTAFOLIO */
.portafolio {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #121212;
}

.portafolio h2 {
  color: #f97316;
  margin-bottom: 2rem;
}


.portafolio .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}


.portafolio .card {
  position: relative;
  width: 100%;
  max-width: 300px;      
  aspect-ratio: 16/9;    
  background-color: #1e1e1e;
  border: 2px solid #f97316;
  border-radius: 10px;
  overflow: hidden;

}

.portafolio .card .slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.portafolio .card .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeSlides 12s infinite;
}

.portafolio .card .slide:nth-child(1) {
  animation-delay: 0s;
}
.portafolio .card .slide:nth-child(2) {
  animation-delay: 3s;
}
.portafolio .card .slide:nth-child(3) {
  animation-delay: 6s;
}
.portafolio .card .slide:nth-child(4) {
  animation-delay: 9s;
}

@keyframes fadeSlides {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  25%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}


/* CONTACTO */
.contacto {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background: #171717;
  border-radius: 15px;
  text-align: center;
}

.contacto h2 {
  color: #f97316;
}

.contacto form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contacto input,
.contacto textarea {
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  background: #222;
  color: #fff;
}

.contacto button {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.contacto button:hover {
  background: #d85c00;
}


.telefono-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.prefijo {
  background: #222;
  color: #fff;
  padding: 0 1rem;
  height: 48px;
  display: flex;
  align-items: center;
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
  border: 1px solid #333;
  border-right: none;
  box-sizing: border-box;
  white-space: nowrap;
}

.telefono-group input[type="text"] {
  border: 1px solid #333;
  border-radius: 0 8px 8px 0;
  padding: 0 1rem;
  font-size: 1rem;
  height: 48px;
  width: 100%;
  background: #222;
  color: #fff;
  box-sizing: border-box;
}


.mapa {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.mapa iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* FOOTER Y REDES SOCIALES */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.redes-sociales {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.redes-sociales a {
  font-size: 1.8rem;
  transition: transform 0.3s;
}

.redes-sociales a:hover {
  transform: scale(1.2);
}

.bxl-whatsapp {
  color: #25D366;
}

.bxl-instagram {
  color: #E1306C;
}

.bxl-facebook {
  color: #1877F2;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #181818;
  color: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  min-width: 250px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.modal-content button {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  border: none;
  background: #f97316;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* RESPONSIVIDAD GENERAL */
@media (max-width: 850px) {
  .servicios-row {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero img {
    max-width: 96vw;
  }
  .acerca, .servicios, .contacto {
    padding: 1.3rem 0.2rem;
  }
  .servicios-cards, .contacto, .acerca, .portafolio {
    max-width: 99vw;
  }
  .cards-grid, .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .carrusel-servicios {
    width: 96vw;
    height: 40vw;
    min-height: 150px;
    min-width: 180px;
    max-width: 98vw;
  }
  footer {
    font-size: 0.75rem;
    padding: 0.6rem 0;
  }
}

/* Botón hamburguesa: oculto en desktop, mostrado en móvil */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 1rem;
  z-index: 9999;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3.2px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.28s;
}


.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {

  .hamburger {
    display: flex;
    position: fixed; 
    top: 16px;
    left: 16px;
    background: #181818;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  }


  .navbar ul {
    display: none;
  }

  /* Panel lateral que contendrá los enlaces en móvil */
  .nav-links {
    display: none;             
    flex-direction: column;
    position: fixed;           
    top: 0;
    left: -100vw;                
    width: 70vw;                
    height: 100vh;            
    background-color: #000;
    padding-top: 4rem;        
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }


  .nav-links.active {
    display: flex;
    left: 0;
  }

 
  .nav-links li {
    border-bottom: 1px solid #111;
  }
  .nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2rem;
    font-weight: bold;
    font-size: 1.12rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.22s, color 0.22s;
  }
  .nav-links li a .bx {
    font-size: 1.4em;
    color: #f97316;
  }
  .nav-links li a.active,
  .nav-links li a:hover {
    background-color: #f97316;
    color: #fff;
  }
  .nav-links li a.active .bx,
  .nav-links li a:hover .bx {
    color: #fff;
  }
}
