/*
Theme Name: Tema de Viajes
Theme URI: 
Author: Tu Nombre
Author URI: 
Description: Tema personalizado para agencia de viajes
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tema-viajes
*/

/* Estilos para la página de viajes */
.contenedor-viajes {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.titulo-viajes {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.grid-viajes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.viaje-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.viaje-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.viaje-imagen {
    position: relative;
    overflow: hidden;
}

.viaje-imagen img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.viaje-card:hover .viaje-imagen img {
    transform: scale(1.1);
}

.viaje-contenido {
    padding: 20px;
    background: white;
}

.viaje-contenido h2 {
    margin: 0 0 15px 0;
    color: #333;
    transition: color 0.3s ease;
}

.viaje-card:hover .viaje-contenido h2 {
    color: #0073aa;
}

.boton-ver {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.boton-ver:hover {
    background-color: #005177;
    transform: scale(1.05);
}

/* Estilos para la página individual de viaje */
.viaje-detalle {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.titulo-viaje {
    text-align: center;
    color: #fff;
    margin: 0;
    padding: 40px 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out;
}

.imagen-principal {
    position: relative;
    height: 80vh;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #000;
}

.imagen-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.imagen-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform-origin: center;
    will-change: transform;
}

.contenido-viaje {
    max-width: 1200px;
    margin: -100px auto 0;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    line-height: 1.6;
    color: #444;
    animation: fadeInUp 1s ease-out;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Asegurarse que las tarjetas aparezcan secuencialmente */
.viaje-card:nth-child(1) { animation-delay: 0.1s; }
.viaje-card:nth-child(2) { animation-delay: 0.2s; }
.viaje-card:nth-child(3) { animation-delay: 0.3s; }
.viaje-card:nth-child(4) { animation-delay: 0.4s; }
.viaje-card:nth-child(5) { animation-delay: 0.5s; }
.viaje-card:nth-child(6) { animation-delay: 0.6s; }