/*
Theme Name: Tema Personalizado Miguel Tejera
Theme URI: https://migueltejera.com/
Author: Tu Nombre
Author URI: http://tudominio.com
Description: Una plantilla personalizada para el sitio web del Dr. Miguel Tejera.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, one-column, two-columns, full-width-template
Text Domain: miguel-tejera
*/

/* Estilos adicionales para el diseño de la librería */
body {
    background-color: var(--bs-light); /* Fondo general con el color marrón claro */
}
.navbar-brand img {
    height: 85px; /* Ajusta el tamaño del logo en la navbar */
}
/* Estilos para el carrusel */
#heroCarousel {
    position: relative;
    width: 100%;
    overflow: hidden; /* Asegura que las imágenes no se desborden */
}
.carousel-item {
    height: 550px; /* Altura fija para el carrusel en PC */
    position: relative; /* Necesario para el overlay */
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio */
    display: block;
}
/* Overlay para mejorar la legibilidad del texto sobre la imagen */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%); /* Degradado oscuro a transparente */
    z-index: 1; /* Asegura que el overlay esté debajo del texto */
}
/* Estilo para el contenido del carrusel en PC */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 10%; /* Alinea el contenido a la izquierda */
    transform: translateY(-50%);
    text-align: left; /* Alinea el texto a la izquierda */
    z-index: 2; /* Para que el contenido esté por encima del overlay */
    max-width: 600px; /* Limita el ancho del contenido para mejor lectura */
    padding: 20px; /* Añade un poco de padding */
    color: white; /* Asegura que el texto sea blanco */
}
/* Estilo para el título principal con efecto luminoso en PC */
.carousel-caption h1 {
    font-size: 4rem; /* Tamaño grande para el título */
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Sombra para mejor contraste */
}
.carousel-caption p.lead {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}
.carousel-control-prev, .carousel-control-next {
    width: 5%; /* Ajusta el ancho de los controles */
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo para los iconos de flecha */
    border-radius: 50%; /* Iconos redondos */
    padding: 15px;
}
.carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.5); /* Indicadores más visibles */
}
.carousel-indicators button.active {
    background-color: white; /* Indicador activo blanco */
}

/* Ajuste de tamaño de fuente y padding para móviles (pantallas de 768px o menos) */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px; /* Altura menor en móviles */
    }
    .carousel-caption {
        left: 5%; /* Menos padding en móviles */
        right: 5%;
        max-width: 90%; /* Ocupa más ancho en móviles */
        text-align: center; /* Centra el texto en móviles */
        padding: 15px;
    }
    .carousel-item::before {
        background: rgba(0,0,0,0.5); /* Overlay más uniforme en móviles */
    }
    .carousel-caption h1 {
        font-size: 2.2rem; /* Más pequeño en móviles */
    }
    .carousel-caption p.lead {
        font-size: 1.1rem; /* Descripción más pequeña en móviles */
    }
    .carousel-caption .btn {
        font-size: 0.9rem; /* Botón más pequeño en móviles */
        padding: 8px 15px;
    }
}

.card-book {
    border: none;
    transition: transform 0.2s;
}
.card-book:hover {
    transform: translateY(-5px);
}
.card-book img {
    height: auto; /* Altura automática */
    max-height: 200px; /* Altura máxima para las portadas de libros */
    object-fit: contain; /* CORRECCIÓN: Contener la imagen dentro del espacio */
}
.section-title {
    color: var(--bs-primary); /* Título de sección con el color azul cielo */
    font-weight: 700;
}
.cta-section { /* Esta sección ya no se usa, pero mantengo el estilo por si acaso */
    background-color: var(--bs-primary); /* Fondo de la sección CTA con el color azul cielo */
    color: white;
    padding: 60px 0;
}
.footer-section {
    background-color: #333; /* Un gris oscuro para el footer */
    color: white;
    padding: 40px 0;
}
.footer-section a {
    color: white;
    text-decoration: none;
}
.footer-section a:hover {
    color: var(--bs-primary);
}
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.btn-primary:hover {
    background-color: darken(var(--bs-primary), 10%) !important; /* Oscurece el color al pasar el ratón */
    border-color: darken(var(--bs-primary), 10%) !important;
}
/* Nuevos estilos para la sección de cards alternas */
.feature-card {
    background-color: white;
    border-radius: 10px;
}
.feature-card .img-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}
.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Estilos para las nuevas cards de motivación */
.motivation-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.motivation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.motivation-card .icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 15px;
}
.motivation-card h4 {
    font-weight: bold;
    color: #343a40;
    margin-bottom: 10px;
}
.motivation-card p {
    color: #6c757d;
}
/* Estilos para las nuevas cards de éxito */
.success-card {
    background-color: #f0f8ff; /* Un color suave para diferenciarlas */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.success-card p.lead {
    font-size: 1.1rem; /* Ajustar tamaño de fuente para que no sea muy grande */
    font-weight: 500;
    color: #333;
}
/*HERO DE CHOY*/
.about-hero {
    background-color: #f8f9fa;
    color: #343a40;
    padding: 80px 0;
    text-align: center;
}
.about-hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
}
.about-hero p {
    font-size: 1.25rem;
}
.about-content-section {
    padding: 60px 0;
    background-color: white;
}
.about-content-section img {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.section-title {
    color: var(--bs-primary);
    font-weight: 700;
}
.navbar-brand img {
    height: 85px;
}
.footer-section .list-unstyled li {
    margin-bottom: 0.5rem; /* Añade un poco de espacio debajo de cada elemento de la lista */
}
.footer-section .social-icons a {
    font-size: 1.5rem; /* Asegura que los íconos de redes sociales tengan un buen tamaño */
    margin-right: 1rem; /* Añade más espacio entre los íconos */
}
/* Estilos existentes para el formulario de contacto */
.contact-form-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}
/* ... resto del CSS ... */
.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 300px; /* Altura fija para las imágenes de la galería */
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el espacio */
    display: block;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%); /* Degradado para el texto */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.gallery-item:hover .overlay {
    opacity: 1;
}
.overlay h5, .overlay p {
    margin: 0;
}
.section-title {
    color: var(--bs-primary);
    font-weight: 700;
}
/* Estilos para la sección de encabezado con fotos */
.testimonios-hero {
    position: relative;
    height: 400px; /* Altura fija para la sección hero */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Asegura que las imágenes no se desborden */
}
.testimonios-hero .hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Para que las imágenes se coloquen lado a lado */
}
.testimonios-hero .hero-images img {
    width: 50%; /* Cada imagen ocupa la mitad del ancho */
    height: 100%;
    object-fit: cover; /* Cubre el espacio sin distorsionar */
}
.testimonios-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay oscuro para mejor legibilidad del texto */
    z-index: 1;
}
.testimonios-hero .container {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}
.testimonios-hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.testimonios-hero p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* Estilos para las cards de testimonios */
.testimonios-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}
.testimonio-card {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%; /* Asegura que todas las cards tengan la misma altura */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    padding: 25px;
}
.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.testimonio-card .quote-icon {
    font-size: 2.5rem;
    color: var(--bs-primary);
    margin-bottom: 15px;
}
.testimonio-card .testimonio-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}
.testimonio-card .author-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.testimonio-card .author-title {
    font-size: 0.9rem;
    color: #777;
}
.section-title {
    color: var(--bs-primary);
    font-weight: 700;
}
.navbar-brand img {
    height: 85px; /* Ajusta el tamaño del logo en la navbar */
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .testimonios-hero {
        height: 300px; /* Menor altura en móviles */
    }
    .testimonios-hero .hero-images {
        flex-direction: column; /* Apila las imágenes en móviles */
    }
    .testimonios-hero .hero-images img {
        width: 100%; /* Cada imagen ocupa todo el ancho en móviles */
        height: 50%; /* Cada imagen ocupa la mitad de la altura del hero */
    }
    .testimonios-hero h1 {
        font-size: 2.5rem;
    }
    .testimonios-hero p {
        font-size: 1rem;
    }
}