/* ================================== */
/* == VARIABLES Y ESTILOS GLOBALES == */
/* ================================== */
:root {
    --color-turquesa: #00BCD4; /* Color Principal */
    --color-azul-oscuro: #0D47A1; /* Color Secundario/Texto */
    --color-verde-hoja: #4CAF50; /* Color Placer/Beneficios */
    --color-accion: #ffde59; /* Color de CTA (Naranja) */
    --color-fondo: #F4F4F4;
    --fuente-titulo: 'Montserrat', sans-serif;
    --fuente-cuerpo: 'Open Sans', sans-serif;
}

body {
    font-family: var(--fuente-cuerpo);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.contenedor {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

h1, h2, h3 {
    font-family: var(--fuente-titulo);
    color: var(--color-azul-oscuro);
    text-align: center;
}

/* ================================== */
/* ========== ESTILOS CTA =========== */
/* ================================== */
.btn {
    display: inline-block;
    background-color: var(--color-accion);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #E68900;
}

/* ================================== */
/* =========== ENCABEZADO =========== */
/* ================================== */
header {
    background-color: white;
    border-bottom: 3px solid var(--color-turquesa);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    height: 50px;
    line-height: 50px;
}

.logo img {
    height: 100%;
    vertical-align: middle;
    width: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-azul-oscuro);
    font-weight: 600;
}

/* ================================== */
/* ========== HERO / BANNER ========= */
/* ================================== */
#hero {
    background: url('https://viajesturquesa.com.mx/imgs/banners/home1.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 10px;
    max-width: 900px;
}

#hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 600;
}

/* ================================== */
/* =========== OFERTAS MP =========== */
/* ================================== */
#ofertas {
    padding: 50px 0;
    text-align: center;
    background-color: var(--color-fondo);
}

.ofertas-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    align-items: stretch; 
}

.flyer-item {
    flex: 1 1 45%;
    max-width: 500px;
    margin: 0;
    border: 5px solid var(--color-accion);
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 75%; 
    height: 0; 
    background-color: black;
}

.flyer-item:hover {
    transform: translateY(-5px);
}

.flyer-item a {
    display: block;
    text-decoration: none;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.flyer-item img, .flyer-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.video-overlay-text {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: rgba(0, 0, 0, 0.4);
    color: white; 
    font-size: 1.5em; 
    font-weight: bold; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.flyer-item a:hover .video-overlay-text {
    background-color: rgba(0, 0, 0, 0.6);
}

/* ================================== */
/* ====== PRODUCTOS DESTACADOS ====== */
/* ================================== */
#destacados {
    padding: 50px 0;
    background-color: #fff;
}

.destacados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    text-align: left;
}

.product-info p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #666;
}

.product-price {
    font-size: 1.3em;
    color: var(--color-turquesa);
    font-weight: bold;
    margin-top: auto;
}

/* ================================== */
/* ============ SERVICIOS =========== */
/* ================================== */
#servicios {
    padding: 50px 0;
    text-align: center;
    background-color: var(--color-fondo);
}

.servicios-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.servicio-card {
    flex: 1 1 20%;
    max-width: 250px;
    padding: 20px;
    margin: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    background-color: white;
    border-top: 5px solid var(--color-turquesa);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.servicio-card .fa-solid {
    font-size: 2.5em;
    color: var(--color-turquesa);
    margin-bottom: 15px;
}

.servicio-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* ================================== */
/* ========= FORMULARIO CONTACTO ==== */
/* ================================== */
#contacto-formulario {
    padding: 50px 0;
    background-color: white;
    text-align: center;
}

.form-contenedor {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.form-grupo {
    margin-bottom: 15px;
    text-align: left;
}

.form-grupo label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-azul-oscuro);
}

.form-grupo input[type="text"],
.form-grupo input[type="email"],
.form-grupo input[type="tel"],
.form-grupo textarea,
.form-grupo select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: var(--fuente-cuerpo);
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-grupo input:focus,
.form-grupo textarea:focus,
.form-grupo select:focus {
    border-color: var(--color-turquesa);
    outline: none;
}

.form-grupo textarea {
    resize: vertical;
    height: 100px;
}

.form-contenedor .btn {
    width: 100%;
    margin-top: 10px;
}

/* ================================== */
/* =========== FACILIDADES ========== */
/* ================================== */
#facilidades {
    background-color: var(--color-verde-hoja);
    color: white;
    padding: 50px 0;
    text-align: center;
}

#facilidades h2 {
    color: white;
    margin-bottom: 20px;
}

#facilidades ul {
    list-style: none;
    padding: 0;
    font-size: 1.1em;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#facilidades ul li {
    padding-left: 0;
    margin: 10px 15px;
    text-align: center;
}

#facilidades ul li::before {
    content: '✅';
    margin-right: 8px;
}

/* ================================== */
/* ============ PIE DE PÁGINA ======= */
/* ================================== */
footer {
    background-color: var(--color-azul-oscuro);
    color: white;
    padding: 30px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 10px;
    gap: 20px;
}

.footer-col {
    flex: 1 1 30%;
    padding: 0;
    max-width: 380px;
}

.footer-col h3 {
    color: var(--color-turquesa);
    margin-bottom: 10px;
    text-align: left;
}

.footer-col a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.5em;
}

/* ================================== */
/* ============ MODAL =============== */
/* ================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    z-index: 2001;
}

.modal-body img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.modal-body h2 {
    text-align: left;
    margin-top: 0;
    color: var(--color-azul-oscuro);
}

.modal-body h4 {
    color: var(--color-azul-oscuro);
    margin-bottom: 5px;
    margin-top: 15px;
}

.modal-body ul {
    padding-left: 20px;
    margin-top: 5px;
}

.modal-body ul li {
    margin-bottom: 5px;
}

.mercado-pago-btn {
    display: block;
    background-color: #009EE3;
    color: white;
    padding: 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 25px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    transition: background-color 0.3s;
}
.mercado-pago-btn:hover {
    background-color: #007bb5;
}

/* ================================== */
/* 🟢 MEDIA QUERIES (Responsividad) */
/* ================================== */
@media (max-width: 1024px) {
    .servicio-card { flex: 1 1 45%; max-width: 45%; }
    .footer-col { flex: 1 1 45%; }
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; }
    .logo { height: 40px; margin-bottom: 10px; }
    nav ul { text-align: center; }
    nav ul li { margin: 0 10px; }
    #hero { padding: 40px 10px; min-height: 350px; }
    #hero h1 { font-size: 1.8em; }
    #hero p { font-size: 1em; }
    .btn { padding: 10px 20px; font-size: 0.9em; }
    .flyer-item { 
        flex: 1 1 100%; 
        max-width: 90%; 
        padding-top: 66%; 
    } 
    .servicios-grid { flex-direction: column; align-items: center; }
    .servicio-card { flex: 1 1 90%; max-width: 90%; }
    .footer-grid { flex-direction: column; align-items: center; }
    .footer-col { flex: 1 1 90%; max-width: 90%; margin-bottom: 20px; text-align: center; }
    .footer-col h3, .footer-col p, .footer-col a { text-align: center; }
    .form-contenedor { padding: 20px 15px; }
    .modal-content { width: 95%; padding: 20px; margin-top: 10%; }
}