/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  background-color: rgba(15, 17, 23, 0.5);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Logo siempre contenido dentro de la barra --- */
.navbar-logo img {
  height: 54px;
  width: 54px;
  border-radius:100%;
  object-fit: cover;
  transform: scale(1.3);
  margin-left: 42px;
}


/* --- Links de navegación --- */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 95px;
}

.navbar-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #ffffff;
  border-bottom: 2px solid #e94560;
}

.navbar-links .fa-whatsapp {
  font-size: 1.8rem;  /* ajusta el tamaño a tu gusto */
}

/* --- Botón hamburguesa (móvil) --- */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  width: 26px;
  height: 3px;
  background-color: #e0e0e0;
  border-radius: 2px;
  transition: 0.3s;
}



/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 0;
  background-image: url('../img/Gemini_Generated_Image_cxnwqkcxnwqkcxnw.png');  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}


.hero-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 36px;
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-btn:hover {
  background-color: rgba(214, 36, 36, 0.3);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;

  background: rgba(0, 0, 0, 0.4);  /* oscurece la imagen para que el texto se lea mejor */
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 24px 40px 24px 40px;  /* arriba | derecha | abajo | izquierda */
  background-color: rgba(15, 17, 23, 0.5);
  border-radius: 10px;
  margin-left: 90px;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.2rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 700;
}






/* ===== Sección Nosotros ===== */
.nosotros {
  background-color: #0f1117;
  color: #ffffff;
  padding: 100px 80px;
  padding-bottom: 40px; 
}

.nosotros-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.nosotros-left {
  flex: 1;
}

.nosotros-tag {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 12px;
}

.nosotros-left h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.nosotros-left > p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

/* --- Tarjetas de estadísticas --- */
.nosotros-stats {
  display: flex;
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 24px 20px;
  flex: 1;
}

.stat-card h3 {
  font-size: 2.2rem;
  font-weight: 1000;
  margin-bottom: 8px;
  text-align: center;
}

.stat-card h3 span {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.stat-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  text-align: center;
}

/* --- Imagen derecha --- */
.nosotros-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nosotros-right img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  object-fit: cover;
}


/* ===== Animaciones hover Nosotros ===== */
.stat-card {
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

.nosotros-right img {
  transition: transform 0.3s ease;
}

.nosotros-right img:hover {
  transform: scale(1.05);
}

.nosotros-right {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.nosotros-right.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Animación aparecer desde abajo ===== */
.nosotros-left {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.nosotros-left.visible {
  opacity: 1;
  transform: translateY(0);
}










/* ===== Sección Servicios ===== */

.servicios {
  background-color: #0f1117;
  color: #ffffff;
  padding: 100px 80px;
  padding-bottom: 10px; 
}

.servicios-header {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.servicios-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.servicios h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.servicio-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px 24px;
  transition: transform 0.3s ease;
  
}

.servicio-card:hover {
  transform: scale(1.05);
}

.servicio-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 16px;
}

.servicio-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.servicio-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.servicios-grid {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.servicios-grid.visible {
  opacity: 1;
  transform: translateY(0);
}





/* ===== Sección Proyectos ===== */
.proyectos {
   background-color: #0f1117;
  color: #ffffff;
  padding: 100px 80px;
  
}

.proyectos h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 50px;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.proyectos-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}


.proyectos h2.visible {
  opacity: 1;
  transform: translateY(0);
}

.proyectos-slider {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.proyectos-slider.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #0f1117;
}

.slide-text {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  padding: 16px 20px;
  border-radius: 8px;
}

.slide-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.slide-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}



/* ===== Flechas del Slider ===== */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 2rem;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.galeria-btn {
  display: block;
  width: fit-content;
  margin: 80px auto 30px;  
  padding: 14px 110px;     
  background-color:  rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.galeria-btn:hover {
  background-color: rgba(228, 31, 31, 0.3);
  transform: scale(1.05);
}




/* ===== Sección Contacto ===== */
.contacto {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 80px 80px 40px;
}

.contacto-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Lado izquierdo --- */
.contacto-left {
  padding-left: 200px;  
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contacto-left.visible {
  opacity: 1;
  transform: translateY(0);
}

.contacto-left h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contacto-left > p {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  line-height: 1.5;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.contacto-info a {
  color: #c9a84c;
  text-decoration: underline;
  font-size: 0.95rem;
}

.contacto-info span {
  color: rgba(255, 255, 255, 0.4);
}

.contacto-redes {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
}

.contacto-redes a {
  color: #ffffff;
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contacto-redes a:hover {
  color: #c9a84c;
}

.contacto-legal {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.contacto-legal a {
  color: #c9a84c;
  text-decoration: none;
  font-size: 0.85rem;
}

.contacto-legal a:hover {
  text-decoration: underline;
}

/* --- Lado derecho (mapa) --- */
.contacto-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-right: 200px;  
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contacto-right.visible {
  opacity: 1;
  transform: translateY(0);
}

.mapa-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
}

.contacto-mapa {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 12px;
}

.mapa-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.mapa-overlay:hover {
  background: rgba(201, 168, 76, 0.8);
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #0f1117;
}





/* --------------------Contactanos --------------------- */

@media (max-width: 768px),(max-width: 480px)  {
  .contacto-right {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding-right: 0;
  }

  .contacto-left {
    padding-left: 0;
  }
}


/* -------------------- Proyecto --------------------- */
@media (max-width: 768px) {
  .proyectos {
    padding: 60px 24px;
  }

  .proyectos h2 {
    font-size: 1.8rem;
  }

  .proyectos-slider {
  width: 90%;
  margin: 0 auto;
}

  .slide-text {
    top: 16px;
    left: 16px;
    padding: 12px 14px;
  }

  .slide-text h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .proyectos {
    padding: 40px 16px;
  }

  .proyectos h2 {
    font-size: 1.4rem;
  }

  .slide-text {
    top: 10px;
    left: 10px;
    padding: 8px 10px;
  }

  .slide-text h3 {
    font-size: 0.85rem;
  }

  .slide-text p {
    font-size: 0.7rem;
  }

  .slider-arrow {
    font-size: 1.4rem;
    padding: 8px 12px;
  }
}





/* -------------------- Servicios --------------------- */

@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .servicios {
    padding: 60px 24px;
  }

  .servicios h2 {
    font-size: 1.8rem;
  }
    .stat-card {
  width: 90%;       
  margin: 0 auto;   
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .servicios {
    padding: 40px 16px;
  }

  .servicios h2 {
    font-size: 1.4rem;
  }

  .servicio-card {
    padding: 16px 14px;
  }

  .servicio-card h3 {
    font-size: 1rem;
  }

  .servicio-card p {
    font-size: 0.8rem;
  }

  .servicio-icon {
    font-size: 1.5rem;
  }
}


/* -------------------- Nosotros --------------------- */

@media (max-width: 768px) {
  .nosotros {
    padding: 60px 24px;
  }

  .nosotros-container {
    flex-direction: column;
  }

  .nosotros-left h2 {
    font-size: 1.5rem;
  }

  .nosotros-stats {
    flex-direction: column;
  }

  .servicio-card{
  width: 90%;       
  margin: 0 auto;   
 }

  .nosotros-right img {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .nosotros {
    padding: 40px 16px;
  }

  .nosotros-left h2 {
    font-size: 1.2rem;
  }

  .nosotros-left > p {
    font-size: 0.8rem;
  }

  .stat-card {
    padding: 14px 12px;
  }

  .stat-card h3 {
    font-size: 1.6rem;
  }

  .stat-card p {
    font-size: 0.7rem;
  }

  .nosotros-right img {
    max-width: 100%;
  }
}

/* -------------------- Hero --------------------- */

@media (max-width: 768px) {
  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    letter-spacing: 3px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 16px 16px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .hero-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
  }
}


/* -------------------- navbar --------------------- */

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }

  .navbar-toggle {
  display: flex;
  border: 2px solid #ffffff;
  border-radius: 6px;
  padding: 8px;
  z-index: 1000;
  position: relative;
}
  .navbar-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.97);
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 999;
    padding: 0 40px;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar-links li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar-links li a {
    display: block;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: none;
  }

  .navbar-links li a:hover,
  .navbar-links li a.active {
    color: #e94560;
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 14px;
  }

  .navbar-links li a {
    padding: 16px 0;
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

}
