* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  scroll-behavior: smooth;
}


/*   --- PRELOADER ---   */
/* Fondo blanco pantalla completa */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

/* Barra superior con degradado morado-azul */
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(90deg, #7f00ff, #00c6ff);
  animation: loadProgress 2.5s ease-out forwards;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Logo centrado */
.logo-container {
  text-align: center;
}

.logo {
  width: 140px;
  height: auto;
  animation: fadeIn 1.2s ease-in-out;
}

/* Animaciones */
@keyframes loadProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}





/*   --- MENU ---   */

nav {
  margin: 0 auto;
  background: white;
  height: 80px;
  width: 90%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 20px auto 0 auto;
  z-index: 1000;
  flex-wrap: wrap;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.enlace {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav ul li {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

nav ul.menu-animado li {
  animation: slideIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

nav ul.menu-animado li:nth-child(1) { animation-delay: 0.1s; }
nav ul.menu-animado li:nth-child(2) { animation-delay: 0.2s; }
nav ul.menu-animado li:nth-child(3) { animation-delay: 0.3s; }
nav ul.menu-animado li:nth-child(4) { animation-delay: 0.4s; }


#check:checked ~ ul li {
    animation: slideIn 0.4s forwards;
}

#check:checked ~ ul li:nth-child(1) { animation-delay: 0.1s; }
#check:checked ~ ul li:nth-child(2) { animation-delay: 0.2s; }
#check:checked ~ ul li:nth-child(3) { animation-delay: 0.3s; }
#check:checked ~ ul li:nth-child(4) { animation-delay: 0.4s; }

nav ul li a {
    display: inline-block;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, rgb(179, 11, 170) 25%, rgb(13, 51, 122) 73%);
    transition: width 0.5s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.checkbtn {
    font-size: 30px;
    color: black;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

@media (max-width: 952px) {
    nav ul li a {
        font-size: 16px;
    }
}

@media (max-width: 858px) {
    .checkbtn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 30px 0;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(8px);
        transition: all 0.5s ease;
        opacity: 0;
        pointer-events: none;
        z-index: 10;
    }



    #check:checked ~ ul {
        opacity: 1;
        pointer-events: auto;
    }



    nav ul li a {
        font-size: 20px;
        padding: 10px;
    }

    nav ul li a::after {
        bottom: -2px;
    }

    li a:hover,
    li a.active {
        background: linear-gradient(90deg, rgb(179, 11, 170) 25%, rgb(13, 51, 122) 73%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }

}

nav ul li a.active {
  position: relative;
  pointer-events: none; /* Evita que se pueda volver a hacer clic */
  font-weight: bold;
}



@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subrayadoActivo {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}





/*   --- HERO ---   */


.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #0b0c10, #1f1f2e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: white;
  padding: 0 20px 40px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0,178,255,0.2), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(138,43,226,0.15), transparent 50%);
  z-index: 0;
}

/* FIGURAS BASE */
.decor {
  position: absolute;
  opacity: 0.07;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.star {
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation-delay: 0s;
}

.circle {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 50%;
  animation-delay: 1s;
}

.square {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  transform: rotate(15deg);
  right: 12%;
  animation-delay: 2s;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 43px solid #ffffff;
  animation-delay: 3s;
}

.decor-1 { top: 20%; left: 15%; animation-delay: 0s; }
.decor-2 { bottom: 70%; left: 90%; animation-delay: 1s; }
.decor-3 { top: 90%; right: 7%; animation-delay: 2s; }
.decor-4 { bottom: 16%; left: 43%; animation-delay: 3s; }

.sparkle {
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border-radius: 50%;
  filter: blur(1.5px);
  position: absolute;
  opacity: 0.06;
  animation: float 8s ease-in-out infinite;
}

.sparkle-1 {
  top: 30%;
  left: 50%;
  animation-delay: 1.5s;
}

.sparkle-2 {
  bottom: 40%;
  right: 60%;
  animation-delay: 2.5s;
}

.sparkle-3 {
  top: 90%;
  right: 30%;
  animation-delay: 3.5s;
}

.sparkle-4 {
  top: 95%;
  left: 8%;
  animation-delay: 4.5s;
}

.sparkle-5 {
  bottom: 40%;
  right: 5%;
  animation-delay: 5s;
}

.hero-inner-spacer {
  height: 150px;
  width: 100%;
  flex-shrink: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  gap: 30px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: #ccc;
  font-weight: 300;
  margin-bottom: 30px;
  max-width: 90%;
}

.highlight-blue {
  color: #00B2FF;
}

.highlight-purple {
  color: #8A2BE2;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #8A2BE2;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #6f22bd;
}

.btn-secondary {
  background: #fff;
  color: #8A2BE2;
  border: 2px solid #8A2BE2;
}

.btn-secondary:hover {
  background: #8A2BE2;
  color: #fff;
}

.hero-image {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image img {
  width: 100%;
  max-width: clamp(220px, 50vw, 400px);
  height: auto;
  transition: opacity 0.5s ease;
}

.bounce {
  animation: bounce 5s ease-in-out infinite;
}

.decor, .sparkle {
  transition: top 2s ease, left 2s ease;
}

@keyframes rotateFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.decor-2,
.decor-4 {
  animation: rotateFloat 7s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-20px); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

/* Responsive layout */
@media (min-width: 769px) {
  .hero {
    padding-top: 0px; /* Reducimos el espacio superior */
    text-align: left;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 40px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-text {
    align-items: flex-start;
    text-align: left;
  }

  .hero-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem); /* Más controlado en pantallas grandes */
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem); /* Más balanceado */
    max-width: 100%;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
  }

  .buttons {
    justify-content: flex-start;
  }

  .btn-primary, .btn-secondary {
    font-size: 0.9rem;
    padding: 12px 24px;
  }
}




/*   --- SERVICIOS ---   */

section.services-section {
  background-color: #f8f8f8;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.services-background {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  margin: 0 auto;
}

.services-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #4b0082;
}

.services-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #666;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center; /* centra cada carta dentro de su celda */
  margin-bottom: 3rem;
}

.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(91, 33, 182, 0.3);
}

.card-img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  color: #330099;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  font-weight: 700;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-btn {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, #6a0dad, #3b82f6);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.card-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #6a0dad);
}

.services-cta {
  text-align: center;
  font-size: 1.2rem;
  color: #333;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.services-cta h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #4b0082;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .services-title {
    font-size: 2rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .services-subtitle, .card-desc {
    font-size: 1rem;
  }

  .services-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .card {
    width: 100%;
    max-width: 340px;
  }
}

.card {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}







/*   --- CTA ---   */

/* CTA SECTION */
.cta-section {
  padding: 4rem 2rem;
  background-color: #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  min-height: 500px;
}

.cta-left {
  flex: 0 0 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 1rem;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(to right, #007bff, #6f42c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 1rem;
  object-fit: cover;
  margin-top: 1rem;
}

.cta-subtext {
  font-size: 1rem;
  color: #ccc;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border-left: 3px solid #6f42c1;
  border-right: 3px solid #007bff;
  border-radius: 0.5rem;
  background-color: #1a1a1a;
  max-width: 700px;
}

.form-wrapper {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* FORMULARIO NEÓN - AZUL-MORADO */
.cta-form {
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #ffffff;
  color: #000;
  border: 1px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #4b2e83, #00c6ff) border-box;
  box-shadow: 0 0 25px rgba(75, 46, 131, 0.7), 0 0 40px rgba(0, 198, 255, 0.5);
  transition: box-shadow 0.5s ease;
}

.cta-form input,
.cta-form textarea,
.cta-form select {
  background-color: #f9f9f9;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  outline: none;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: #777;
}

.cta-form button {
  background: linear-gradient(90deg, #6f42c1, #007bff);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  align-self: center;
  transition: 0.3s ease;
  max-width: 200px;
}

.cta-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(111, 66, 193, 0.5);
}

/* PASOS E ICONOS */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.step .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.step.active .circle {
  background: white;
  color: #4b2e83;
  border: 2px solid #4b2e83;
}

.step.completed .circle {
  background: #4b2e83;
  color: white;
}

.step.active i,
.step.completed i {
  transform: scale(1.2);
  transition: all 2s ease;
}

.connector {
  font-size: 20px;
  color: #888;
}

/* TRANSICIONES DE PASOS */
.form-step {
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateX(30px);
  position: absolute;
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: 100%;
  z-index: 0;
}

.form-step.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  position: relative;
  z-index: 1;
}

label {
  font-weight: 600;
  margin-top: 0.5rem;
}

.privacy-msg {
  font-size: 0.875rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.buttons button {
  background: linear-gradient(135deg, #4b2e83, #5a6dee);
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.buttons button:hover {
  background: linear-gradient(135deg, #5a6dee, #4b2e83);
}

.counter {
  font-size: 0.85rem;
  color: #666;
  text-align: right;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    align-items: center;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .form-wrapper {
    max-width: 100%;
  }
}










/*   --- QUIENES SOMOS ---   */

.about-why-section {
  background-color: #f9f9fb;
  padding: 4rem 2rem;
}

.about-why-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.about-why-image {
  flex: 1 1 40%;
  text-align: center;
}

.about-why-image img {
  max-width: 100%;
  height: auto;
}

.about-why-content {
  flex: 1 1 50%;
  padding-top: 1rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
}

.tab-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.tab-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 12px; /* Semicuadrado */
  background-color: #fff;
  color: #6a0dad;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tab-btn-link:hover {
  box-shadow: 0 0 0 4px #f8f8f8,
    0 0 0 8px rgba(106, 13, 173, 0.3), 0 0 15px rgba(59, 130, 246, 0.3);
}

.tab-btn {
  background: none;
  border: 2px solid #6a0dad;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6a0dad;
  font-weight: 600;
}

.tab-btn:hover {
  background: #6a0dad;
  color: #fff;
}

.tab-btn.active {
  background: linear-gradient(135deg, #6a0dad, #3b82f6);
  color: #fff;
  border-color: transparent;
}

.tab-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tab-content h3 {
  color: #330099;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tab-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
}

.why-list strong {
  color: #330099;
}

@media (max-width: 768px) {
  .about-why-container {
    flex-direction: column;
    text-align: center;
  }

  .tab-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    flex: 1;
  }

  .tabs {
    flex-wrap: nowrap;
    justify-content: center;
  }
}







/*   --- TESTIMONIOS ---   */

* {
  box-sizing: border-box;
}

.testimonios {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.titulo {
  font-size: 2rem;
  color: #5b2c83;
  margin-bottom: 40px;
}

.contenedor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.carrusel {
  overflow: hidden;
  flex: 1;
}

.cartas {
  display: flex;
  transition: transform 0.5s ease;
  gap: 24px;
}

.carta {
  min-width: 300px;
  max-width: 300px;
  background: #f5f5ff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.carta:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(91, 44, 131, 0.2);
}

.icono {
  font-size: 24px;
  color: #5b2c83;
  margin-bottom: 10px;
}

.texto {
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
}

.usuario {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.usuario img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.usuario h4 {
  margin: 0;
  font-size: 1rem;
  color: #1a1a1a;
}

.usuario p {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
}

.estrellas {
  color: #ffc107;
}

.btn {
  background-color: #5b2c83;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background-color: #3c1a60;
}

@media (max-width: 1024px) {
  .carta {
    min-width: 260px;
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  .contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    position: relative;
    padding: 0 50px;
  }

  .carrusel {
    overflow: hidden;
    width: 100%;
  }

  .cartas {
    display: flex;
    transition: transform 0.5s ease;
  }

  .carta {
    flex: 0 0 calc(100vw - 100px); /* Ocupa casi todo el ancho visible */
    box-sizing: border-box;
    margin: 0;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
  }

  .carta .texto {
    font-size: 0.95rem;
  }

  .usuario h4 {
    font-size: 1rem;
  }

  .usuario p {
    font-size: 0.85rem;
  }

  .estrellas {
    font-size: 0.9rem;
  }

  .icono {
    font-size: 1.2rem;
  }

  .btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    z-index: 2;
    background-color: #5b2c83;
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
  }

  .btn.prev {
    left: 5px;
  }

  .btn.next {
    right: 5px;
  }
}


@media (max-width: 600px) {
  .contenedor {
    padding: 0 20px;
  }

  .cartas {
    justify-content: flex-start;
  }

  .carta {
    min-width: calc(100vw - 60px); /* Alternativa más responsiva */
    max-width: calc(100vw - 60px);
    margin: 0 auto; /* Centra la carta si sobra espacio */
  }

  .btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin: 0 5px;
  }

  .btn.prev {
    left: 0;
  }

  .btn.next {
    right: 0;
  }
}






/*   --- CLIENTES ---   */

:root {
  --azul: #007cf0;
  --morado: #4a00e0;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #222;
}

.brands-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #ffffff;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--morado); /* Solo el título con color */
}

.subtitle {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

/* Logos */
.logo-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.logo-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 80px;
}

.brand-logo {
  width: 120px;
  height: auto;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.6s ease-out;
  filter: grayscale(100%);
  cursor: pointer;
}

.brand-logo.visible {
  opacity: 1;
  transform: translateX(0);
}

.brand-logo:hover {
  transform: scale(1.12);
  filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 1024px) {
  .logo-row {
    gap: 60px;
  }

  .brand-logo {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .brand-logo {
    width: 80px;
  }

  .logo-pyramid {
    gap: 30px;
  }

  .logo-row {
    gap: 30px;
  }
}






/*   --- FOOTER ---   */

.disabled-link {
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}

.footer {
  background-color: #0d0d0d; /* negro grisáceo */
  color: #ccc;
  padding: 40px 20px 20px;
  font-family: 'Arial', sans-serif;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #7f00ff; /* Morado */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-column {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-column h2,
.footer-column h3 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.social-icons a {
  font-size: 20px;
  margin-right: 15px;
  color: #ccc;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #2b2eec; /* Azul brillante */
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
}

.footer-bottom a {
  color: #888;
}

.footer-bottom a:hover {
  color: #2b2eec;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-column {
    width: 100%;
    max-width: 500px;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
  }

  .footer-column ul {
    padding: 0;
  }

  .footer-bottom {
    font-size: 12px;
    padding: 10px 20px;
  }
}






/*   --- BOTON WHATSAPP ---   */

/* Botón flotante */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 28px; /* antes 24px */
  border-radius: 50%;
  width: 70px;     /* antes 60px */
  height: 70px;    /* antes 60px */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Chat desplegable */
.chat-popup {
  position: fixed;
  bottom: 100px;   /* ajustado por el nuevo tamaño del botón */
  right: 20px;
  width: 320px;    /* antes 300px */
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
  font-family: sans-serif;
  opacity: 0;
}

.chat-message {
  background-color: #f1f1f1;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

/* Encabezado del chat */
.chat-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
}

/* Cuerpo del chat */
.chat-body {
  padding: 15px;
}

.chat-body p {
  margin-bottom: 10px;
}

/* Enlace de WhatsApp */
.whatsapp-link {
  background-color: #25D366;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.whatsapp-link i {
  margin-right: 8px;
}

.whatsapp-link:hover {
  background-color: #1ebe5d;
}

/* Animación fade */
.whatsapp-fade-in {
  animation: fadeIn 0.4s ease forwards;
  display: flex !important;
}

.whatsapp-fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes whatsapp-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whatsapp-fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}







/* COOKIES */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #f5f7fb; /* Fondo claro */
  color: #1a1a1a; /* Texto oscuro para mejor contraste */
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cookie-banner a {
  color: #4b2e83;
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 500;
}

.cookie-banner button {
  background: linear-gradient(135deg, #4b2e83, #5a6dee);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cookie-banner button:hover {
  background: linear-gradient(135deg, #5a6dee, #4b2e83);
}

.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}
