/* =============================================
   GoMéxico Vacations - Estilos Responsivos
   COLORES BASADOS EN EL DISEÑO:
   - Top bar: #2a2a2e (muy oscuro)
   - Navbar: #3d3d42 (gris medio-oscuro)
   - Secciones: #2f2f35 (charcoal)
   - Fondo general: #35353b (gris oscuro)
   - Footer: #1a1a1e (casi negro)
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #35353b;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   Top Bar (Sign In / Sign Up)
   ============================================= */
.top-bar {
    background: #2a2a2e;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar a {
    color: #c0c0c0;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #ffffff;
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
    background: #3d3d42;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: #2f2f35;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: #e8e8e8;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Botón Reservar - fondo blanco con letras negras
   Usar .nav-links a.btn-reservar-nav para ganar especificidad
   sobre .nav-links a que pone color #e8e8e8 */
.nav-links a.btn-reservar-nav {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 8px 24px;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: inline-block;
}

.nav-links a.btn-reservar-nav:hover {
    background: #f0f0f0;
    color: #000000;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* =============================================
   Hero Section - Imagen como <img> para verse completa
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
    /* Sin object-fit: cover ni max-height para que la pareja se vea COMPLETA */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 30px;
}

.hero-overlay .container {
    width: 100%;
}

.hero-logo {
    width: 180px;
    margin-bottom: 30px;
}

.hero-content {
    max-width: 420px;
    margin-top: 40px;
}

/* Texto oscuro porque está sobre la parte clara de arena/cielo */
.hero-content h1 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.hero-content .highlight {
    font-weight: 700;
    color: #1a1a1a;
}

.hero-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #2a2a2a;
}

.btn-mas-info {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.btn-mas-info:hover {
    color: #0077b6;
}

/* =============================================
   Sección Media (Descuentos + Plan + Asegura + Imágenes + Conócenos)
   ============================================= */
.seccion-media {
    background: #2f2f35;
    padding: 50px 0;
}

/* Fila 1: Descuentos + Plan Todo Incluído - dos columnas */
.media-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.media-col {
    padding: 10px 0;
}

.media-col h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.media-col p {
    font-size: 14px;
    color: #a8a8b4;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Link con flecha estilo del diseño */
.link-arrow {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s;
}

.link-arrow:hover {
    color: #ffffff;
}

/* Plan Todo Incluído - lista con viñetas blancas grandes */
.plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.plan-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #a8a8b4;
}

/* Viñetas circulares grandes blancas (~3x tamaño de la letra) */
.bullet-white {
    width: 14px;
    height: 14px;
    min-width: 14px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Fila 2: Asegura + Imágenes + Conócenos - tres columnas */
.media-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

.media-col-left,
.media-col-right {
    padding: 10px 0;
}

.media-col-left h3,
.media-col-right h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.media-col-left .link-arrow,
.media-col-right .link-arrow {
    display: block;
    margin-top: 8px;
}

/* Imágenes: 1 grande + 3 pequeñas debajo */
.media-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-img-large {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
}

.media-img-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.media-img-row img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* =============================================
   Destinos Section - Cards con forma de ROMBOIDE
   ============================================= */
.destinos {
    background: #3a3a40;
    padding: 20px 0 60px;
}

/* Fila 1: 6 destinos */
.destinos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-left: -10px;
    margin-right: -10px;
}

/* Fila 2: 5 destinos */
.destinos-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 20px;
    margin-left: -10px;
    margin-right: -10px;
}

/* Card individual - imagen PNG con romboide y transparencia */
.destino-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
}

.destino-card:hover {
    transform: translateY(-3px);
}

.destino-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s;
}

.destino-card:hover img {
    transform: scale(1.03);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: #1a1a1e;
    padding: 25px 0;
    border-top: 1px solid #444448;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #888890;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* =============================================
   Destino Micrositio (destino.php)
   ============================================= */
.destino-hero {
    position: relative;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.destino-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.destino-hero .container {
    position: relative;
    z-index: 1;
}

.destino-hero h1 {
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.destino-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.destino-body {
    background: #35353b;
    padding: 60px 0;
}

.destino-body .container {
    max-width: 900px;
}

.destino-body h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #4db8d6;
}

.destino-body p {
    font-size: 16px;
    color: #c0c0c8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.highlights-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.highlights-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #d0d0d8;
}

.highlights-list li::before {
    content: '\2726';
    color: #4db8d6;
    font-size: 14px;
}

.btn-reservar {
    display: inline-block;
    background: #4db8d6;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-reservar:hover {
    background: #3a9ab8;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(77, 184, 214, 0.3);
}

/* =============================================
   Reservar Page
   ============================================= */
.reservar-page {
    background: #35353b;
    min-height: 100vh;
    padding: 40px 0;
}

.reservar-page .container {
    max-width: 700px;
}

.reservar-page h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
}

.reservar-page .subtitle {
    text-align: center;
    color: #a8a8b4;
    margin-bottom: 40px;
}

.form-reserva {
    background: #2f2f35;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #d0d0d8;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #25252b;
    border: 1px solid #4a4a52;
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4db8d6;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-reserva .btn-reservar {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 10px;
}

/* Confirmación */
.confirmacion {
    background: #2f2f35;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.confirmacion .check-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.confirmacion h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #4db8d6;
}

.confirmacion p {
    color: #a8a8b4;
    margin-bottom: 10px;
}

.confirmacion .numero-reserva {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    background: #25252b;
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    margin: 20px 0;
    letter-spacing: 2px;
}

.resumen-reserva {
    text-align: left;
    background: #25252b;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.resumen-reserva p {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #3a3a42;
    margin: 0;
}

.resumen-reserva p:last-child {
    border-bottom: none;
}

.resumen-reserva strong {
    color: #ffffff;
}

.error-msg {
    background: #e74c3c;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
}

/* =============================================
   Responsive: Tablet (768px+)
   ============================================= */
@media (min-width: 768px) {
    /* Hero */
    .hero-logo {
        width: 200px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    /* Sección media: fila 1 en dos columnas con divisor */
    .media-row {
        grid-template-columns: 1fr 1fr;
    }

    .media-row .media-col:first-child {
        border-right: 1px solid #4a4a52;
        padding-right: 40px;
    }

    .media-row .media-col:last-child {
        padding-left: 40px;
    }

    /* Sección media: fila 2 - imágenes a la DERECHA */
    .media-row-2 {
        grid-template-columns: 1fr 1fr 2fr;
    }

    .media-col-left {
        order: 1;
    }

    .media-col-right {
        order: 2;
    }

    .media-images {
        order: 3;
    }

    .media-img-large {
        height: 260px;
    }

    .media-img-row img {
        height: 120px;
    }

    /* Destinos: 3 columnas */
    .destinos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .destinos-row-2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =============================================
   Responsive: Desktop (1024px+)
   ============================================= */
@media (min-width: 1024px) {
    /* Hero */
    .hero-logo {
        width: 230px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-overlay {
        padding-top: 40px;
    }

    /* Sección media */
    .media-col h2 {
        font-size: 24px;
    }

    .media-img-large {
        height: 300px;
    }

    .media-img-row img {
        height: 140px;
    }

    /* Destinos: 6 columnas fila 1 */
    .destinos-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Destinos: 5 columnas fila 2 */
    .destinos-row-2 {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Destino micrositio */
    .destino-hero h1 {
        font-size: 56px;
    }
}

/* =============================================
   Responsive: Large Desktop (1200px+)
   ============================================= */
@media (min-width: 1200px) {
    .media-img-large {
        height: 320px;
    }

    .media-img-row img {
        height: 150px;
    }
}

/* =============================================
   Mobile: Small screens
   ============================================= */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #3d3d42;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero mobile - la imagen se escala automáticamente */

    .hero-overlay {
        padding-top: 20px;
    }

    .hero-logo {
        width: 130px;
        margin-bottom: 15px;
    }

    .hero-content h1 {
        font-size: 16px;
    }

    .hero-content p {
        font-size: 12px;
    }

    /* Sección media mobile */
    .media-row {
        gap: 30px;
        margin-bottom: 30px;
    }

    .media-col h2 {
        font-size: 20px;
    }

    .media-img-large {
        height: 180px;
    }

    .media-img-row img {
        height: 80px;
    }

    /* Destinos mobile: 2 columnas */
    .destinos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .destinos-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Formulario mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-reserva {
        padding: 25px 20px;
    }

    .destino-hero h1 {
        font-size: 32px;
    }

    .highlights-list {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Animations
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
