/* Custom styles based on the React component's TailwindCSS classes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1D2F6F;
    background: linear-gradient(135deg, #1D2F6F 0%, #1D2F6F 100%);
}

/* Header */
.header {
    background: linear-gradient(135deg, #1D2F6F 0%, #1D2F6F 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 3rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffeb3b;
    object-fit: cover;
    background-color: white;
    padding: 3px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffeb3b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Navigation */
.nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav a:hover {
    background: rgba(255,235,59,0.2);
    transform: translateY(-2px);
    border: 1px solid #ffeb3b;
}

.nav a.active {
    background: #ffeb3b;
    color: #1D2F6F;
    font-weight: 700;
    border: 1px solid #ffeb3b;
    box-shadow: 0 2px 8px rgba(255,235,59,0.4);
}

/* Hamburger menu button */
.hamburger-menu {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu .bar:nth-child(1) { top: 0; }
.hamburger-menu .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu .bar:nth-child(3) { bottom: 0; }

/* Hamburger menu active state (optional animation) */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}


/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
    background: linear-gradient(to bottom, #e3f2fd, #f8f9fa);
}

/* Page Sections */
.page {
    display: none;
}
.page.active {
    display: block;
}

/* Hero */
.hero {
    background-image: url('../imagendefondo/fondo2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #ffeb3b;
}

.hero-content p {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    background: linear-gradient(45deg, #ffeb3b, #ffc107);
    color: #1D2F6F;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255,235,59,0.3);
}

.cta-button:hover {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,193,7,0.4);
}

/* Carousel */
.carousel-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.carousel {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
    text-align: center;
}

.carousel-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffeb3b;
}

.carousel-content p {
    font-size: 1.1rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.8rem;
    color: #1D2F6F;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255,255,255,0.8);
}

.dot.active {
    background-color: #ffeb3b;
    border-color: #ffeb3b;
}

/* About */
.about {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1D2F6F;
    text-shadow: 1px 1px 2px rgba(21,101,192,0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(30,136,229,0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #ffeb3b;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30,136,229,0.15);
}

.about-card h4 {
    color: #1D2F6F;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Secciones */
.tour-description, .ethnia-day {
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 1000px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tour-description.visible, .ethnia-day.visible {
    opacity: 1;
    transform: translateY(0);
}

.tour-description h3, .ethnia-day h3 {
    color: #1D2F6F;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(21,101,192,0.1);
}

.tour-description p, .ethnia-day p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.image-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

/* Formulario */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30,136,229,0.1);
    border-top: 5px solid #ffeb3b;
}

.form-container h2 {
    text-align: center;
    color: #1D2F6F;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1D2F6F;
    box-shadow: 0 0 0 3px rgba(30,136,229,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    background: linear-gradient(45deg, #1D2F6F, #1D2F6F);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30,136,229,0.3);
}

.submit-btn:hover {
    background: linear-gradient(45deg, #1D2F6F, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,136,229,0.4);
}

/* Footer */
.footer {
    font-size: 1.1rem; /* Mantenemos este, ya que es el tamaño base del footer */
    background: linear-gradient(135deg, #1D2F6F 0%, #0d47a1 100%);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 2rem; /* Agrandado de 1.8rem a 2rem */
    margin-bottom: 1rem;
    color: #ffeb3b;
    font-weight: 700;
}

.footer-section p {
    font-size: 1.1rem; /* Agrandado de 0.95rem a 1.1rem */
    margin-bottom: 0.5rem;
}

.footer-section ul { /* Añadido para los ítems de lista en el footer */
    list-style: none; /* Eliminar viñetas si las hubiera */
    padding: 0;
    margin: 0;
}

.footer-section ul li { /* Agrandar las letras de los ítems de lista del horario */
    font-size: 1.05rem; /* Ajusta según necesites */
    margin-bottom: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-section a img {
    width: 45px; /* Agrandado de 35px a 45px */
    height: 45px; /* Agrandado de 35px a 45px */
    border-radius: 50%;
    background: #ffeb3b;
    padding: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.footer-section a img:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,235,59,0.3);
    color: #e3f2fd;
    font-size: 1rem; /* Agrandado de 0.9rem a 1rem */
}

/* Responsive */
@media (max-width: 1024px) {
    .header-content, .carousel-container, .about, .form-container, .footer-content {
        padding: 0 1rem;
    }

    .hero-content h2 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    .hero-content p {
        font-size: clamp(1rem, 2.5vw, 1.8rem);
    }

    .carousel {
        height: 350px;
    }

    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Ocultar el nav normal y mostrar hamburguesa en pantallas más pequeñas */
    .nav {
        display: none; /* Ocultar la navegación por defecto en móviles */
    }

    .hamburger-menu {
        display: flex; /* Mostrar el botón de hamburguesa */
        flex-direction: column;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row; /* Mantener en fila el logo y el botón de hamburguesa */
        justify-content: space-between; /* Distribuye el espacio entre logo y hamburguesa */
        align-items: center;
        gap: 0; /* No gap entre logo y hamburguesa */
    }

    .logo {
        margin-bottom: 0;
        margin-right: 0; /* Eliminar margen derecho cuando está en modo móvil */
    }

    .nav {
        /* Estilos para el menú móvil */
        display: flex; /* Se cambia a flex para controlar su visualización */
        position: absolute;
        top: 70px; /* Ajusta según la altura de tu header */
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1D2F6F 0%, #1D2F6F 100%); /* Fondo del menú desplegable */
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        z-index: 999; /* Debajo del botón de hamburguesa */
    }

    .nav.nav-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 0.8rem; /* Espacio entre los elementos del menú */
    }

    .nav a {
        width: 90%;
        max-width: 300px;
        text-align: center;
        padding: 0.8rem 1rem; /* Aumentar el padding para hacer clic más fácilmente */
        background: rgba(255,235,59,0.1); /* Ligero fondo para los elementos del menú */
        border-radius: 5px;
    }

    .nav a:hover {
        background: rgba(255,235,59,0.3);
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .carousel {
        height: 300px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .carousel-content h3 {
        font-size: 1.5rem;
    }

    .carousel-content p {
        font-size: 0.9rem;
    }

    .about h3, .tour-description h3, .ethnia-day h3 {
        font-size: 2rem;
    }

    .tour-description, .ethnia-day {
        padding: 20px 15px;
    }

    .image-gallery {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-section h4 {
        font-size: 1.8rem; /* Ajustado para pantallas más pequeñas */
    }

    .footer-section p, .footer-section ul li, .footer-bottom { /* Ajustado para pantallas más pequeñas */
        font-size: 0.95rem;
    }

    .footer-section a img { /* Ajustado para pantallas más pequeñas */
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    .logo h1 {
        font-size: 1.5rem;
    }

    .nav a {
        width: 90%;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .carousel {
        height: 250px;
    }

    .carousel-content h3 {
        font-size: 1.2rem;
    }
    .carousel-content p {
        font-size: 0.8rem;
    }

    .about-card {
        padding: 1.5rem;
    }
    .about-card h4 {
        font-size: 1.1rem;
    }
    .about-card p {
        font-size: 0.9rem;
    }

    .tour-description h3, .ethnia-day h3 {
        font-size: 1.8rem;
    }
    .tour-description p, .ethnia-day p {
        font-size: 0.9rem;
    }

    .form-container {
        padding: 1.5rem;
    }
    .form-container h2 {
        font-size: 1.5rem;
    }
    .form-group input, .form-group select, .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .footer-section h4 {
        font-size: 1.6rem; /* Ajustado aún más para pantallas muy pequeñas */
    }

    .footer-section p, .footer-section ul li, .footer-bottom { /* Ajustado aún más para pantallas muy pequeñas */
        font-size: 0.9rem;
    }

    .footer-section a img { /* Ajustado aún más para pantallas muy pequeñas */
        width: 35px;
        height: 35px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem; /* Agrandado de 3.5rem a 4.5rem */
    height: 4.5rem; /* Agrandado de 3.5rem a 4.5rem */
    background-color: #48bb78; /* bg-green-500 */
    color: #fff;
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    transition: all 150ms ease-in-out;
}

.whatsapp-float-button:hover {
    background-color: #38a169; /* hover:bg-green-600 */
    transform: scale(1.1);
}

/* Ajustes específicos para la imagen de WhatsApp dentro del botón */
.whatsapp-float-button img {
    width: 55px; /* Agrandado de 45px a 55px */
    height: 55px; /* Agrandado de 45px a 55px */
}