/**
 * Sistema de Gestión para Clínicas - Estilos
 * Mobile-First Approach
 * Paleta de colores consistente con index.html
 */

/* ============================================
   BASE STYLES - MOBILE FIRST (320px - 999px)
   ============================================ */

* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Times New Roman", Times, serif, "Gill Sans",
    "Gill Sans MT";
}

body {
  background: linear-gradient(
      rgba(151, 192, 204, 0.5),
      rgba(100, 133, 218, 0.582)
    ),
    url(../imginicio/fondo3.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  box-sizing: border-box;
}

/* Barra de desplazamiento */
body::-webkit-scrollbar {
  width: 10px;
  background-color: rgba(13, 96, 198, 0.62);
}

body::-webkit-scrollbar-thumb {
  background-color: rgb(34, 112, 202);
  border-radius: 5px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-clinicas {
  margin: 5vh 2vw 5vh 2vw;
  padding: 8vh 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(
    330deg,
    rgba(81, 201, 241, 0.483),
    rgba(129, 151, 207, 0.281)
  );
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 0px 15px -1px rgb(2, 47, 99);
}

.hero-title {
  color: #ffffff;
  font-size: 200%;
  margin-bottom: 3vh;
  text-shadow: 2px 2px 5px rgb(6, 6, 6);
  line-height: 1.3;
}

.hero-subtitle {
  color: #ffffff;
  font-size: 120%;
  margin-bottom: 4vh;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-demo {
  padding: 15px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 110%;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  min-width: 200px;
  text-align: center;
}

.btn-primary {
  background-color: rgb(34, 112, 202);
  color: #fff;
  border: 2px solid rgb(34, 112, 202);
}

.btn-primary:hover {
  background-color: rgba(8, 144, 185, 0.795);
  border-color: rgb(77, 118, 231);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 112, 202, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ============================================
   CARACTERÍSTICAS SECTION
   ============================================ */

.caracteristicas-section {
  margin: 5vh 2vw;
  padding: 4vh 2vw;
}

.title {
  text-align: center;
  color: #ffffff;
  font-size: 180%;
  margin-bottom: 4vh;
  text-shadow: 2px 2px 5px rgb(6, 6, 6);
}

.subtitle-planes {
  font-size: 120%;
  margin-top: -2vh;
  margin-bottom: 4vh;
}

.caracteristicas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3vh;
}

.caracteristica-card {
  background: linear-gradient(
    330deg,
    rgba(81, 201, 241, 0.483),
    rgba(129, 151, 207, 0.281)
  );
  padding: 3vh 4vw;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 0px 15px -1px rgb(2, 47, 99);
}

.caracteristica-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 25px rgba(34, 112, 202, 0.4);
}

.caracteristica-icon {
  font-size: 300%;
  margin-bottom: 2vh;
}

.caracteristica-card h3 {
  color: #ffffff;
  font-size: 130%;
  margin-bottom: 2vh;
}

.caracteristica-card p {
  color: #ffffff;
  line-height: 1.6;
  font-size: 100%;
}

/* ============================================
   SISTEMA PERSONALIZADO
   ============================================ */

.sistema-personalizado {
  margin: 5vh 2vw;
  padding: 4vh 4vw;
  background: linear-gradient(
    330deg,
    rgba(81, 201, 241, 0.483),
    rgba(129, 151, 207, 0.281)
  );
  border-radius: 10px;
  box-shadow: 0px 0px 15px -1px rgb(2, 47, 99);
}

.personalizado-content {
  color: #ffffff;
}

.personalizado-text p {
  margin: 2vh 0;
  line-height: 1.7;
  font-size: 110%;
}

.personalizado-list {
  list-style: none;
  margin: 3vh 0;
  padding: 0;
}

.personalizado-list li {
  margin: 1.5vh 0;
  padding-left: 1em;
  font-size: 110%;
  line-height: 1.5;
}

.personalizado-nota {
  margin-top: 3vh;
  padding: 2vh;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid rgb(34, 112, 202);
  border-radius: 5px;
}

/* ============================================
   CASOS DE ÉXITO
   ============================================ */

.casos-exito-section {
  margin: 3vh 0 5vh 0;
  overflow: hidden;
  padding: 2vh 0;
}

.casos-slider {
  display: flex;
  gap: 2rem;
  animation: scroll-horizontal 30s linear infinite;
  width: max-content;
}

.caso-item {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 1.5vh 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.caso-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   DEMO SECTION
   ============================================ */

.demo-section {
  margin: 5vh 2vw;
  padding: 5vh 4vw;
  background: linear-gradient(
    330deg,
    rgba(81, 201, 241, 0.683),
    rgba(129, 151, 207, 0.481)
  );
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 0px 15px -1px rgb(2, 47, 99);
}

.demo-text {
  color: #ffffff;
  font-size: 115%;
  line-height: 1.7;
  margin: 3vh 0;
}

.btn-demo {
  background-color: rgb(34, 112, 202);
  color: #fff;
  margin-top: 2vh;
}

.btn-demo:hover {
  background-color: rgba(8, 144, 185, 0.795);
  border-color: rgb(77, 118, 231);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 112, 202, 0.4);
}

/* ============================================
   PLANES DE PAGO
   ============================================ */

.planes-clinicas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 4vh 3vw 5vh 3vw;
}

.plan-card {
  background: linear-gradient(
    330deg,
    rgba(81, 201, 241, 0.483),
    rgba(129, 151, 207, 0.281)
  );
  border-radius: 10px;
  padding: 4vh 4vw;
  text-align: center;
  box-shadow: 0px 0px 15px -1px rgb(2, 47, 99);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 30px rgba(34, 112, 202, 0.4);
}

.plan-destacado {
  border: 3px solid rgb(34, 112, 202);
  transform: scale(1.02);
}

.badge-destacado {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgb(34, 112, 202), rgb(8, 144, 185));
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 95%;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(34, 112, 202, 0.5);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

.plan-card h1 {
  color: #ffffff;
  font-size: 180%;
  margin-bottom: 2vh;
}

.precio-plan {
  color: #ffffff;
  font-size: 160%;
  margin: 3vh 0;
  font-weight: bold;
}

.precio-plan small {
  font-size: 60%;
  font-weight: normal;
  display: block;
  margin-top: 1vh;
}

.precio-plan .desde {
  font-size: 50%;
  font-weight: normal;
  display: inline;
}

.monto-plan {
  color: #fff;
  font-size: 120%;
}

.precio-medida {
  font-size: 140%;
}

.plan-card .packdetalle {
  list-style: none;
  padding: 0;
  margin: 3vh 0;
  text-align: left;
}

.plan-card .packdetalle li {
  color: #ffffff;
  padding: 1.5vh 2vw;
  margin: 1vh 0;
  font-size: 105%;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.plan-ideal {
  background: rgba(34, 112, 202, 0.3) !important;
  font-weight: bold;
  text-align: center !important;
  margin-top: 2vh !important;
}

.botones-plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2vh 0;
}

.btn-demo-gratis,
.btn-solicitar-demo,
.adquirir {
  display: inline-block;
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 105%;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-demo-gratis {
  background-color: rgb(34, 112, 202);
  border: 2px solid rgb(34, 112, 202);
}

.btn-demo-gratis:hover {
  background-color: rgba(8, 144, 185, 0.795);
  border-color: rgb(77, 118, 231);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 112, 202, 0.4);
}

.btn-solicitar-demo {
  background-color: transparent;
  border: 2px solid #fff;
}

.btn-solicitar-demo:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.adquirir {
  background-color: rgb(34, 112, 202);
  border: 2px solid rgb(34, 112, 202);
}

.adquirir:hover {
  background-color: rgba(8, 144, 185, 0.795);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 112, 202, 0.4);
}

/* ============================================
   TESTIMONIOS
   ============================================ */

.testimonios-section {
  margin: 5vh 0 4vh 0;
  padding: 2vh 0;
  overflow: hidden;
}

.testimonios-section .title {
  margin-bottom: 3vh;
}

.testimonios-slider {
  display: flex;
  gap: 3rem;
  animation: scroll-horizontal 40s linear infinite;
  width: max-content;
  padding: 1vh 0;
}

.testimonios-slider:hover {
  animation-play-state: paused;
}

.testimonio-card {
  flex-shrink: 0;
  width: 400px;
  min-height: 140px;
  background: linear-gradient(
    330deg,
    rgba(81, 201, 241, 0.583),
    rgba(129, 151, 207, 0.381)
  );
  border-radius: 15px;
  padding: 3vh 3vw;
  text-align: center;
  box-shadow: 0px 5px 25px rgba(34, 112, 202, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonio-quote {
  font-size: 200%;
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 3px;
  left: 10px;
  font-family: Georgia, serif;
}

.testimonio-text {
  color: #ffffff;
  font-size: 95%;
  line-height: 1.5;
  font-style: italic;
  margin: 2vh 0 1vh 0;
  position: relative;
  z-index: 1;
}

.testimonio-autor {
  color: #ffffff;
  font-size: 90%;
  font-weight: bold;
  margin-top: 1vh;
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final-section {
  margin: 6vh 4vw;
  padding: 6vh 5vw;
  background: linear-gradient(
    135deg,
    rgba(34, 112, 202, 0.4),
    rgba(8, 144, 185, 0.4)
  );
  border-radius: 15px;
  text-align: center;
  box-shadow: 0px 5px 30px rgba(34, 112, 202, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
  color: #ffffff;
  font-size: 200%;
  margin-bottom: 2vh;
  text-shadow: 2px 2px 5px rgb(6, 6, 6);
}

.cta-text {
  color: #ffffff;
  font-size: 120%;
  line-height: 1.7;
  margin-bottom: 4vh;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.btn-cta-primary,
.btn-cta-secondary {
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 115%;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  min-width: 280px;
  text-align: center;
}

.btn-cta-primary {
  background-color: rgb(34, 112, 202);
  color: #fff;
  border: 2px solid rgb(34, 112, 202);
  box-shadow: 0 5px 20px rgba(34, 112, 202, 0.4);
}

.btn-cta-primary:hover {
  background-color: rgba(8, 144, 185, 0.95);
  border-color: rgb(77, 118, 231);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 112, 202, 0.6);
}

.btn-cta-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* ============================================
   TABLET (1000px - 1400px)
   ============================================ */

@media screen and (min-width: 1000px) and (max-width: 1400px) {
  .hero-clinicas {
    margin: 6vh 5vw;
    padding: 10vh 6vw;
  }

  .hero-title {
    font-size: 250%;
  }

  .hero-subtitle {
    font-size: 130%;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .caracteristicas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .planes-clinicas {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 5vh 4vw;
  }

  .plan-card {
    padding: 4vh 3vw;
  }

  .botones-plan {
    flex-direction: row;
    justify-content: center;
  }

  .casos-slider {
    gap: 3rem;
  }

  .caso-item {
    width: 250px;
    height: 150px;
  }

  .testimonios-section {
    margin: 5vh 0 4vh 0;
    padding: 2vh 0;
  }

  .testimonios-slider {
    gap: 3.5rem;
    padding: 1vh 0;
  }

  .testimonio-card {
    width: 420px;
    min-height: 150px;
  }

  .testimonio-text {
    font-size: 100%;
  }

  .cta-final-section {
    margin: 7vh 6vw;
    padding: 7vh 7vw;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================
   DESKTOP (1401px+)
   ============================================ */

@media screen and (min-width: 1401px) {
  .hero-clinicas {
    margin: 8vh 10vw;
    padding: 12vh 8vw;
  }

  .hero-title {
    font-size: 300%;
  }

  .hero-subtitle {
    font-size: 140%;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .caracteristicas-section {
    margin: 8vh 10vw;
  }

  .caracteristicas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .caracteristica-card {
    padding: 4vh 3vw;
  }

  .sistema-personalizado {
    margin: 8vh 10vw;
    padding: 6vh 8vw;
  }

  .personalizado-text {
    max-width: 900px;
    margin: 0 auto;
  }

  .demo-section {
    margin: 8vh 10vw;
    padding: 8vh 10vw;
  }

  .planes-clinicas {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 6vh 8vw;
  }

  .plan-card {
    padding: 5vh 3vw;
  }

  .botones-plan {
    flex-direction: row;
    justify-content: center;
  }

  .casos-slider {
    gap: 4rem;
  }

  .caso-item {
    width: 280px;
    height: 170px;
  }

  .testimonios-section {
    margin: 6vh 0 5vh 0;
    padding: 2vh 0;
  }

  .testimonios-slider {
    gap: 4rem;
    padding: 1vh 0;
  }

  .testimonio-card {
    width: 450px;
    min-height: 160px;
  }

  .testimonio-text {
    font-size: 105%;
  }

  .cta-final-section {
    margin: 8vh 10vw;
    padding: 8vh 10vw;
  }

  .cta-title {
    font-size: 230%;
  }

  .cta-text {
    font-size: 130%;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicar animación a elementos cuando se cargan */
.hero-clinicas,
.caracteristica-card,
.hero-image {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Estilos para la imagen del héroe */
.hero-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

@media screen and (min-width: 1000px) {
  .hero-image {
    width: 50%;
    margin: 0;
  }
}
.plan-card {
  animation: fadeInUp 0.8s ease-out;
}
