:root{
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafos: 'Open Sans', sans-serif;
    --primario: #784D3C;
    --gris: #E1E1E1;
    --blanco: #FFFFFF;
    --negro: #000000;
}
html{
    box-sizing: border-box;
    font-size: 60%; /*1 rem = 10px*/
}
*, *:before, *:after {
    box-sizing: inherit;
}
body{
    font-family: var(--fuenteParrafos);
    font-size: 1.5rem;
    line-height: 1.5;
}
/* Evita el desplazamiento horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}
/* Ocultar contenido hasta que la carga termine */
#main-content {
    display: none;
}
/* Estilos del contenedor de carga */
#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #f4f4f4;
    flex-direction: column; /* Organizar el contenido verticalmente */
    background-image: url(../imagen/tortuga.jpg);
    background-size: cover; /* Ajustar la imagen para que cubra todo el contenedor */
    background-position: center; /* Centrar la imagen */
    background-repeat: no-repeat; /* Evitar que la imagen se repita */
}
/* Estilo para el texto "Cargando..." */
.loading-text {
    margin-top: 20px; /* Espacio entre el spinner y el texto */
    font-size: 20px;
    color: #fff;
}
/* Estilo de la animación del círculo */
.spinner {
    border: 8px solid #f3f3f3; /* Color gris claro */
    border-top: 8px solid #4CAF50; /* Color del borde superior */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
/* Animación del círculo giratorio */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/*Spinner*/
.spinner {
   width: 70px;
   height: 70px;
   border: 5px solid rgba(0, 0, 0, 0.3);
   border-radius: 50%;
   border-left-color: #7d47ff;
   animation: spin 1s ease infinite;
}
@keyframes spin {
    0% {
      transform: rotate(0deg);
    }
  
    100% {
      transform: rotate(360deg);
    }
}
/**Globales**/
.contenedor{
    max-width: 120rem;
    width: 90%;
    /*width: min(90%, 120rem); Esta forma tambien aplica para sustituir las 2 lineas anteriores*/
    margin: 0 auto;
}
a{
    text-decoration: none;
}
h1, h2, h3, h4{
    font-family: var(--fuenteHeading);
    line-height: 1.2;
}
h1{
    font-size: 4.8rem;
}
h2{
    font-size: 4rem;
}
h3{
    font-size: 3.2rem;
}
h4{
    font-size: 2.8rem;
}
img{
    max-width: 80%;
    padding: 2rem;
}
/**Utilidades**/
.no-margin{
    margin: 0;
}
.no-padding{
    padding: 0;
}
.centrar-texto{
    text-align: center;
}
.header{
    background-image: url(../imagen/gatito.jpg);
    height: 50rem; /*Tamaño original 60rem*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.header-blog{
    background-image: url(../imagen/loros.jpg);
    height: 50rem; /*Tamaño original 60rem*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.header-contacto{
    background-image: url(../imagen/contacto.jpg);
    height: 50rem; /*Tamaño original 60rem*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.header-nosotros{
    background-image: url(../imagen/conejo.jpg);
    height: 50rem; /*Tamaño original 60rem*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.header-login{
    background-image: url(../imagen/hamster.jpg);
    height: 50rem; /*Tamaño original 60rem*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.login {
    display: block;
    height: 100%;
}
.img-login {
    width: 300px; /* Tamaño inicial */
    height: auto; /* Mantiene la proporción */
    max-width: 100%; /* Evita que la imagen sobrepase su contenedor */
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .img-login {
        display: flex;
        align-items: center; /* Alinea verticalmente los elementos */
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .img-login {
        width: 80px;  /*Reduce el tamaño en pantallas pequeñas*/
    }
}
.header-servicios{
    background-image: url(../imagen/loros1.jpg);
    height: 50rem; /*Tamaño original 60rem*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
/*Texto del Encabezado*/
.header__texto {
    text-align: center;
    color: var(--blanco);
    margin-top: 5rem;
}
@media (min-width: 768px){
    .header__texto{
        margin-top: 15rem;
    }
}
@media (min-width: 768px){
    .barra{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
.logo, .logo__clinica{
    color: var(--blanco);
    display: flex;
    align-items: center;
    text-decoration: none; /* Elimina subrayado en enlaces */
    width: 900px; /* Ajusta el tamaño según necesites */
    height: auto;
    margin-right: 10px; /* Espacio entre la imagen y el texto */
}
.logo__nombre{
    font-weight: 400;
}
.logo__imagen{
    width: 150px; /* Ajusta el tamaño según necesites */
    height: auto;
    margin-right: 30px; /* Espacio entre la imagen y el texto */
}
.logo__bold{
    font-weight: 700;
}
/*Contenedor*/
@media (min-width: 768px){
    .logo{
        display: block;
        text-align: center;
        font-size: 1.8rem;
        color: var(--blanco);
    }
}
/*Navegación*/
@media (min-width: 768px){
    .navegacion{
        display: flex;
        gap: 2rem;
    }
}
.navegacion__enlace {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    color: var(--blanco);
    font-weight: bold;
    text-transform: uppercase;
}
/*Imagen flotante*/
.floating-image {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 5%;
    opacity: 0.8;
    transition: transform 0.3s ease-in-out;
}
.floating-image:hover {
    transform: scale(1.1); /* Efecto de agrandado al pasar el mouse */
  }
/*Banner*/
.carousel-item img {
    width: 70%;
    height: 350px;
    padding: 1rem;
    margin: 0 12%;
    overflow: hidden;
    position: relative;
    border-radius: 25px;
}
/*Contenido Principal*/
@media (min-width: 768px){
    .contenido-principal{
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
    }
}
.entrada{
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;
}
.entrada:last-of-type{
    border: none;
    margin-bottom: 0;
}
.boton{
    display: block;
    font-family: var(--fuenteHeading);
    color: var(--blanco);
    text-align: center;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    border-radius: 5px;
    border: none;
}
@media (min-width: 768px){
    .boton{
        display: inline-block;
    }
}
.parrafo{
    text-align: justify;
    font-size: 14px;
}
.boton:hover{
    cursor: pointer;
}
.boton--primario{
    background: var(--negro);
}
.boton--secundario{
    background-color: var(--primario);
}
.servicios{
    list-style: none;
}
.widget-servicio{
    border-bottom: 1px solid var(--gris);
    margin-bottom: 2rem;
}
.widget-servicio:last-of-type{
    border: none;
    margin-bottom: 0;
}
.widget-servicio__label{
    font-family: var(--fuenteHeading);
    font-weight: bold;
}
.widget-servicio__info{
    font-weight: normal;
}
.widget-servicio__label,
.widget-servicio__info{
    font-size: 2rem;
}
.footer{
    background-color: var(--negro);
    color: white;
    padding-bottom: 1rem;
    margin-top: 4rem 0;
    text-align: center;
    padding: 0 2rem;
}
/*Nosotros*/
@media (min-width: 768px) {
    .sobre-nosotros{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

/*Contacto*/
.contacto-bg{
    background-image: url(../imagen/huellitas.jpg);
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
}
.img{
    display: block;
    margin: 0 auto;
}
/*Formulario*/
.formulario{
    background-color: var(--blanco);
    margin: -5rem auto 0 auto;
    width: 95%;
    padding: 5rem;
}
.campo{
    display: flex;
    margin-bottom: 2rem;
}
.campo__label{
    flex: 0 0 9rem;
    text-align: right;
    padding-right: 2rem;
}
.campo__field{
    flex: 1;
    border: 1px solid var(--gris);
}
.campo__field--textarea{
    height: 20rem;
}
.contenedor-main{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Espacio entre columnas */
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.columna {
    flex: 1; /* Las columnas ocupan la misma proporción */
    padding: 10px;
    border: 1px solid #ccc;
}
.parrafo{
    text-align: justify;
}
/* Opcional: estilos adicionales */
.columna-hospital,
.columna-estancia,
.columna-estetica {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.columna-hospital:hover {
    transform: translateY(-5px);
}
.columna-estancia:hover {
    transform: translateY(-5px);
}
.columna-estetica:hover {
    transform: translateY(-5px);
}
/*Tabla Contacto*/
.tablas {
    border: 5px;
    text-align: center;
    padding: 1rem;
    overflow: hidden;
}
.tabla-centrada {
    margin: 20px; /* Centra horizontalmente */
    border-collapse: collapse; /* Estilo de bordes */
    /*width: 30%;  Ajusta el tamaño si es necesario */
    text-align: justify; /* Centra el texto dentro de las celdas */
}
tr{
    font-size: 5px;
    height: 50px;
}
table-borderer {
    border: 1px;
}

table th,
table td {
    border: 1px solid #FFFFFF;
    padding: 6px;
    text-align: center;
    font-size: 12px;
    border: 1px;
    text-transform: uppercase;
    height: min-content;
}

table th {
    background-color: #cbcbcb;
    text-transform: uppercase;
}
td{
    background-color: #f4f4f4;
    padding: 10px;
    font-size: 5px;
    text-align: justify;
    width: 20%;
    height: 50px;
}

.table {
    border: 1px;
}
/* Responsividad en pantallas pequeñas */
@media (max-width: 768px) {
    .tabla {
        font-size: 14px; /* Reduce el tamaño del texto */
    }
}

@media (max-width: 480px) {
    .tabla {
        font-size: 12px;
    }
}
.img{
    display: block;
    margin: 0 auto;
}
/*Formulario Login*/
.login-container,
.registro-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.login-card,
.registro-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-size: 2rem;
}
.login-card h2 {
    margin-bottom: 1rem;
    color: #444;
}
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}
.input-group input:focus {
    border-color: #6b9dfc;
    outline: none;
    box-shadow: 0 0 5px rgba(107, 157, 252, 0.5);
}
input::placeholder {
    font-size: 14px;
    color: gray;
}
.btn {
    background: linear-gradient(135deg, #6b9dfc, #a17cf7);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}
.btn:hover {
    background: linear-gradient(135deg, #a17cf7, #6b9dfc);
}
.link {
    display: block;
    margin-top: 1rem;
    color: #206bfa;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}
.link:hover {
    text-decoration: underline;
}