/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* HEADER */
header {
    background: #37628d;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 80px;
    height: auto;
    border-radius: 20%;
    margin-left: 30px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    transition: color 0.3s ease-in-out;
    margin-right: 15px;
}

nav ul li a:hover {
    color: #1ABC9C;
}

.bienvenida {
    text-align: center;
    background: #f8f9fa; /* Fondo claro */
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #2C3E50; /* Azul oscuro */
}


/* GALERÍA DE ANIMALES */
.galeria-animales {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 35px;
    gap: 20px;
    background: #ECF0F1;
}

.animal {
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.animal img {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.animal img:hover {
    transform: scale(1.1);
}

.animal p {
    font-style: italic;
    font-size: 18px;
    margin-top: 8px;
}

/* SECCIÓN DE INFORMACIÓN */
.info {
    background: #104a84;
    color: white;
    padding: 50px;
    text-align: center;
}

.info h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

.info p {
    font-size: 18px;
    max-width: 800px;
    margin: auto;
}

/* SECCIÓN TERAPIAS */
.terapias {
    background: #E0F7FA;
    padding: 50px;
    text-align: center;
}

.terapias h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

.terapias ul {
    list-style: none;
    max-width: 600px;
    margin: auto;
}

.terapias ul li {
    font-size: 18px;
    padding: 10px;
    background: white;
    margin: 10px 0;
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
}

.terapias ul li:hover {
    background: #B2EBF2;
}

/* ANIMACIÓN DE CARGA */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #2C3E50;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #1ABC9C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* TESTIMONIOS */
.testimonios {
    text-align: center;
    background: #F8F9FA;
    padding: 40px;
}

.slider {
    max-width: 600px;
    margin: auto;
    font-size: 18px;
    font-style: italic;
    color: #555;
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float img {
    width: 40px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* FOOTER */
footer {
    background: #37628d;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

footer .redes {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .redes img {
    width: 35px;
    transition: transform 0.3s;
}

footer .redes img:hover {
    transform: scale(1.2);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .galeria-animales {
        flex-direction: column;
        align-items: center;
    }

    .animal img {
        width: 80%;
    }
}













/*PAGINA GALERIA*/

/* SECCIÓN DE TÍTULO DE GALERÍA */
.galeria-titulo {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
}

.galeria-titulo h2 {
    font-size: 28px;
    color: #2C3E50;
}

.galeria-titulo p {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 10px auto;
}

/* SECCIÓN DE GALERÍA */

/* SECCIÓN DE COLABORADORES */
.colaboradores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: #ECF0F1;
    height: auto;
}

/* Efecto 3D en las tarjetas */
.tarjeta {
    background: white;
    width: 280px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    perspective: 1000px;
}

.tarjeta:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.tarjeta img {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Animación en imágenes dentro de las tarjetas */
.tarjeta img {
    transition: transform 0.3s ease-in-out;
}

.tarjeta:hover img {
    transform: scale(1.05);
}


.tarjeta h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.tarjeta p {
    font-size: 16px;
    color: #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .colaboradores {
        flex-direction: column;
        align-items: center;
    }
}

/* ANIMACIÓN DE APARICIÓN */
.fade-in {
    opacity: 1; 
    transform: translateY(10px); /* Antes tenía 20px */
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}


/* BOTÓN "LEER MÁS" */
.leer-mas {
    background: #1ABC9C;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 15px;
}

.leer-mas:hover {
    background: #16A085;
}

/* DESCRIPCIÓN OCULTA */
.descripcion-oculta {
    display: none; 
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.descripcion-activa {
    display: block !important;  /* Asegura que se vea */
    opacity: 1;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    text-align: center;
}

.cerrar {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Sección de estadísticas */
.estadisticas {
    text-align: center;
    background: #f8f9fa;
    padding: 50px 20px;
}

.estadisticas h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #2C3E50;
}

.estadisticas-contenedor {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.estadistica {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    transition: transform 0.3s ease-in-out;
}

.estadistica:hover {
    transform: scale(1.1);
}

.estadistica h3 {
    font-size: 32px;
    color: #1ABC9C;
    margin-bottom: 10px;
}



.grafico {
    text-align: center;
    padding: 80px;
    background: #eaf2f8;
}

.grafico h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #2C3E50;
}

canvas {
    max-width: 600px;
    margin: auto;
}




/*TERAPIAS*/
/* SECCIÓN INTRODUCCIÓN */
.intro-terapias {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
}

.intro-terapias h1 {
    font-size: 32px;
    color: #2C3E50;
}

.intro-terapias p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: auto;
}

/* ACORDEÓN */
.tipos-terapias{
    margin-left: 30px;
    margin-right: 30px;
}


.acordeon-item {
    border-bottom: 1px solid #ddd;
}

.acordeon-titulo {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 20px;
    padding: 15px;
    cursor: pointer;
    display: block;
    font-weight: bold;
    color: #1ABC9C;
    margin-left: 30px;
    margin-top: 10px;
}

.acordeon-contenido {
    display: none;
    padding: 10px;
    background: #ECF0F1;
}
/* SECCIÓN BENEFICIOS Y FAQ EN DOS COLUMNAS */
.beneficios-faq {
    display: flex;
    justify-content:space-between;
    gap: 20px;
    max-width: auto;
    margin: auto;
    padding: 50px 20px;
    
}

.beneficios, .faq {
    width: 48%;
    margin-right: 220px;
    margin-left: 220px;
    
}

/* BENEFICIOS */
.beneficios h2, .faq h2 {
    font-size: 24px;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 15px;
}

.beneficio-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease-in-out;
}

.beneficio-item:hover {
    transform: scale(1.05);
}

.beneficio-item h3 {
    font-size: 18px;
    color: #1ABC9C;
}

.beneficio-item p {
    font-size: 16px;
    color: #555;
}

/* FAQ */
.faq details {
    background: #ECF0F1;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.faq details[open] {
    background: #D6EAF8;
}



/*NOSOTROS*/
/* SECCIÓN PRESENTACIÓN */
.presentacion {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
}

.presentacion h1 {
    font-size: 32px;
    color: #2C3E50;
}

.presentacion p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: auto;
}

/* CONTENEDOR DE VIDEO */
.video-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.video-container iframe {
    width: 80%;
    max-width: 700px;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .video-container iframe {
        width: 100%;
        height: 250px;
    }
}


/* SECCIÓN MISIÓN Y VISIÓN */
.mision-vision {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: auto;
    padding: 50px 20px;
    gap: 20px;
}

.mision, .vision {
    width: 48%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.mision:hover, .vision:hover {
    transform: scale(1.05);
}

.mision h2, .vision h2 {
    font-size: 22px;
    color: #1ABC9C;
    text-align: center;
}

/* SECCIÓN EQUIPO */
.equipo {
    text-align: center;
    padding: 50px;
    background: #ECF0F1;
}

.equipo-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.miembro {
    background: white;
    width: 250px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.miembro img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.miembro h3 {
    font-size: 18px;
    color: #2C3E50;
    margin-top: 10px;
}

/* SECCIÓN IMPACTO */
.impacto {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
}

.impacto h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #2C3E50;
}

.impacto p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: auto;
}



/*CONTACTO*/

/* SECCIÓN HERO CON IMAGEN DE FONDO */
.hero-contacto {
    background: url("../img/gatoconbotas.jpg") no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* SECCIÓN CONTACTO */
.contacto-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
    padding: 40px;
    gap: 20px;
}

/* FORMULARIO */
.formulario {
    width: 45%;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.formulario:hover {
    transform: scale(1.02);
}

.campo {
    margin-bottom: 15px;
}

.campo label {
    font-size: 16px;
    font-weight: bold;
    color: #2C3E50;
    display: block;
}

.campo input, .campo textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.campo textarea {
    height: 100px;
}

/* BOTONES */
.btn-enviar {
    background: #1ABC9C;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-enviar:hover {
    background: #16A085;
}

.btn-reset:hover {
    background: #c0392b;
}

/* UBICACIÓN */
.ubicacion {
    width: 45%;
}

.mapa {
    width: 100%;
    height: 80%;
    border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contacto-container {
        flex-direction: column;
        align-items: center;
    }
    
    .formulario, .ubicacion {
        width: 100%;
    }
}
