/* ==== STYLE.CSS ==== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'IBM Plex Mono', monospace !important;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.6;
  color: #0D0D23;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 0;
}
.wrapper {
  padding: 2.5rem 0 1.5rem;
}


/* HERO SECTION CON FONDO OPACO Y TEXTO VISIBLE */
.hero-content {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 40px;
  overflow: hidden;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/Senda.jpg") center/cover no-repeat;
  opacity: 0.5;
  z-index: 1;
}

.hero-text-wrapper {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-bottom: 40px;
  margin-left: 20px;
  text-align: left;
}

.hero-text-wrapper .main-heading {
  color: #0D0D23;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 1;
  text-align: left;
}

.hero-text-wrapper .info-text {
  color: #0D0D23;
  font-size: 1.2rem;
  opacity: 1;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.5rem 0;
}

/* Grid Utilities */
.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-cols-3 {
  display: flex;
  flex-direction: column;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-item-1, .grid-item-2, .grid-col-item {
  padding: 1rem;
}
#servicios .grid-col-item {
  width: 100%;
}

/* Typography */
.main-heading {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0D0D23;
  font-family: 'IBM Plex Mono', monospace;
}

.main-heading span {
  color: #8B6FCB;
  font-size: 3rem;
}

.info-text {
  font-size: 1.1rem;
  color: #0D0D23;
}

.title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Header */
.header {
  top: 0;
  left: 0;
  width: 100vw; 
  min-width: 100vw;
  position: sticky;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(13, 13, 35, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: height 0.3s ease;
  margin-left: calc(-50vw + 50%); 
}
.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  right: 20px;
  left: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 60px;
}

.logo h2 {
  font-size: var(--h2-font-size);
  font-weight: 600;
  color: #0D0D23;
}


/* Navbar */
.nav_menu {
  display: flex;
  gap: 1rem;
  color: #0D0D23;
  padding-left: 20px;
  padding-right: 20px;
}

.nav_menu_list {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding-left: 20px;
  padding-right: 20px;
}

.nav_menu_item a {
  text-decoration: none;
  color: #0D0D23;
}

.nav_menu_link {
  color: #0D0D23;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav_menu_link:hover {
  color: #8B6FCB;
}

.nav_menu_link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--btn-hover-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav_menu_link:hover::after {
  transform: scaleX(1);
}

.toggle_btn, .close_btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}
.divider {
  width: 80%;
  height: 2px;
  background-color: #8B6FCB;
  margin: 1.5rem auto;
  opacity: 0.5;
}

/* Centrar los divisores */
.centered-divider {
  margin-left: auto;
  margin-right: auto;
}

/* ==== CAROUSEL STYLES ==== */
.carousel-section {
  background-color: #f9f9f9;
  padding: 4rem 0;
  font-family: 'IBM Plex Mono', monospace;
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem;
  display: flex;
  align-items: center; 
  justify-content: center;
  flex-direction: column;
}

.carousel-track {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slide {
  min-height: 260px; 
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: #0D0D23;
  color: #fff;
  font-size: 1.05rem;
  border-radius: 12px;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.carousel-slide.active {
  display: flex;
  opacity: 1;
}

.carousel-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: rgba(13, 13, 35, 0.8);
  border: 1.5px solid rgba(13, 13, 35, 0.3);
  backdrop-filter: blur(5px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background-color: #8B6FCB;
  color: white;
  border-color: #8B6FCB;
}

.prev-btn {
  left: 40px;
}

.next-btn {
  right: 40px;
}


.progress-bar {
  position: relative;
  height: 4px;
  width: 100%;
  background-color: #ddd;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-bar.animate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #8B6FCB;
  width: 100%;
  animation: progress 10s linear forwards;
}

@keyframes progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/*servicios*/
.icon svg {
  width: 40px;
  height: 40px;
  color: var(--btn-hover-color);
  margin-bottom: 1rem;
}

/* Modal */
.contacto {
  display: none;
  position: center;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
}

.contactform {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  position: center;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
}
form input, form textarea {
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 4px;
  max-width: 500px;
  width: 100%;
}

form .btn {
  padding: 0.7rem 2rem;
  background-color: #0D0D23;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  align-self: center;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

  .form-row .form-group {
    flex: 1;
  }


.btn:hover {
  background-color: #8B6FCB;
}

/* Footer */
.custom-footer {
  background-color: #0D0D23;
  padding: 2rem 0;
  text-align: center;
  color: #fff;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.footer-social a {
  margin: 0 10px;
  font-size: 1.5rem;
  color: #fff;
}
.footer-social a:hover {
  color: #8B6FCB;
}

.footer-mail {
  margin-top: 1rem;
  font-size: 1rem;
}

/* Form */
form input, form textarea {
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 4px;
  max-width: 500px;
  width: 100%;
}

form .btn {
  padding: 0.7rem 2rem;
  background-color: #0D0D23;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  align-items: center;
}

/* Servicios*/
.servicios-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.servicios-list .grid-col-item {
  width: 100%;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(13,13,35,0.07);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.servicios-list .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicios-list .icon svg {
  width: 40px;
  height: 40px;
  color: #8B6FCB;
}

.servicios-list .featured_info {
  flex: 1;
}
.servicios-list p {
  text-align: justify !important;
}

@media (max-width: 700px) {
  .servicios-list .grid-col-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 0.7rem;
    gap: 1rem;
  }
  .servicios-list .icon {
    width: 36px;
    height: 36px;
  }
  .servicios-list .icon svg {
    width: 32px;
    height: 32px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .main-heading {
    font-size: 2rem;
    text-align: left;
  }

  .main-heading span {
    font-size: 2.5rem;
  }

  .info-text {
    text-align: left;
  }

  .nav_menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: white;
    height: 50vh;
    width: 150px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    background-color: white;
    display:flex;
    padding-left: 20px;
  }

  .nav_menu.show {
    right: 0;
  }
  .nav_menu.active {
    right: 0;
  }

  .toggle_btn {
    display: block;
  }

  .close_btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav_menu_list {
    flex-direction: column;
  }

  .logo {
   flex-direction: row !important;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
  }
  
  .logo img {
    height: 50px;
    width: auto;
    display: inline-block;
  }

  .logo h2 {
    font-size: 1rem;
    margin-left: 0.5rem;
    white-space: nowrap;
  }

  .footer-social a {
    display: inline-block;
    margin: 0 8px;
  }

  form {
    width: 100%;
    padding: 1rem;
  }
    .carousel-slide {
    padding: 1.5rem 1rem;
  }

.carousel-slide p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }

  .carousel-container {
    height: auto;
    padding: 2rem 0;
  }}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .main-heading {
    font-size: 1.8rem;
    text-align: center;
  }

  .main-heading span {
    font-size: 2.2rem;
  }

  .info-text {
    font-size: 1rem;
    text-align: center;
  }

  /* Navbar móvil */
  .nav_menu {
    position: fixed;
    top: 0;
    right: -100%;
   height: 50vh;
    width: 150px;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }

  .nav_menu.show {
    right: 0;
  }

  .nav_menu_list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .toggle_btn {
    display: block;
    font-size: 1.8rem;
    margin-right: 20px;
    cursor: pointer;
  }

  .logo img {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-text-wrapper {
    margin: 0;
    max-width: 100%;
  }

  .hero-text-wrapper .main-heading {
    font-size: 1.5rem;
  }

  .hero-text-wrapper .info-text {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  /* Navbar más compacto */
  .nav_menu {
    height: 50vh;
    width: 150px;
  }

  .nav_menu_list {
    gap: 1rem;
  }

  .logo img {
    height: 40px;
  }

  .logo h2 {
    font-size: 0.9rem;
  }

  /* Carousel más compacto */
  .carousel-slide {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
}
