/* =============================
   1. RESETEO GENERAL
============================= */
html {
  scroll-behavior: smooth;
}

.section-wrapper {
  scroll-margin-top: 120px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav {
  display: flex;
  gap: 15px; 
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  font-size: 1em;
}

nav a:hover {
  color: #999;
  transform: translateY(-1px); /* mueve el texto hacia arriba */
  /* font-size: 1.05em; leve agrandamiento opcional */
}

#detalleCard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 10000;
  overflow-y: auto;
}

#detalleCard .detalle-wrapper {
  max-width: 90vw;
  padding: 40px;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.cerrar-overlay:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.cerrar-overlay i {
  pointer-events: none;
}

/* TITULOS */

.home-title {
  max-width: 900px;
  margin: 0px auto 0 auto;
  text-align: center;
  overflow: hidden;
  padding: 0 20px;
}

.home-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: #1a1a1a;
  background: linear-gradient(180deg, #0299D6, #A7448A);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;  /* efecto gradiente en el texto */
  letter-spacing: 1px;
  animation: fadeInDown 1s ease forwards;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.home-title h2 {
  margin: 5px 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  color: #333;
  opacity: 0.9;
  animation: fadeInUp 1.2s ease forwards;
}

.home-title h3 {
  margin: 5px 0 0 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: #666;
  animation: fadeInUp 1.5s ease forwards;
}

/* Animaciones */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Hamburger menu styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 10001;
}

.menu-toggle span {
  background-color: #d6d6d6;
  height: 3px;
  width: 100%;
  margin: 3px 0;
  transition: all 0.3s;
}

.cta-button,
.buttonRegistro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s;
  white-space: nowrap;
}

.buttonRegistro.alt {
  border: 2px solid white;
  transition: ease-in-out 0.2s;

}

.buttonRegistro.alt:hover {
  font-size: 1.1rem;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
  text-shadow: 3px 3px 5px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
  transform: scale(1.02);
}

.cta-button {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.cta-button:hover {
  background-color: #da59b3;
}

.buttonRegistro {
  background-color: #0299D6;
  color: white;
}

.buttonRegistro:hover {
  background-color: #da59b3;
}

/* =============================
   4. CARRUSEL
============================= */
.carousel-container {
  margin: -40px auto 0px auto;
  width: 100%;
  overflow: hidden;
  position: relative;
  /* background-color: rgba(255, 255, 255, 0.5); */
  max-width: 100vw;
}

.carousel-inner {
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  position: relative;
  height: 70vh;
  max-height: 600px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 40px clamp(10px, 5vw, 80px);
  box-sizing: border-box;
}

.slide-content {
  z-index: 2;
  max-width: 100%;
  text-align: left;
}

.slide h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.slide p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.slide img {
  max-width: 40%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ver-mas {
  background-color:  rgba(167,68,138,1);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.ver-mas:hover {
  background-color:  rgba(167,68,138,1);
}

.ver-mas.gratis {
  background-color: #ff9800;
}

.ver-mas.gratis:hover {
  background-color: #e68900;
}

.carousel-btn.left {
  left: 25px;
}

.carousel-btn.right {
  right: 25px;
} 

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 200px;
  background: rgba(0, 0, 0, 0.07); 
  color: #333;
  font-size: 36px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;

  /* Aquí el efecto de difuminado vertical con alpha */
  -webkit-mask-image:
    linear-gradient(to top, transparent, black 20%, black 80%, transparent),
    linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image:
    linear-gradient(to top, transparent, black 20%, black 80%, transparent),
    linear-gradient(to right, transparent, black 20%, black 80%, transparent);

  -webkit-mask-composite: intersect;
  mask-composite: intersect;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  color: #0299D6;
  /* otros estilos hover */
}

.carousel-btn:active {
  transform: translateY(-50%) scale(1.3);
  transition: transform 0.1s ease;
}

/* =============================
   5. FUNCIONALIDADES
============================= */
.grid-funcionalidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.funcionalidad {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.funcionalidad img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
}

.funcionalidad h3 {
  font-size: 1.2em;
  margin: 20px 10px 10px;
}

.funcionalidad p {
  font-size: 0.95em;
  color: #555;
  margin: 0 15px;
}

/* =============================
   6. ¿QUIÉNES SOMOS?
============================= */
#quienes-somos {
  margin: 20px auto;
  background-color: #f0f0f0;
}

.quienes-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.quienes-container h2 {
  margin-bottom: 20px;
  font-size: 1.8em;
  color: #222;
}

.quienes-texto {
  margin: 0 20px;
  /* flex: 1 1 200px; */
}

.quienes-texto h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.quienes-texto p {
  font-size: 1.1em;
  color: #555;
  line-height: 1.6;
  margin-top: 15px;
}

.stacked {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stacked .quienes-imagen img {
  max-width: 220px;
  margin-bottom: 25px;
  border: 3px solid  rgba(167,68,138,1);
  border-radius: 12px;
  padding: 4px;
  background-color: #fff;
}

.stacked .quienes-texto {
  max-width: 800px;
}

.vision-cierre {
  margin-top: 30px;
  font-size: 1.1em;
  color: #444;
  font-style: italic;
}

.vertical-layout {
  flex-direction: column;
  align-items: flex-start;
}

/* =============================
   7. LOGOS CLIENTES
============================= */
.quienes-logos {
  margin-top: 40px;
  text-align: center;
}

.quienes-logos h3 {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #333;
}

.subtitulo-clientes {
  font-size: 1em;
  color: #666;
  margin: 10px 0;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.logos-grid img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.logos-grid > * {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px; /* o el alto deseado de la celda */
}

/* =============================
   8. FORMULARIO DE CONTACTO
============================= */
.seccion-contacto {
  padding: 60px 20px;
  background-color: #f1eaf7;
}

.contacto-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.formulario-contacto {
  flex: 1 1 400px;
  max-width: 500px;
}

.formulario-contacto h2 {
  font-size: 2em;
  margin-bottom: 10px;
  text-align: left;
  color: #222;
}

.formulario-contacto p {
  margin-bottom: 20px;
  font-size: 1em;
  color: #555;
}

.formulario-contacto label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
}

.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 12px;
  border-radius: 20px;
  border: none;
  margin-top: 5px;
  box-shadow: 0 0 6px rgba(153, 45, 174, 0.2);
  font-size: 1em;
  resize: vertical;
}

.formulario-contacto button {
  margin-top: 20px;
  background-color:  rgba(167,68,138,1);
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.formulario-contacto button:hover {
  background-color: #7a26a4;
}

.imagen-contacto {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

.imagen-contacto img {
  width: 100%;
  max-width: 350px;
  height: auto;
}

/* =============================
   9. FOOTER
============================= */
.footer-legal {
  text-align: center;
  font-size: 10px;
  color: #555;
  line-height: 1.2;
  padding: 10px;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
}

.footer-legal p {
  margin: 4px 0;
}

.footer-legal strong {
  font-weight: bold;
  color: #222;
}

/* =============================
   10. DETALLE WRAPPER
============================= */
.detalle-wrapper {
  background-color: rgba(255, 255, 255, 0.5);
  margin: 40px auto;
  padding: 40px;
  max-width: 90vw;
  border-radius: 12px;
  box-sizing: border-box;
}

.detalle-wrapper p {
  text-align: center;
}

/* =============================
   11. OVERLAY
============================= */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: none;
  z-index: 10000;
}

#overlay iframe {
  width: 80%;
  height: 80%;
  border: none;
  margin: 5% auto;
  display: block;
  background: white;
  border-radius: 8px;
}

#closeOverlay {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* =============================
   12. MEDIA QUERIES
============================= */



@media (max-width: 1150px) {
  /* .carousel-container {
    margin: 140px auto 50px auto;
  } */
  

 .section-wrapper {
  scroll-margin-top: 140px;
    
}


}

@media (max-width: 900px) {
  nav a {
    font-size: 0.85em;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(167,68,138,1);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }

  nav.active {
    display: flex;
    background-color: rgba(167,68,138,1);
    
  }

  nav a {
    font-size: 1em;
  }

  .home-title {
    margin: 0 auto 0 auto;
  }

  .header-buttons {
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    display: none;
    background-color: rgba(167,68,138,1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    padding: 10px;
    position: absolute;
    top: calc(100% + 225px); /* debajo del nav */
    left: 0;
    z-index: 999;
  }

  .header-buttons.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  /* .carousel-container {
    margin: 80px auto 25px auto;
  } */

  .slide {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    height: auto;
  }

  .slide img {
    max-width: 30%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }

  .slide-content {
    text-align: center;
  }

  .slide h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #222;
  }

.slide p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}
  
}

@media (max-width: 580px) {
  .slide {
    max-height: 630px;
    gap: 30px;
  }

  

  .funcionalidad {
    max-width: 80vw;
    margin: auto;
  }

  .funcionalidad img {
    width: 50%;
  }
}

