/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

:root {
    --primary: #bd1622;
    --primary-dark: #8a1019;
    --text: #333;
    --text-light: #777;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --black: #222;
}

body {
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    margin-right: 10px;
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

/* ===== SELECTOR DE IDIOMA DESKTOP ===== */
.language-selector.desktop-only {
    position: relative;
    margin-left: 25px;
}

.desktop-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(189, 22, 34, 0.1);
    border: 2px solid transparent;
    border-radius: 25px;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.desktop-btn:hover {
    background: rgba(189, 22, 34, 0.2);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.desktop-btn i:first-child {
    font-size: 16px;
    color: var(--primary);
}

.current-lang {
    font-weight: 600;
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.desktop-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none; /* <-- agrega esto para quitar el punto */
}

.language-selector.desktop-only:hover .desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.language-selector.desktop-only:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== OPCIONES DE IDIOMA ===== */
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(189, 22, 34, 0.08);
    color: var(--primary);
}

.lang-flag {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.lang-name {
    font-size: 14px;
    font-weight: 500;
}

/* ===== SELECTOR DE IDIOMA MOBILE ===== */
.mobile-language-item {
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    padding-top: 15px;
}

.mobile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(189, 22, 34, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-btn:hover {
    background: rgba(189, 22, 34, 0.1);
    border-color: var(--primary);
}

.language-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.mobile-dropdown {
    display: none;
    background: rgba(189, 22, 34, 0.03);
    border-radius: 8px;
    margin-top: 8px;
    padding: 5px;
    border: 1px solid rgba(189, 22, 34, 0.1);
    text-align: center; /* <-- centrado horizontal */
}

.mobile-dropdown.active {
    display: block;
    text-align: center; /* <-- centrado horizontal */
}

.mobile-dropdown .lang-option {
    display: inline-block; /* <-- para centrar los enlaces */
    margin: 2px 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .language-selector.desktop-only {
        display: none;
    }

    .mobile-language-item {
        display: block;
    }

    .nav-right {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: center 0.3s;
        padding: 30px 20px;
        overflow-y: auto;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: center; /* <-- centrado horizontal */
        justify-content: center; /* <-- centrado vertical si hay espacio */
        text-align: center; /* <-- centrado texto */
    }

    .nav-links li {
        margin: 12px 0;
        width: 100%;
        display: flex;
        justify-content: center; /* <-- centrado horizontal */
    }

    .nav-links li:not(.mobile-language-item) a {
        display: block;
        padding: 15px 20px;
        border-radius: 8px;
        transition: background 0.3s ease;
        text-align: center; /* <-- centrado texto */
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .mobile-btn {
        padding: 12px 15px;
    }

    .lang-option {
        padding: 10px 12px;
    }

    .lang-flag {
        font-size: 16px;
    }

    .lang-name {
        font-size: 13px;
    }
}

/* ===== ESTADOS ACTIVOS ===== */
.mobile-dropdown.active {
    display: block;
}

.lang-option.active {
    background: rgba(189, 22, 34, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.lang-option.active .lang-name {
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* El error es por la sintaxis de linear-gradient, debe ir separado de url y no dentro de los paréntesis */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
            no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 48px);
    margin-bottom: 20px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(18px, 2.5vw, 20px);
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--primary);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 22, 34, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Destinos */
.section-title {
    text-align: center;
    margin: 80px 0 40px;
    font-size: clamp(28px, 4vw, 32px);
    font-weight: 300;
    color: var(--text);
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

.destinos {
    padding: 60px 0;
    background-color: var(--white);
}

.destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.destino-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.destino-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.destino-info {
    padding: 25px;
}

.destino-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text);
}

.destino-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.destino-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

/* Servicios */
.servicios {
    padding: 60px 0;
    background-color: var(--light-bg);
}

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

.servicio-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.servicio-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text);
}

/* Testimonios */
.testimonios {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.testimonio-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: 8px;
    position: relative;
}

.testimonio-card:before {
    content: '"';
    font-size: 120px;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: serif;
}

.testimonio-card p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
}

.testimonio-author {
    font-weight: 600;
    color: var(--primary);
}

/* Contacto */
.contacto {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contacto-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contacto-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text);
}

.contacto-info p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.contacto-details {
    margin-top: 30px;
}

.contacto-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text);
}

.contacto-details i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.contacto-form textarea {
    height: 150px;
    resize: vertical;
}

.main-content {
    flex: 1 0 auto;
}

/* Login Section */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url("https://images.unsplash.com/photo-1506929562872-bb421503ef21?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
            no-repeat center center/cover;
}

.login-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.login-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 25px;
    text-align: center;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 300;
}

.login-body {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-with-icon input {
    padding-left: 45px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 22, 34, 0.3);
}

.btn-google {
    background-color: var(--white);
    color: var(--text);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.btn-google:hover {
    background-color: #f9f9f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-google i {
    margin-right: 10px;
    color: #db4437;
    font-size: 18px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 404 Content */
.error-404 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("https://images.unsplash.com/photo-1506197603052-3cc9c3a201bd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
            no-repeat center center/cover;
    color: var(--white);
}

.error-500 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("https://images.unsplash.com/photo-1506197603052-3cc9c3a201bd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
            no-repeat center center/cover;
    color: var(--white);
}

.error-403 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("https://images.unsplash.com/photo-1506929562872-bb421503ef21?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
            no-repeat center center/cover;
    color: var(--white);
}

.error-503 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("https://images.unsplash.com/photo-1506929562872-bb421503ef21?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
            no-repeat center center/cover;
    color: var(--white);
}

.error-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.error-content h1 {
    font-size: clamp(60px, 10vw, 120px);
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
}

.error-content h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 20px;
    font-weight: 300;
}

.error-content p {
    font-size: clamp(16px, 2.5vw, 18px);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Responsive */

@media (max-width: 768px) {
    .error-container {
        padding: 20px;
    }

    .footer-links li {
        margin: 10px 15px;
    }
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 15px;
}

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

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--white);
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.copyright {
    font-size: 14px;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s;
        padding-top: 30px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero .btn {
        display: block;
        width: fit-content;
        margin: 0 auto 15px;
    }

    .hero .btn-outline {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .destinos-grid {
        grid-template-columns: 1fr;
    }

    .contacto-container {
        grid-template-columns: 1fr;
    }

    .footer-links li {
        margin: 10px 15px;
    }
}
