/* Estilos generales */
:root {
    --primary-color: hsl(115, 87%, 31%); /* Azul del río Paraná */
    --secondary-color: #ffffcc; /* Amarillo suave del sol, ajustado */
    --accent-color: #30ae1a; /* Verde vibrante de Naturaleza */
    --background-light: #f3f7f2; /* Beige claro del fondo */
    --background-dark: #268c07; /* Gris oscuro para contraste */
    --text-dark: #000000;
    --text-light: #ffffff; /* Ajustado para mejor contraste */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif, Arial, Helvetica; /* Fallback añadido */
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Tipografías */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Barra de navegación */
.navbar {
    background-color: var(--background-dark);
    box-shadow: 0 2px 5px rgb(53, 152, 17);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color) !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.nav-link {
    font-size: 1.1rem;
    color: var(--text-light) !important;
    margin-left: 20px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Sección Hero */
.hero {
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.643);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Secciones generales */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section h2::after {
    content: '';
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Tarjetas de turismo */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Optimizado */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    background-color: rgba(252, 250, 250, 0.64);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.card-text {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Carrusel */
.carousel-inner {
    border-radius: 15px;
    overflow: hidden;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
}

/* Formulario */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--background-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #1a8d2d;
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 40px 0;
    font-size: 1rem;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color);
}

/* Mapa */
#map {
    height: 400px;
    width: 100%;
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsividad */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .nav-link {
        font-size: 1rem;
        margin-left: 10px;
    }

    .card-img-top {
        height: 150px;
    }

    .carousel-item img {
        height: 300px;
    }

    #map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 40px 0;
    }

    .contact-form {
        padding: 15px;
    }
}

.btn-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border: none;
    transition: background 0.3s, color 0.3s;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}