/* Estilos personalizados para Costa Rica Original */

/* Paleta de colores (referencia):
Verde oscuro: #003E36
Amarillo dorado: #E8BD33
Blanco puro: #FFFFFF
Gris oscuro sutil (texto): #4A4A4A
Verde suave para fondos alternativos: #1F5D51
*/

/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

body {
    font-family: 'Lato', sans-serif;
    color: #4A4A4A;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #003E36;
    font-weight: 600;
}

/* Estilos para la Hero Section */
#hero-section {
    position: relative;
    padding: 4rem 0;
}

#hero-section h1 {
    color: #003E36;
    margin-bottom: 1rem;
}

#hero-section h2 {
    color: #1F5D51;
    margin-bottom: 1.5rem;
}

/* Estilos para Typed.js */
#typed-output {
    color: #E8BD33;
    font-weight: bold;
    min-height: 2em;
    display: block;
    position: relative;
    overflow: hidden;
}

/* Estilos para el cursor de Typed.js */
.typed-cursor {
    color: #E8BD33;
    font-weight: bold;
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
    -webkit-animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
    50% { opacity: 0.0; }
}

@-webkit-keyframes typedjsBlink {
    0% { opacity: 1; }
    50% { opacity: 0.0; }
    100% { opacity: 1; }
}

/* Estilos para la animación de desvanecimiento */
.typed-fade-out {
    opacity: 0;
    transition: opacity 0.25s;
}

/* Estilos para botones */
.btn-primary {
    background-color: #E8BD33;
    border-color: #E8BD33;
    color: #003E36;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #d9ae2b;
    border-color: #d9ae2b;
    color: #003E36;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-secondary {
    border-color: #1F5D51;
    color: #1F5D51;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background-color: #1F5D51;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilos para imágenes */
.img-fluid.rounded.shadow {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.img-fluid.rounded.shadow:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Estilos para enlaces */
a {
    color: #1F5D51;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E8BD33;
    text-decoration: none;
}

/* Estilos para el selector de idioma */
header .text-end a,
header [role="navigation"] a {
    margin: 0 5px;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

header .text-end a:hover,
header [role="navigation"] a:hover {
    background-color: rgba(31, 93, 81, 0.1);
}

header .text-end a.fw-bold,
header [role="navigation"] a.fw-bold {
    color: #E8BD33;
}

/* Estilos para el menú de navegación */
header .nav .nav-link {
    color: #003E36;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

header .nav .nav-link:hover {
    color: #E8BD33;
}

header .nav .nav-link.active {
    color: #E8BD33;
    font-weight: 700;
}

/* Estilos para el menú móvil */
.navbar-toggler {
    border-color: #003E36;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 62, 54, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 62, 54, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Alineación del botón de hamburguesa a la derecha */
.container-fluid.d-flex.justify-content-end .navbar-toggler {
    margin-left: auto;
}

/* Estilos para el menú desplegable en móvil */
.navbar-collapse {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 1rem;
    margin-top: 0.5rem;
    z-index: 1000;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
}

/* Asegurar que el menú se despliegue desde la derecha */
.dropdown-menu-end {
    left: auto !important;
    right: 0 !important;
}

/* Ajustes adicionales para el menú móvil */
.navbar-nav {
    width: 100%;
}

.navbar-nav .nav-item {
    margin-bottom: 0.5rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(0, 62, 54, 0.05);
}

.navbar-nav .nav-link.active {
    background-color: rgba(232, 189, 51, 0.1);
    color: #E8BD33;
}

/* Estilos para Features Section */
#features-section {
    background-color: #f8f9fa;
}

#features-section .card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

#features-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

#features-section .feature-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#features-section .feature-icon i {
    color: #E8BD33;
    transition: all 0.3s ease;
}

#features-section .card:hover .feature-icon i {
    transform: scale(1.2);
}

/* Estilos para Benefits Section */
#benefits-section .benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(232, 189, 51, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#benefits-section .d-flex:hover .benefit-icon {
    background-color: rgba(232, 189, 51, 0.2);
    transform: scale(1.1);
}

#benefits-section .benefit-icon i {
    color: #E8BD33;
}

#benefits-section h3 {
    margin-bottom: 0.5rem;
    color: #003E36;
}

/* Estilos generales para secciones */
section {
    position: relative;
    overflow: hidden;
}

section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

section h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #E8BD33;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Estilos para Itineraries Section */
#itineraries-section {
    background-color: #f8f9fa;
}

#itineraries-section .card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

#itineraries-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

#itineraries-section .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

#itineraries-section .card:hover .card-img-top {
    transform: scale(1.05);
}

#itineraries-section .itinerary-days {
    background-color: rgba(0, 62, 54, 0.8);
    color: white;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

#itineraries-section .card-title {
    color: #003E36;
    font-weight: 600;
    margin-bottom: 1rem;
}

#itineraries-section .list-unstyled li {
    position: relative;
    padding-left: 5px;
}

#itineraries-section .list-unstyled li i {
    font-size: 0.8rem;
}

#itineraries-section .card-footer {
    padding-top: 1rem;
}

#itineraries-section .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

/* Estilos para los tours dentro de los itinerarios */
#itineraries-section .border.rounded {
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

#itineraries-section .border.rounded:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Estilos para el botón de ver itinerario completo */
#itineraries-section .btn-outline-secondary {
    margin-top: 1rem;
}

/* Estilos para Testimonials Section */
#testimonials-section .testimonial-card {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    padding: 1rem;
}

#testimonials-section .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

#testimonials-section .testimonial-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid #E8BD33;
}

#testimonials-section .rating {
    font-size: 0.8rem;
}

#testimonials-section .testimonial-text {
    position: relative;
    padding: 1rem;
    font-style: italic;
    color: #4A4A4A;
    line-height: 1.6;
}

#testimonials-section .bi-quote {
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    color: #E8BD33;
}

/* Estilos para Contact Section */
#contact-section {
    background-color: #f8f9fa;
}

#contact-section .card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

#contact-section .form-control {
    border-radius: 5px;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

#contact-section .form-control:focus {
    border-color: #1F5D51;
    box-shadow: 0 0 0 0.2rem rgba(31, 93, 81, 0.25);
}

#contact-section .form-label {
    font-weight: 600;
    color: #003E36;
}

#contact-section .contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(232, 189, 51, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#contact-section .d-flex:hover .contact-icon {
    background-color: rgba(232, 189, 51, 0.2);
    transform: scale(1.1);
}

#contact-section .contact-icon i {
    color: #E8BD33;
}

/* Estilos para reCAPTCHA */
.g-recaptcha {
    margin-bottom: 1rem;
}

/* Estilos para alertas del formulario */
#formSuccess, #formError {
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Estilos para campos inválidos */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Estilos para FAQ Section */
#faq-section .accordion-item {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

#faq-section .accordion-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

#faq-section .accordion-button {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #003E36;
    background-color: #fff;
    padding: 1.25rem;
}

#faq-section .accordion-button:not(.collapsed) {
    color: #003E36;
    background-color: rgba(232, 189, 51, 0.05);
    box-shadow: none;
}

#faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(232, 189, 51, 0.5);
}

#faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23003E36'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#faq-section .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23003E36'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#faq-section .accordion-body {
    padding: 1.5rem;
    background-color: #fff;
    color: #4A4A4A;
    line-height: 1.7;
}

#faq-section .accordion-button i {
    color: #E8BD33;
    margin-right: 10px;
    transition: all 0.3s ease;
}

#faq-section .accordion-button:hover i {
    transform: scale(1.2);
}

/* Estilos para Bottom CTA Section */
#cta-bottom-section {
    background-color: #003E36 !important;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

#cta-bottom-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://source.unsplash.com/random/1600x900/?costa-rica,tropical');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

#cta-bottom-section .container {
    position: relative;
    z-index: 1;
}

#cta-bottom-section h2 {
    color: white;
    margin-bottom: 1rem;
}

#cta-bottom-section h2:after {
    background-color: #E8BD33;
}

#cta-bottom-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

#cta-bottom-section .btn-light {
    background-color: white;
    color: #003E36;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

#cta-bottom-section .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#cta-bottom-section .btn-outline-light {
    color: white;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

#cta-bottom-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Estilos para Footer */
.footer {
    background-color: #212529;
    color: white;
    position: relative;
}

.footer h3, .footer h4 {
    color: white;
    font-weight: 600;
}

.footer h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #E8BD33;
    margin-top: 10px;
}

.footer .social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer .social-icons a:hover {
    background-color: #E8BD33;
    color: #003E36 !important;
    transform: translateY(-3px);
}

.footer .list-unstyled li a {
    transition: all 0.3s ease;
    display: inline-block;
    padding: 3px 0;
}

.footer .list-unstyled li a:hover {
    color: #E8BD33 !important;
    transform: translateX(5px);
}

.footer .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
}

.footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.footer .language-selector a {
    transition: all 0.3s ease;
}

.footer .language-selector a:hover {
    color: #E8BD33 !important;
}

.footer .btn-primary {
    background-color: #E8BD33;
    border-color: #E8BD33;
}

.footer .btn-primary:hover {
    background-color: #d9ae2b;
    border-color: #d9ae2b;
}