/* ===== RESET BÁSICO ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sora', sans-serif;
  background: #fff;
  color: #29235f;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HEADER / MENÚ ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo img {
  max-height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li {
  font-weight: 400;
  font-size: 1rem;
  padding: 8px 15px;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

nav ul li:hover {
  background-color: #6045f4;
  color: #fff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== SECCIÓN HOME ===== */
.home {
  position: relative;
  margin-top: 80px;
}

.home img {
  width: 100%;
  height: 90vh;
  object-fit: cover;
}

.home-text {
  position: absolute;
  top: 37%;
  left: 8%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 550px;
  line-height: 1.3;
}

.home-text h1 {
  font-size: 2rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 20px;
}

.home-text p {
  font-size: 1rem;
  color: #fff;
}

/* ===== SERVICIOS ===== */
#servicios {
  padding: 50px;
  background: #fff;
}

.servicios-texto {
  padding: 20px;
  text-align: center;
}

.servicios-texto h3 {
  font-size: 1.5rem;
  color: #29235f;
  margin-bottom: 20px;
  font-weight: 400;
}

.servicios-texto p {
  font-size: 1rem;
  color: #0f1417;
  margin-bottom: 30px;
  line-height: 1.5;
}

.btn-servicios {
  background: #6045f4;
  padding: 12px 25px;
  color: #fff;
  border-radius: 30px;
  font-weight: 400;
  display: inline-block;
  text-align: center;
  transition: background 0.3s;
}

.btn-servicios:hover {
  background: #53e6d4;
  color: #29235f;
}

#servicios-detalle {
  padding: 10px 50px;
  background: #fff;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.servicio-item {
  background: #ebebed;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.servicio-item:hover {
  transform: translateY(-5px);
}

.servicio-item img {
  width: 25%;
  max-height: 100px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: block;
}

.servicio-item h4 {
  font-size: 1.2rem;
  color: #29235f;
  margin-bottom: 8px;
  font-weight: 400;
}

.servicio-item p {
  font-size: 0.80rem;
  color: #0f1417;
  line-height: 1.4;
  font-weight: 400;
}

/* ===== SOBRE NOSOTROS ===== */
#sobre-nosotros {
  padding: 50px;
  background: #fff;
}

.sobre-nosotros-texto {
  padding: 20px;
  text-align: center;
}

.sobre-nosotros-texto h3 {
  font-size: 1.5rem;
  color: #29235f;
  margin-bottom: 20px;
  font-weight: 400;
}

.sobre-nosotros-texto p {
  font-size: 1rem;
  color: #0f1417;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* ===== PROYECTOS ===== */
.proyectos {
  position: relative;
  width: 100%;
  height: 40vh;
  background: url('Imagenes/04.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.proyectos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.proyectos-contenido {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

.proyectos h2 {
  font-size: 2rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: 20px;
}

.proyectos p {
  font-size: 1.1rem;
  color: #eaeaea;
  line-height: 1.6;
  font-weight: 400;
}

.proyectos-section {
  padding: 60px 40px;
  background: #f5f7fa;
  text-align: center;
}

.proyectos-section h2 {
  font-size: 20px;
  font-weight: 400;
  color: #1b2d4f;
  margin-bottom: 20px;
}

.proyectos-section p {
  font-size: 13px;
  font-weight: 400;
  color: #373737;
}
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.proyecto-item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.proyecto-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.proyecto-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.proyecto-info {
  padding: 18px 20px;
  text-align: left;
}

.proyecto-info h3 {
  font-size: 16px;
  font-weight: 400;
  color: #1b2d4f;
  margin: 0;
}

.proyecto-info p {
  margin-top: 6px;
  font-size: 12px;
  color: #4a4a4a;
}

/* ===== MODAL Y SLIDER ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ebebed;
  color: #fff;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  padding: 0px;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.modal-text p {
  font-size: 13px;
  font-weight: 400;
  color: #373737;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  line-height: 1.6;
  text-align: justify;

}
.modal-text h2 {
  font-size: 20px;
  font-weight: 400;
  color: #1b2d4f;
  margin-bottom: 20px;
  margin-top: 20px;
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 999999;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.slider {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.slide {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #ebebed;
  border-radius: 10px;
}

.slide.active {
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 12px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}

.prev:hover, .next:hover {
  background: rgba(255,255,255,0.2);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ===== SECCIÓN CONTACTO ===== */
.contacto-section {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: 60px 20px;
}

.contacto-bg {
  position: absolute;
  inset: 0;
  background: url('Imagenes/05.jpg') center/cover no-repeat;
  filter: saturate(0.95) brightness(0.65);
  transform: scale(1.03);
  z-index: 0;
}

.contacto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,12,22,0.45) 0%, rgba(9,12,22,0.55) 100%);
  z-index: 1;
}

.contacto-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  padding: 30px;
}

.contacto-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.contacto-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contacto-card {
  flex: 1 1 250px; /* más flexible y uniforme */
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  padding: 14px 18px;
  border-radius: 10px;
  color: #f0f4ff;
  box-shadow: 0 6px 18px rgba(2,6,23,0.35);
  backdrop-filter: blur(4px);
}

.contacto-card .icon {
  flex-shrink: 0;
  color: #53e6d4;
}

.contacto-card strong {
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: block;
  color: #fff;
}

.contacto-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #e6eef7;
}

.contacto-card a {
  color: #e6eef7;
}

.contacto-card a:hover {
  text-decoration: underline;
}



.btn-contacto {
  display: inline-block;
  background: #53e6d4;
  color: #09202a;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 20px;
}

/* ===== FOOTER ===== */
.footer {
  background: #0d0d0d;
  padding: 40px 20px;
  text-align: center;
  color: #ccc;

}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  width: 150px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.social-link {
  color: #ccc;
  transition: 0.3s ease;
}

.social-link:hover {
  color: #fff;
  transform: scale(1.1);
}

.social-icon {
  width: 28px;
  height: 28px;
}

.footer-text {
  font-size: 14px;
  color: #aaa;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0;
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  nav ul li {
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .home-text h1 {
    font-size: 2rem;
  }

  .home-text p {
    font-size: 1rem;
  }

  .home-text {
    left: 5%;
  }

  .servicios-grid,
  .servicios-texto {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .contacto-content h2 {
    font-size: 1.6rem;
  }

  .contacto-cards {
    gap: 12px;
  }

  .contacto-card {
    flex: 1 1 100%;
    justify-content: flex-start;
    justify-content: center;
  }

  .modal-content {
    padding: 15px;
  }
  
    .modal-text {
    display: none;
  }
}
