/* ============================================
   RESET Y VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #657994;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

p { text-align: center;
}
html {
    scroll-behavior: smooth;
    padding-top: 60px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #94a8bc;
    line-height: 1.6;
}
span.viajes {
    color: var(--white);
    font-weight:lighter;
    font-style: italic;
}

span.global {
    color: var(--white);
    font-weight: 300;
    font-style: italic;
    
}


/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: slideDown 0.5s ease;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background-color: var(--primary-color);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    position: fixed;
    top: auto;
    right: 0;
    width: 100%;
    z-index: 999;
    box-shadow: var(--shadow);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* ============================================
   HERO SECTION CON PARALLAX
   ============================================ */
.parallax-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.parallax-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
}

.fade-in-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.fade-in-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: rgb(5, 109, 144);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    animation: fadeInUp 1s ease 0.6s both;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 44, 42, 0.4);
    background-color: #204c8a;
}

/* ============================================
   CONTAINER Y SECCIONES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin: 3rem 0 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
}

.back-link {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.page-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ============================================
   DESTINATION CARDS (ÍNDICE)
   ============================================ */
.destinations-section {
    padding: 4rem 1rem;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.destination-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: slideUp 0.6s ease backwards;
}

.destination-card:nth-child(1) { animation-delay: 0.1s; }
.destination-card:nth-child(2) { animation-delay: 0.2s; }
.destination-card:nth-child(3) { animation-delay: 0.3s; }
.destination-card:nth-child(4) { animation-delay: 0.4s; }

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: var(--transition);
    z-index: 2;
}

.destination-card:hover .card-image::before {
    background: rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ============================================
   REGIONS GRID (ARGENTINA PAGE)
   ============================================ */
.regions-section {
    padding: 3rem 1rem;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.region-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.region-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.region-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.region-content {
    padding: 1.5rem;
}

.region-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.region-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.region-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.region-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* ============================================
   PHOTO GRID (GALERÍA 5x5)
   ============================================ */
.gallery-section {
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-tools {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-tools-title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.gallery-tools-text,
.gallery-upload-help {
    margin: 0;
    color: #4d5c6d;
    font-size: 0.95rem;
}

.gallery-upload-input {
    display: none;
}

.gallery-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #204c8a 0%, #3693ad 100%);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns, 5), 1fr);
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

.photo-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #3693ad 0%, #6399f5 100%);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeIn 0.5s ease backwards;
    border: 0;
}

.photo-item:nth-child(1) { animation-delay: 0.05s; }
.photo-item:nth-child(2) { animation-delay: 0.1s; }
.photo-item:nth-child(3) { animation-delay: 0.15s; }
.photo-item:nth-child(4) { animation-delay: 0.2s; }
.photo-item:nth-child(5) { animation-delay: 0.25s; }

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-lg);
}

.photo-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: var(--transition);
}

.photo-item:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.photo-item-badge {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.photo-item-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    border: 2px dashed rgba(32, 76, 138, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(32, 76, 138, 0.08));
    cursor: default;
}

.photo-item-empty:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.photo-item-empty::after {
    display: none;
}

.photo-item-empty-number {
    font-weight: 700;
    color: var(--primary-color);
}

.photo-item-empty-text {
    color: #5f7186;
    font-size: 0.9rem;
}

/* ============================================
   MODAL IMAGE ZOOM
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.modal-nav {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 56px;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    z-index: 2002;
}

.modal-nav i {
    display: none;
}

.modal-nav::before {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.prev-btn::before {
    content: '\2039';
}

.next-btn::before {
    content: '\203A';
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -80px;
}

.next-btn {
    right: -80px;
}

.modal-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    text-align: left;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgb(5, 109, 144);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .modal-nav {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }

    .prev-btn {
        left: -60px;
    }

    .next-btn {
        right: -60px;
    }

    .photo-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .fade-in-title {
        font-size: 2.5rem;
    }

    .fade-in-subtitle {
        font-size: 1.1rem;
    }

    .gallery-tools {
        padding: 1rem;
        align-items: flex-start;
    }

    .gallery-upload-button {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        gap: 1rem;
    }

    .modal-nav {
        position: relative;
        top: auto;
        transform: none;
        width: 50px;
        min-width: 50px;
        min-height: 50px;
        padding: 0.5rem;
        font-size: 1.2rem;
    }

    .prev-btn,
    .next-btn {
        position: static;
        left: auto;
        right: auto;
    }

    .modal-counter {
        position: static;
        transform: none;
        margin-top: 1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h2 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.5rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .fade-in-title {
        font-size: 1.8rem;
    }

    .fade-in-subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .modal-image {
        max-height: 60vh;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .regions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .weather-card {
            
            max-height: 1000px;
            
        }

}
