/* Mejoras adicionales para Peregrinación 2026 */

/* Reset y animaciones suaves */
* {
    transition: all 0.3s ease;
}

/* Mejoras al banner principal */
.tm-banner-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-banner-bg {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/p3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    padding: 100px 0;
}

.tm-banner-row {
    padding: 100px 20px !important;
}

.tm-banner-bg h1 {
    color: white !important;
    font-size: 3rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.tm-banner-bg .lead {
    color: white !important;
    font-size: 1.5rem !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
    font-weight: 300;
}

/* Video container styles */
.tm-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tm-video-container iframe {
    border-radius: 10px !important;
    display: block;
}

/* Efecto hover en las cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    border-radius: 15px;
    background: white;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25) !important;
}

.card-img-top {
    transition: transform 0.5s ease;
    height: 250px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.15);
}

.card-body {
    padding: 25px;
}

.card-title {
    color: #069;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* Mejoras a las secciones de slideshow */
.tm-slideshow-description {
    padding: 40px;
}

.tm-slideshow-description h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.tm-slideshow-description h2 i {
    margin-right: 15px;
    font-size: 1.8rem;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.tm-slideshow-description p {
    line-height: 1.8;
    color: #fff;
    font-size: 1.05rem;
}

/* Botones mejorados */
.tm-btn {
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    border-radius: 30px;
}

.tm-btn i {
    margin-right: 8px;
}

.tm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.tm-btn-white-primary:hover {
    background: #fff !important;
    color: #069 !important;
}

.tm-btn-white-highlight:hover {
    background: #fff !important;
    color: #f39c12 !important;
}

/* Mejoras a la navegación */
.navbar-brand img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 10px 15px !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #069;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mejoras al footer */
footer.tm-footer-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 50px;
}

.tm-footer-logo {
    max-width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
}

.tm-footer-content h5 {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.tm-footer-content p {
    color: rgba(255,255,255,0.9);
}

.tm-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.tm-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.tm-social-link:hover {
    background: white;
    color: #667eea;
    transform: translateY(-5px);
    text-decoration: none;
}

/* Info boxes */
.tm-info-section {
    background: linear-gradient(to bottom, #f8f9fa, white);
    padding: 60px 0;
}

.tm-info-box {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.tm-info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.tm-info-box i {
    color: #667eea;
    margin-bottom: 20px;
}

.tm-info-box h4 {
    color: #069;
    font-weight: 600;
    margin-bottom: 15px;
}

.tm-info-box p {
    color: #666;
    line-height: 1.7;
}

/* Form container styles */
.tm-form-container iframe {
    border-radius: 10px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Section improvements */
.tm-about-text-wrap {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.tm-about-text-wrap h2 {
    color: #069;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.tm-about-text-wrap h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
}

.tm-about-text-wrap p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

.tm-about-text-wrap strong {
    color: #069;
    font-weight: 600;
}

/* Animación de fade-in para secciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-section-box {
    animation: fadeInUp 0.8s ease;
}

/* Mejoras para móviles */
@media (max-width: 768px) {
    .tm-banner-bg h1 {
        font-size: 2rem !important;
    }
    
    .tm-banner-bg .lead {
        font-size: 1.2rem !important;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .tm-slideshow-description {
        padding: 20px;
    }
    
    .tm-slideshow-description h2 {
        font-size: 1.5rem;
    }
    
    .tm-video-container iframe {
        height: 250px;
    }
    
    .cookie-popup {
        width: 90%;
        left: 5%;
        right: 5%;
    }
    
    .tm-social-links {
        gap: 15px;
    }
    
    .tm-social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .tm-info-box {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .tm-about-text-wrap {
        padding: 25px;
    }
    
    .tm-banner-row {
        padding: 60px 15px !important;
    }
}

/* Mejoras adicionales */
.tm-text-primary {
    color: #069 !important;
    font-weight: 700;
}

/* Animación scroll reveal */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-info-box {
    animation: slideInUp 0.6s ease-out;
}

.card {
    animation: slideInUp 0.6s ease-out;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.3s;
}

.card:nth-child(5) {
    animation-delay: 0.4s;
}

.card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Estilo para el iframe del formulario */
.tm-form-container iframe {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Mejoras a las imágenes del slideshow */
.tm-slideshow img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
}

.tm-slideshow {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.slick-prev, .slick-next {
    z-index: 100;
}

.slick-prev:before, .slick-next:before {
    font-size: 40px;
    opacity: 0.8;
}

.slick-prev:hover:before, .slick-next:hover:before {
    opacity: 1;
}

/* Gallery section improvements */
.tm-section-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #069;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.tm-section-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
}

.tm-section-box .lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .tm-slideshow img {
        height: 300px;
    }
    
    .tm-section-box h2 {
        font-size: 2rem;
    }
}

/* Efecto parallax suave */
.parallax-window {
    min-height: 400px;
    background: transparent;
}

/* Mejoras al top bar */
.tm-top-bar {
    transition: all 0.3s ease;
}

.tm-top-bar.active {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Texto con sombra para mejor legibilidad */
.text-primary {
    color: #069 !important;
}

/* Espaciado consistente */
.mb-6 {
    margin-bottom: 4rem !important;
}

.mb-7 {
    margin-bottom: 5rem !important;
}

.mt-7 {
    margin-top: 5rem !important;
}

/* Efecto de carga suave */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Lead text mejorado */
.lead {
    font-weight: 400;
    line-height: 1.6;
}

/* Mejoras visuales globales */
h2, h3, h4, h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    line-height: 1.7;
}

/* Sombras consistentes */
.shadow {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

/* Colores de marca */
:root {
    --primary-color: #069;
    --secondary-color: #667eea;
    --accent-color: #764ba2;
}
