:root {
    --mex-pink: #E6007E;
    --obsidian: #1a1a1a;
    --smoke: #f4f4f4;
    --white: #ffffff;
}

/* =========================================
   Base & Reset
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body { 
    background-color: var(--smoke); 
    color: var(--obsidian); 
    line-height: 1.6; 
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   Navigation
   ========================================= */
nav { 
    background: var(--obsidian); 
    padding: 1.2rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.logo { 
    display: flex;
    align-items: center;
    text-decoration: none; 
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links a { 
    color: var(--white); 
    text-decoration: none; 
    margin-left: 20px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase; 
}

.nav-links a:hover { 
    color: var(--mex-pink); 
}

.hamburger {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white); 
    border-radius: 2px;
    transition: 0.3s ease;
}

/* =========================================
   Hero & Header
   ========================================= */
.hero {
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 40vh;
}

.hero h1 {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-size: 3rem;
    padding: 0 10%;
}

header { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/palacio_de_bellas_artes.webp'); 
    height: 80vh; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: var(--white); 
    padding: 0 10%; 
}

header h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
}

header p { 
    font-size: 1.2rem; 
    max-width: 700px; 
    margin-bottom: 2rem; 
}

/* =========================================
   Banners & Badges
   ========================================= */
.transparency-banner { 
    background: #e9ecef; 
    padding: 2rem 5%; 
    text-align: center; 
    border-bottom: 4px solid var(--mex-pink); 
}

.badge { 
    background: var(--mex-pink); 
    color: white; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    margin-right: 10px; 
}

/* =========================================
   Tour Grid & Cards
   ========================================= */
.section-title { 
    text-align: center; 
    padding: 4rem 0 2rem; 
    font-size: 2.5rem; 
}

.tours-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2.5rem; 
    padding: 0 8% 4rem; 
}

.tour-card { 
    background: var(--white); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    transition: 0.3s; 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column; 
}

.tour-card:hover { 
    transform: translateY(-10px); 
}

.tour-img { 
    height: 220px; 
    width: 100%; 
    object-fit: cover; 
    object-position: center; 
    display: block; 
}

.tour-content { 
    padding: 1.5rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.price-split { 
    border-top: 1px solid #eee; 
    margin-top: auto; 
    padding-top: 1rem; 
    font-size: 0.9rem; 
}

.ticket-cost { 
    color: #666; 
    display: flex; 
    justify-content: space-between; 
}

.service-fee { 
    font-weight: bold; 
    color: var(--mex-pink); 
    display: flex; 
    justify-content: space-between; 
}

.total-price { 
    font-size: 1.4rem; 
    font-weight: 800; 
    margin-top: 5px; 
    display: flex; 
    justify-content: space-between; 
}

/* =========================================
   About Section
   ========================================= */
.about-section { 
    background: var(--obsidian); 
    color: var(--white); 
    padding: 6rem 10%; 
    display: flex; 
    align-items: center; 
    gap: 4rem; 
}

.about-text { 
    flex: 1; 
}

.about-text p { 
    margin-bottom: 1.5rem; 
}

.about-img { 
    flex: 1; 
    height: 450px; 
    background: #333 url('images/nevado_de_toluca_gemini.webp') center/cover; 
    border-radius: 10px; 
    position: relative; 
}

.img-caption {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* =========================================
   Contact Page Specifics
   ========================================= */
.hero-contact {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1518105779142-d975f22f1b0a?q=80&w=1500');
}

.contact-methods {
    margin-top: 2rem;
}

.contact-methods ul {
    margin: 1rem 0; 
    list-style: none;
}

.contact-methods li {
    margin-bottom: 10px;
}

.contact-methods a {
    color: inherit; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-methods a:hover {
    color: var(--mex-pink);
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block; 
    font-size: 0.8rem; 
    font-weight: bold; 
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--mex-pink);
    border-color: transparent;
}

/* =========================================
   Tour Page Specifics
   ========================================= */

.hero-tours {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/cathederal.webp');
    background-position: center 45%;
}

.tours-standalone-grid {
    padding-top: 4rem;
}

/* =========================================
   Booking & Individual Tour Page Specifics
   ========================================= */
.split { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 4rem; 
    padding: 4rem 8%; 
}

.booking-box { 
    background: white; 
    padding: 2.5rem; 
    border-radius: 12px; 
    border-top: 6px solid var(--mex-pink); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.hero-lucha {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/lucha_celebrating.webp');
    background-position: center 35%;
}

.hero-food {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/al_pastor_carving.webp');
}
.hero-football {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/azteca_full.webp');
    background-position: center 65%;
}
.hero-frida {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1620306135245-0d315132578b?auto=format&fit=crop&q=80&w=1500');
    background-position: center 40%;
}
.hero-kayak {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1544551763-47a0159c9638?auto=format&fit=crop&q=80&w=1500');
}
.hero-malinche {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/malinche_sandy_part.webp');
    background-position: center 35%;
}
.hero-nevado {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/nevado_crater.webp');
    background-position: center 45%;
}
.hero-tolantongo {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/grutas_river.webp');
    background-position: center 80%;
}
.hero-trajinera {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/xochimilco_boat.webp');
    background-position: center 65%;
}

.content h2 {
    margin: 1rem 0;
}

.content ul {
    margin: 1rem 2rem;
}

.booking-subtitle {
    font-size: 0.85rem; 
    color: #888; 
    margin-bottom: 1.5rem;
}

.booking-note {
    font-size: 0.75rem; 
    text-align: center; 
    margin-top: 1rem; 
    color: #999;
}

.booking-box .total-price {
    border-top: 2px solid #eee; 
    margin-top: 15px; 
    padding-top: 15px; 
    font-size: 1.8rem;
}

.btn-full {
    width: 100%; 
    margin-top: 1.5rem; 
    border: none; 
    cursor: pointer;
}

/* =========================================
   Legal Pages Specifics
   ========================================= */
.hero-legal {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1518105779142-d975f22f1b0a?q=80&w=1500');
    min-height: 25vh; 
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 5%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    transform: translateY(-30px);
}

.legal-content h2 {
    color: var(--mex-pink);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.legal-content p, 
.legal-content ul {
    margin-bottom: 1.2rem;
    color: #444;
    font-size: 0.95rem;
}

.legal-content ul {
    margin-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* =========================================
   Buttons
   ========================================= */
.btn-main { 
    background: var(--mex-pink); 
    color: var(--white); 
    padding: 1rem 2rem; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: bold; 
    transition: 0.3s; 
    display: inline-block; 
}

.btn-main:hover { 
    transform: scale(1.05); 
    background: #c5006b; 
}

.btn-outline {
    border: 1px solid var(--mex-pink);
    padding: 5px 15px;
    border-radius: 4px;
    color: var(--white);
    transition: 0.3s; 
    display: inline-block; 
}

.btn-outline:hover { 
    transform: scale(1.05); 
}

/* =========================================
   Footer & Floating Elements
   ========================================= */
.site-footer {
    background: #0a0a0a; 
    color: #999;
    padding: 4rem 5% 1.5rem;
    font-size: 0.85rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links img {
    height: 28px;
    opacity: 0.7;
    transition: 0.3s;
}

.social-links img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-contact-list, 
.footer-legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li,
.footer-legal-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer a {
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.site-footer a:hover {
    color: var(--mex-pink);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================================
   Media Queries
   ========================================= */

/* Tablets and small desktops */
@media (max-width: 900px) { 
    .about-section { 
        flex-direction: column; 
        padding: 4rem 10%; 
    } 

    .about-img {
        display: block;    
        width: 100%;       
        height: 350px;     
        min-height: 350px; 
        order: -1;         
        margin-bottom: 2rem; 
    }
    
    .about-text {
        width: 100%;
        text-align: center; 
    }

    .split {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 5%;
    }
    
    .booking-box {
        padding: 1.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .hamburger {
        display: flex; 
    }

    .nav-links {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--obsidian);
        flex-direction: column;
        text-align: center;
        padding-bottom: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }

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

    .nav-links a {
        margin-left: 0;
        padding: 15px 0;
        display: block;
    }

    .nav-links .btn-outline {
        display: inline-block;
        width: auto;
        margin: 10px auto 0;
    }

    .footer-container {
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }
}