* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    /* background-color: #98DCE9; */
}

body.loaded {
    opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1d273b;
    font-weight: 300;
}

/* Header */
header::before {
    content: "";
    display: block;
    margin-bottom: 80px;
}

nav {
    width: 100%;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid transparent;
    box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, .2);
    position: fixed;
    top: 0;
    z-index: 100;
    transition: ease-in-out 0.5s;
}

.nav {
    display: flex;
    justify-content: space-between;
    height: 80px;
    width: 100%;
    align-items: center;
    padding: 0 40px;
}

.nav .logo {
    height: 80px;

}

.nav .logo img {
    height: 100%;
    vertical-align: top;
}

.enlaces-header {
    font-weight: 300;
    transition: ease-in-out 0.5s;
}

.nav .enlaces-header a {
    color: #5D6678;
    text-decoration: none;
    margin-left: 20px;
}

.hamburguer {
    width: 80px;
    height: 80px;
    display: none;
    text-align: center;
    z-index: 100;
    cursor: pointer;
    transition: color 0.5s ease-in;
}

.hamburguer>i {
    font-size: 25px;
    line-height: 80px;
}

@keyframes animat {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.hero-section {
    position: relative;
    height: 100vh;
}

.hero-img img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.hero-card {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    max-width: 420px;
}

/* seccion 2 */
.card-hover {
    transition: all 0.3s ease-in-out;
    border-radius: 20px;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: auto;
}

/* Seccion3 */
.card-hover {
    background: linear-gradient(135deg, #ffffff, #f3f7ff);
}

.card img {
    height: 600px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.card {
    border-radius: 15px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

.custom-card{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto; /* CENTRA EL BLOQUE */
  gap: 30px;
}

.content-card{
  width: 31%;
  box-shadow: 0 0 6px 0 rgba(0,0,0,.5);
  overflow: hidden;
  height:400px;
}

.people{
  height: 80%;
}

.content-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* seccion4 */

.video-section {
    background: #f8f9fa;
    height: 500pxy;
}

.fb-video-box {
    width: 100%;
    height: 590px; /* hazlo grande */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
}

.fb-video-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* footer */

.footer {
    background-color: #109daa;
    color: white;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.footer p, 
.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.social-icons a {
    font-size: 22px;
    margin-right: 12px;
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ffc107;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #067e89;
    font-size: 14px;
}

/* servicios */
.servicios-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.servicios-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.servicio-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: .3s;
  text-align: center;
}

.servicio-card i {
  font-size: 40px;
  color: #067e89;
  margin-bottom: 15px;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* opc2 */

#servicios-opc2 {
    display: none;
}

.servicios-pro {
  padding: 80px 0;
  background: white;
}

.servicio-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: .3s;
}

.servicio-item i {
  font-size: 35px;
  color: #067e89;
}

.servicio-item:hover {
  background: #067e89;
  color: white;
}

.servicio-item:hover i {
  color: white;
}


/* Sobre nosotros */
.about-hero {
  padding: 80px 0;
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  align-items: center;
  gap: 40px;
}

.about-text h1 {
  font-size: 2.8rem;
  font-weight: bold;
}

.about-text p {
  font-size: 1.1rem;
  margin: 20px 0;
}

.btn-about {
  background: #067e89;
  color: white;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
}

.btn-about:hover {
    color: #fff;
}

.about-img img {
  width: 100%;
  height: 500px;
  /* border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); */
}

.about-values {
  padding: 60px 0;
  background: white;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
}

.value-card {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  transition: .3s;
}

.value-card i {
  font-size: 40px;
  color: #067e89;
  margin-bottom: 15px;
}

.value-card:hover {
  transform: translateY(-10px);
}

/* contacto */
.contact-hero {
  padding: 80px 20px;
  text-align: center;
  background: #f2f2f2;
  color: #067e89;
}

.contact-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 40px;
}

.contact-info {
  font-size: 1.1rem;
}

.contact-info i {
  color: #067e89;
  margin-right: 10px;
}

.contact-info a {
  text-decoration: none;
  color: #333;
}

.socials a {
  font-size: 25px;
  margin-right: 15px;
  color: #067e89;
  transition: .3s;
}

.socials a:hover {
  color: #067e89;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.contact-form button {
  background: #067e89;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 30px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #067e89;
}

.slider-contenedor{
    width: 100%;
    height: 450px;
    margin: auto;
    padding-top: 25px;
    overflow: hidden;
}

.slider{
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    transition: transform .5s;
}

.cont-slide{
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
}

.cont-slide p{
    font-style: italic;
    font-weight: 300;
    columns: #585858;
    width: 80%;
    text-align: center;
}
.cont-slide img{
    vertical-align: top;
    width: 250px;
    height: 250px;
    border-radius: 100%;
    object-fit: cover;
}

.cont-slide h4{
    color:#067e89;
}

textarea{
    resize: none;
}

/* cursos */
.banner-cursos{
    height: 400px;
    background-image: url("../img/clinica1.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}



/* Tablet */
@media (max-width: 992px) {
    .hero-card {
        left: 5%;
        max-width: 350px;
    }
}

/* Celular */
@media (max-width: 768px) {
    .hero-card {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: none;
        text-align: center;
    }

    .custom-card .content-card {
        /* flex-direction: column; */
        width: 90%;
        margin: 20px;
    }

    #servicios-opc2 {
        display: block;
    }

    #servicios-opc1 {
        display: none;
    }

    .enlaces-header {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: #067e89;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 100px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: 0.3s ease-in-out;
    }

    .nav .enlaces-header a {
        margin: 15px 20px;
        font-size: 18px;
        color: white;
    }

    .nav .enlaces-header a:hover {
        color: #067e89;
    }

    /* Mostrar icono hamburguesa */
    .hamburguer {
        display: block;
    }

    /* Cuando el menú esté activo */
    .enlaces-header.active {
        right: 0;
    }
}


/* Ajustes para mantener las imágenes perfectamente redondas y uniformes sin distorsión */
.custom-avatar-box {
    width: 170px;
    height: 170px;
    border: 4px solid #0099a8;
    background-color: #f8f9fa;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen de manera inteligente para que no se deforme */
    object-position: center top; /* Enfoca principalmente los rostros */
}

/* Efecto de grupo: al posar el mouse sobre una tarjeta, las demás se atenúan suavemente */
.doctor-grid:hover .doctor-card:not(:hover) {
    opacity: 0.65;
    filter: grayscale(20%) blur(0.5px);
}

/* Estilo base de la tarjeta */
.doctor-card {
    transition: all 0.35s ease-in-out;
    border-radius: 20px !important;
    background: #ffffff;
    padding: 10px 0;
}

/* Animación cuando el usuario pasa el mouse sobre un doctor */
.doctor-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 153, 168, 0.15) !important;
}

.doctor-card:hover .custom-avatar-box {
    transform: scale(1.05);
    border-color: #00c2d4; /* Color turquesa más brillante al hacer hover */
}

/* Botón o indicador de la tarjeta */
.btn-profile-badge {
    display: inline-block;
    padding: 6px 20px;
    background-color: #f1fbfc;
    color: #007d8a;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.doctor-card:hover .btn-profile-badge {
    background-color: #0099a8;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 153, 168, 0.3);
}