/********** Template CSS **********/

:root {

    --primary: #a10905;

    --secondary: #1d1e33;

    --light: #EFF5F9;

    --dark: #522f44;

}



.rt-wrapper {
  position: relative;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

#rt-particles {
  position: absolute;
  width: 100%;
  height: 150%;
  background: linear-gradient(135deg, #87747b00, #1a1919);
  z-index: 0;
}


.rt-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.95);
  padding: 40px;
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.rt-form input, .rt-form select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.rt-row {
  display: flex;
  gap: 10px;
}

.rt-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg,#a10905,#6f4e4d);
  border: none;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  margin-top: 20px;
}

.rt-hidden {
  display: none;
}


.btn-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Botón principal */
.btn-primary {
  background: linear-gradient(135deg, #a10905, #b0322f);
  color: #fff;
  box-shadow: 0 5px 15px rgba(163 18 25 / 25%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,110,253,0.4);
}

/* Botón secundario */
.btn-secondary {
  border: 2px solid #a10905;
  color: #a10905;
  background: transparent;
}

.btn-secondary:hover {
  background: #a10905;
  color: #fff;
}

/* Iconos */
.btn-primary i,
.btn-secondary i {
  font-size: 16px;
}


.crs-wrapper{
  padding: 60px 20px;
  background: #f5f7ff;
  text-align: center;
}

.crs-title{
  font-size: 28px;
  color: #a10905;
  margin-bottom: 30px;
}

/* contenedor visible */
.crs-container{
  overflow: hidden;
  max-width: 1200px;
  margin: auto;
}

/* carrusel */
.crs-track{
  display: flex;
  gap: 20px;
  animation: crs2-scroll 60s linear infinite;
}

/* imágenes */
.crs-track img{
  width: calc(33.333% - 20px);
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.crs-track img:hover{
  transform: scale(1.05);
}

/* animación */
@keyframes crs-scroll{
  0%{transform: translateX(0);}
  100%{transform: translateX(-50%);}
}

/* responsive */
@media(max-width: 768px){
  .crs-track img{
    width: 80%;
  }
}

.crs2-wrapper{
  padding: 60px 20px;
  background: #bfafaf6b;
  text-align: center;
}

.crs2-title{
  font-size: 45px;
  color: #a10905;
  margin-bottom: 30px;
}

/* ventana visible */
.crs2-container{
  overflow: hidden;
  max-width: 1100px;
  margin: auto;
}

/* carrusel */
.crs2-track{
  display: flex;
  gap: 20px;
  animation: crs2-scroll 18s linear infinite;
}

/* 2 por vista */
.crs2-track img{
  width: calc(50% - 10px);
  height: 270px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.crs2-track img:hover{
  transform: scale(1.05);
}

/* animación */
@keyframes crs2-scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* móvil */
@media (max-width: 768px){
  .crs2-track img{
    width: 90%;
  }
}


.btn-ver-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 50px;
  background: linear-gradient(135deg, #a10905, #6f4e4d);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(13,110,253,0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* efecto suave de brillo */
.btn-ver-info::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  left: -100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.btn-ver-info:hover::after {
  left: 100%;
}

.btn-ver-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(163 18 25 / 25%5);
}


.tm-wrapper{
  padding: 60px 20px;
  background: #f5f7ff;
}

.tm-title{
  text-align: center;
  color: #a10905;
  margin-bottom: 40px;
}

/* timeline */
.tm-timeline{
  position: relative;
  max-width: 900px;
  margin: auto;
}

.tm-timeline::before{
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #a10905;
  opacity: 0.3;
}

/* item */
.tm-item{
  display: flex;
  margin-bottom: 30px;
}

/* fecha */
.tm-date{
  width: 100px;
  font-weight: bold;
  color: #a10905;
}

/* contenido */
.tm-content{
  flex: 1;
  margin-left: 20px;
}

/* card */
.tm-card{
  background: #fff;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.tm-card:hover{
  transform: translateX(5px);
}

/* badge */
.badge{
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  margin-right: 5px;
  color: #fff;
}

.t{
  background: #a10905;
}

/* acordeón */
details summary{
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 10px;
}

details{
  margin-bottom: 15px;
}

.ameh-pro{
  padding:80px 20px;
  display:flex;
  justify-content:center;
  align-items:center;

  background: radial-gradient(circle at top,#a10905,#0b2a4a);
  overflow:hidden;
  position:relative;
}

/* ondas suaves animadas */
.ameh-pro::before{
  content:"";
  position:absolute;
  width:600px;
  height:600px;
  background:rgba(255,255,255,0.08);
  border-radius:50%;
  top:-200px;
  left:-200px;
  animation: float1 8s ease-in-out infinite;
}

.ameh-pro::after{
  content:"";
  position:absolute;
  width:500px;
  height:500px;
  background:rgba(255,255,255,0.05);
  border-radius:50%;
  bottom:-200px;
  right:-200px;
  animation: float2 10s ease-in-out infinite;
}

@keyframes float1{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(40px);}
}

@keyframes float2{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-40px);}
}

/* CARD */
.ameh-pro-card{
  position:relative;
  max-width:900px;
  width:100%;
  background:rgb(241 234 234 / 44%);
  backdrop-filter:blur(12px);
  border-radius:30px;
  padding:40px;
  text-align:center;
  color:#fff;
  box-shadow:0 25px 60px rgba(0,0,0,0.25);
}

/* LOGO */
.ameh-pro-logo img{
  width:120px;
  margin-bottom:10px;
      /* background: white; */
  filter:drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

.ameh-pro-logo h3{
  margin:0;
  font-size:22px;
}

.ameh-pro-logo p{
  font-size:20px;
  opacity:0.85;
}

/* GRID INFO */
.ameh-pro-grid{
  margin-top:25px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

.ameh-pro-item{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.08);
  padding:10px;
  border-radius:15px;
  transition:0.3s;
}

.ameh-pro-item:hover{
  transform:scale(1.05);
  background:rgba(255,255,255,0.15);
}

.ameh-pro-item span{
  font-size:18px;
}

/* REDES */
.ameh-pro-social{
  margin-top:25px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:15px;
}

.ameh-pro-social a{
  color:#fff;
  text-decoration:none;
  font-size:14px;
  padding:8px 14px;
  border-radius:50px;
  background:rgba(255,255,255,0.1);
  transition:0.3s;
}

.ameh-pro-social a:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,0.25);
}

/* LINKS */
.ameh-pro-links{
  margin-top:25px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}

.ameh-pro-links a{
  font-size:12px;
  color:#cfe6ff;
  text-decoration:none;
  opacity:0.9;
}

.ameh-pro-links a:hover{
  opacity:1;
  text-decoration:underline;
}

/* RESPONSIVE */
@media(max-width:700px){
  .ameh-pro-grid{
    grid-template-columns:1fr;
  }
}

.btn {

    font-weight: 700;

    transition: .5s;

}


.dg-wrapper{
  padding:90px 20px;
  display:flex;
  justify-content:center;
  align-items:center;

  /* fondo degradado animado */
  background: linear-gradient(-45deg,#e9f1ff,#f5f7ff,#eef3ff,#ffffff);
  background-size: 400% 400%;
  animation: dg-bg 12s ease infinite;
}

/* animación fondo */
@keyframes dg-bg{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* card glass */
.dg-card{
  max-width:1000px;
  width:100%;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(12px);
  border-radius:30px;
  padding:40px;
  box-shadow:0 30px 80px rgba(0,0,0,0.15);
  text-align:center;
}

/* titulos */
.dg-title{
  color:#a10905;
  font-size:28px;
  margin-bottom:10px;
}

.dg-subtitle{
  color:#666;
  margin-bottom:30px;
}

/* grid info */
.dg-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:15px;
}

.dg-box{
  background:#775a7d1c;
  border:1px solid #b17f8a;
  padding:15px;
  border-radius:18px;
  transition:0.3s;
}

.dg-box:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 25px rgba(13,110,253,0.12);
}

.dg-box h4{
  margin:0;
  font-size:13px;
  color:#a10905;
}

.dg-box p{
  margin:5px 0 0;
  font-weight:600;
      color: #0c0b0b;
}

/* full width */
.dg-full{
  grid-column:span 2;
}

/* DOCTORES */
.dg-doctors{
  margin-top:30px;
  display:flex;
  flex-direction:column;
  gap:15px;
  align-items:center;
}

.dg-doctor{
  display:flow;
  align-items:center;
  gap:15px;
  background:#efecf1;
  border:1px solid #b17f8a;
  padding:12px 18px;
  border-radius:20px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  width:100%;
  max-width:600px;
  transition:0.3s;
}

.dg-doctor:hover{
  transform:translateY(-4px);
}

.dg-doctor img{
  width:55px;
  height:55px;
  border-radius:50%;
  background:#eef3ff;
  padding:6px;
}

.dg-doctor strong{
  color:#a10905;
  font-size:14px;
}

.dg-doctor p{
  margin:2px 0 0;
  font-size:18px;
  color:#333;
}

/* BOTÓN */
.dg-btn{
  display:inline-block;
  margin-top:35px;
  padding:14px 30px;
  border-radius:50px;
  background:linear-gradient(135deg,#a10905,#6f4e4d);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  box-shadow:0 15px 30px rgba(163 18 25 / 25%);
  transition:0.3s;
}

.dg-btn:hover{
  transform:scale(1.07);
}

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

  .dg-full{
    grid-column:span 1;
  }

  .dg-card{
    padding:25px;
  }
}

.btn:hover {

    -webkit-box-shadow: 0 8px 6px -6px #555555;

    -moz-box-shadow: 0 8px 6px -6px #555555;

    box-shadow: 0 8px 6px -6px #555555;

}



.btn-primary {

    color: #FFFFFF;

}



.btn-square {

    width: 36px;

    height: 36px;

}



.btn-sm-square {

    width: 28px;

    height: 28px;

}



.btn-lg-square {

    width: 46px;

    height: 46px;

}



.btn-square,

.btn-sm-square,

.btn-lg-square {

    padding-left: 0;

    padding-right: 0;

    text-align: center;

}



.back-to-top {

    position: fixed;

    display: none;

    right: 30px;

    bottom: 0;

    border-radius: 50% 50% 0 0;

    z-index: 99;

}



.navbar-light .navbar-nav .nav-link {

    font-family: "Roboto Condensed";

    position: relative;

    margin-left: 30px;

    padding: 30px 0;

    font-size: 18px;

    font-weight: 700;

    color: var(--dark);

    outline: none;

    transition: .5s;

}



.navbar-light .navbar-nav .nav-link:hover,

.navbar-light .navbar-nav .nav-link.active {

    color: #a10905;

}



@media (min-width: 992px) {

    .navbar-light .navbar-nav .nav-link::before {

        position: absolute;

        content: "";

        width: 0;

        height: 5px;

        bottom: 0;

        left: 50%;

        background: #a10905;

        transition: .5s;

    }



    .navbar-light .navbar-nav .nav-link:hover::before,

    .navbar-light .navbar-nav .nav-link.active::before {

        width: 100%;

        left: 0;

    }

}



@media (max-width: 991.98px) {

    .navbar-light .navbar-nav .nav-link  {

        margin-left: 0;

        padding: 10px 0;

    }

}



.hero-header {

    background: url(../img/hero.jpg) top right no-repeat;

    background-size: cover;

}



.service-item {

    position: relative;

    height: 350px;

    padding: 0 30px;

    transition: .5s;

}



.service-item .service-icon {

    width: 150px;

    height: 100px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #a10905;

    border-radius: 50%;

    transform: rotate(-14deg);

}



.service-item .service-icon i {

    transform: rotate(15deg);

}



.service-item a.btn {

    position: absolute;

    width: 60px;

    bottom: -48px;

    left: 50%;

    margin-left: -30px;

    opacity: 0;

}



.service-item:hover a.btn {

    bottom: -24px;

    opacity: 1;

}



@media (min-width: 576px) {

    .team-item .row {

        height: 350px;

    }

}



.team-carousel .owl-nav {

    position: absolute;

    padding: 0 45px;

    width: 100%;

    height: 45px;

    top: calc(50% - 22.5px);

    left: 0;

    display: flex;

    justify-content: space-between;

}



.team-carousel .owl-nav .owl-prev,

.team-carousel .owl-nav .owl-next {

    position: relative;

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #FFFFFF;

    background: #a10905;

    border-radius: 45px;

    font-size: 22px;

    transition: .5s;

}



.team-carousel .owl-nav .owl-prev:hover,

.team-carousel .owl-nav .owl-next:hover {

    background: var(--dark);

}



.testimonial-carousel .owl-dots {

    margin-top: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.testimonial-carousel .owl-dot {

    position: relative;

    display: inline-block;

    margin: 0 5px;

    width: 20px;

    height: 20px;

    background: var(--light);

    border: 2px solid #a10905;

    border-radius: 20px;

    transition: .5s;

}



.testimonial-carousel .owl-dot.active {

    width: 40px;

    height: 40px;

    background: #a10905;

}



.testimonial-carousel .owl-item img {

    width: 150px;

    height: 150px;

}


.wa-icon-only{
  position:fixed;
  bottom:25px;
  right:25px;

  width:60px;
  height:60px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:linear-gradient(135deg,#25D366,#1ebe5d);
  color:#fff;
  font-size:30px;

  border-radius:50%;
  text-decoration:none;

  box-shadow:0 15px 35px rgba(0,0,0,0.25);
  z-index:9999;

  transition:0.3s;
  animation: wa-bounce 2.5s infinite;
}

/* hover */
.wa-icon-only:hover{
  transform:scale(1.1);
  box-shadow:0 25px 60px rgba(0,0,0,0.35);
}

/* animación suave flotante */
@keyframes wa-bounce{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-6px); }
}

/* glow suave */
.wa-icon-only::before{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  border-radius:50%;
  background:rgba(37,211,102,0.4);
  animation: wa-pulse 2s infinite;
  z-index:-1;
}

@keyframes wa-pulse{
  0%{ transform:scale(1); opacity:0.7; }
  70%{ transform:scale(1.4); opacity:0; }
  100%{ transform:scale(1.4); opacity:0; }
}

/* móvil */
@media(max-width:600px){
  .wa-icon-only{
    width:55px;
    height:55px;
    font-size:26px;
  }
}
.lg-wrapper{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px;

  background:linear-gradient(135deg,#1a0000,#3b0000,#5a0a0a,#000000);
  background-size:300% 300%;
  animation: lg-bg 10s ease infinite;
}

/* animación fondo */
@keyframes lg-bg{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* tarjeta */
.lg-card{
  width:100%;
  max-width:400px;
  background:rgb(255 255 255 / 95%);
  backdrop-filter:blur(12px);
  border-radius:25px;
  padding:35px;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
  color:#fff;
}

/* títulos */
.lg-title{
  text-align:center;
  margin-bottom:5px;
  font-size:26px;
  color:#a10905;
}

.lg-subtitle{
  text-align:center;
  font-size:13px;
  opacity:0.8;
  margin-bottom:25px;
}

/* inputs */
.lg-group{
  margin-bottom:18px;
}

.lg-group label{
  font-size:13px;
  margin-bottom:5px;
  display:block;
}

.lg-group input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:none;
  outline:none;
  background:rgb(255 255 255 / 90%);
  color:#fff;
  transition:0.3s;
}

.lg-group input:focus{
  background:rgba(255,255,255,0.15);
  box-shadow:0 0 10px rgba(255,0,0,0.4);
}

/* botón */
.lg-btn{
  width:100%;
  padding:12px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#8b0000,#ff1a1a);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  margin-top:10px;
  transition:0.3s;
}

.lg-btn:hover{
  transform:scale(1.05);
}

/* links */
.lg-links{
  text-align:right;
  margin-top:10px;
}

.lg-forgot{
  font-size:12px;
  color:#a10905;
  text-decoration:none;
}

.lg-forgot:hover{
  text-decoration:underline;
}

/* registro */
.lg-register{
  margin-top:20px;
  text-align:center;
}

.lg-register p{
  font-size:13px;
  margin-bottom:10px;
}

.lg-register-btn{
  display:inline-block;
  padding:10px 20px;
  border-radius:50px;
  background:rgb(255 255 255);
  color:#fff;
  text-decoration:none;
  transition:0.3s;
}

.lg-register-btn:hover{
  background:rgba(255,255,255,0.2);
  transform:scale(1.05);
}