/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables CSS mejoradas y organizadas */
:root {
    /* Colores principales */
    --primary-color: #0077b6;
    --secondary-color: #023e8a;
    --accent-color: #00b4d8;
    --highlight-color: #90e0ef;
    
    /* Colores de texto */
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #f8fafd;
    --text-muted: #777777;
    --text-footer: #e0f2f7;
    
    /* Colores funcionales */
    --success-color: #25d366;
    --success-hover: #1da851;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-light: #dddddd;
    
    /* Sombras */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    
    /* Fuentes */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Espaciado y dimensiones */
    --container-max-width: 1200px;
    --border-radius: 12px;
    --border-radius-small: 8px;
    --border-radius-large: 50px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset básico mejorado */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Estilos base */
body {
    font-family: var(--font-primary);
    background-color: var(--text-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Container global */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 12px;
    text-decoration: none;
    z-index: 1000;
    border-radius: var(--border-radius-small);
    font-weight: 500;
}

.skip-link:focus {
    top: 6px;
}

/* Clase utilitaria para contenido visible solo para lectores de pantalla */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* NAVEGACIÓN */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-grow: 1;
    text-align: left;
    transition: color var(--transition-medium);
    cursor: pointer;
}

.logo:hover,
.logo:focus {
    color: var(--highlight-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    position: relative;
    transition: color var(--transition-medium);
    border-radius: var(--border-radius-small);
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    color: var(--highlight-color);
}

/* Efecto de subrayado animado */
.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    left: 12px;
    bottom: 4px;
    transition: width var(--transition-medium);
}

.nav-menu li a:hover::after,
.nav-menu li a:focus::after {
    width: calc(100% - 24px);
}

/* TÍTULOS GENERALES */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 38px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* CONTENEDORES DE SECCIONES */
.about-section,
.tours-section,
.gallery-section,
.testimonials-section,
.contact-section {
    padding: 80px 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* HERO SECTION */
.hero.video-hero {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    color: var(--white);
    text-align: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(2, 62, 138, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 20px;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius-large);
    transition: all var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    background-color: #009ac2;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.6);
}

/* ABOUT SECTION */
.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-medium);
    text-align: center;
}

/* TOURS SECTION */
.tour-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.tour-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all var(--transition-smooth);
    overflow: hidden;
    text-align: center;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.tour-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.tour-card:hover img {
    transform: scale(1.05);
}

.tour-card h3 {
    color: var(--secondary-color);
    margin: 20px 0 10px;
    font-size: 24px;
    font-weight: 600;
}

.tour-card .price {
    font-size: 24px;
    color: #007b5e;
    font-weight: 700;
    margin-bottom: 20px;
}

.tour-card .price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-reservar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--border-radius-large);
    transition: all var(--transition-smooth);
    margin: 20px auto 25px;
    display: block;
    width: fit-content;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 15px rgba(0, 119, 182, 0.3);
}

.btn-reservar:hover,
.btn-reservar:focus {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(2, 62, 138, 0.4);
}

/* SOCIAL MEDIA BANNER */
.social-media-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, #20c997 100%);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 40px auto;
    max-width: var(--container-max-width);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.social-media-banner h2 {
    color: var(--text-light);
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    padding-bottom: 0;
}

.social-media-banner h2::after {
    display: none;
}

.social-media-banner p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 35px;
    opacity: 0.95;
    font-weight: 300;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-smooth);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    min-width: 140px;
    justify-content: center;
}

.social-icon.facebook {
    background-color: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.tiktok {
    background-color: #000000;
}

.social-icon:hover,
.social-icon:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

/* GALLERY SECTION */
.gallery-section p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 40px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 15px var(--shadow-light);
    transition: all var(--transition-smooth);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px var(--shadow-medium);
    cursor: zoom-in;
}

/* TESTIMONIALS SECTION */
.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    margin: 30px auto;
    background-color: var(--white);
    padding: 30px;
    border-left: 5px solid var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px var(--shadow-light);
    position: relative;
}

.testimonial blockquote {
    margin: 0;
}

.testimonial p {
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.testimonial footer {
    text-align: right;
}

.testimonial cite {
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

/* CONTACT SECTION */
.contact-section p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 30px;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-family: var(--font-primary);
    transition: border-color var(--transition-medium);
    background-color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius-large);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    max-width: 300px;
    margin: 20px auto 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form button:hover,
.contact-form button:focus {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

/* WHATSAPP BUTTON */
.whatsapp-button {
    text-align: center;
    margin-top: 40px;
}

.whatsapp-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--success-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: var(--border-radius-large);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    gap: 10px;
}

.whatsapp-button a:hover,
.whatsapp-button a:focus {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* FOOTER */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--text-footer);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-social a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color var(--transition-medium);
    font-weight: 500;
}

.footer-social a:hover,
.footer-social a:focus {
    color: var(--white);
    text-decoration: underline;
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--success-color) 0%, #29d87d 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: all var(--transition-smooth);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* MEDIA QUERIES RESPONSIVAS */

/* Tablet grande */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .tour-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 14px;
    }
    
    .hero.video-hero {
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .about-section,
    .tours-section,
    .gallery-section,
    .testimonials-section,
    .contact-section {
        padding: 60px 15px;
    }
    
    .tour-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .tour-card img {
        height: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-grid img {
        height: 200px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-icon {
        width: 80%;
        max-width: 250px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

/* Móvil */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .nav-menu {
        font-size: 13px;
        gap: 10px;
    }
    
    .hero.video-hero {
        min-height: 45vh;
        padding: 40px 15px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-content .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .about-section,
    .tours-section,
    .gallery-section,
    .testimonials-section,
    .contact-section {
        padding: 40px 15px;
    }
    
    .tour-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-reservar {
        padding: 12px 25px;
        font-size: 14px;
        width: 90%;
        max-width: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-grid img {
        height: 150px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .social-media-banner {
        padding: 40px 15px;
    }
    
    .social-media-banner h2 {
        font-size: 2rem;
    }
    
    .social-icon {
        width: 95%;
        max-width: none;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float img {
        width: 26px;
        height: 26px;
    }
    
    .site-footer {
        padding: 30px 15px;
        font-size: 14px;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero.video-hero {
        background-attachment: scroll;
    }
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-light: #1a1a1a;
        --text-dark: #f0f0f0;
        --text-medium: #cccccc;
        --white: #2a2a2a;
        --light-gray: #3a3a3a;
        --border-light: #4a4a4a;
    }
}

/* Impresión */
@media print {
    .whatsapp-float,
    header,
    .hero {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}