/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #85B6FF;
}

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

a {
    text-decoration: none;
    color: #2c3e50;
}

ul {
    list-style: none;
}

/* Header styles */
header {
    background-color: #FC5628;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

header img {
    height: 80px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s;
}

nav ul li a:hover, 
nav ul li a.active {
    color: #3498db;
}

/* Hero section - MEJORADO */
.hero {
    position: relative;
    color: white;
    padding: 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Background image responsiva - reemplaza con tu banner1.jpg */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                      url('latin-travel-experience.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                      url('latin-travel-experience.jpg');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Map section - MEJORADO con background */
.map-section {
    padding: 3rem 0;
    position: relative;
    /* Background de océano - reemplaza con tu oceano.jpg */
    background-image: linear-gradient(rgba(240, 252, 252, 0.9), rgba(240, 252, 252, 0.9)), 
                      url('oceano.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


.map-section {
    background-image: linear-gradient(rgba(240, 252, 252, 0.9), rgba(240, 252, 252, 0.9)), 
                      url('oceano.jpg');
}


.map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    background-color: rgba(240, 252, 252, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative; /* Needed for the pseudo-element */
    z-index: 1; /* Needed for the pseudo-element */
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('oceana.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    border-radius: 8px;
}

#map {
    flex: 1;
    min-width: 300px;
    height: 600px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#map svg {
    width: 100%;
    height: 100%;
}

#map path {
    stroke: #666;
    stroke-width: 1;
    fill: #F5CA8E;
    transition: fill 0.3s ease;
    cursor: pointer;
}

#map path:hover {
    fill: #FF9B1C;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #F5CA8E;
    border-radius: 8px;
    color: #666;
    font-size: 1.1rem;
    text-align: center;
}

#country-info {
    flex: 1;
    min-width: 300px;
    padding: 1.5rem;
    background-color: rgba(255, 229, 196, 0.95);
    border-radius: 8px;
    min-height: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

#country-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.country-preview {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

/* Country details page */
.country-details {
    padding: 3rem 0;
}

.back-button {
    margin-bottom: 2rem;
}

.back-button a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #FF6600;
    color: white;
    border-radius: 4px;
    transition: background-color 0.4s;
}

.back-button a:hover {
    background-color: #FF9B1C;
}

#country-detail-content {
    background-color: #FFE5C4;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.country-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.country-header img {
    width: 80px;
    height: auto;
    margin-right: 1.5rem;
}

.tour-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: rgba(255, 255, 255, 0.9);
}

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

.tour-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.tour-card .price {
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.tour-card .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.tour-card .button:hover {
    background-color: #2980b9;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Footer styles */
footer {
    background-color: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.footer-section h3 {
	color: #e53e3e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
	background: #e53e3e;
    color: white;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}
.footer-section p {
    margin-bottom: 0.5rem;
    color: #a0aec0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #e53e3e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #c53030;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}


/* Responsive styles - MEJORADO */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .hero {
        min-height: 400px;
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .map-section {
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }
    
    .map-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    #map {
        height: 400px;
    }
    
    #map, #country-info {
        width: 100%;
    }
    
    .footer-section {
        flex: 100%;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    #map {
        height: 300px;
    }
}

/* Card Section */
.card-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
    cursor: pointer; /* Add cursor pointer */
    transition: transform 0.2s ease-in-out; /* Add transition for smooth effect */
}

.card-section:active {
    transform: scale(0.98); /* Amplify effect on click */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 280px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.card-content p {
    font-size: 1rem;
    color: #666;
}

/* Email Section */
.email-section {
    background-color: #43ccf9;
    padding: 4rem 0;
    color: #fff;
}

.email-section .section-title {
    color: #fff;
    margin-bottom: 1rem;
}

.email-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #f1f1f1;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-group select[multiple] {
    height: 120px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #FC5628;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: #e04a1f;
    transform: translateY(-2px);
}

/* Responsive styles for Email Section */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
