@font-face {
    font-family: 'Taco Salad';
    src: url('../taco-salad-font/TacoSalad-vmWM.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* General Body & Backgrounds */
body {
    padding-top: 56px;
    background-color: #fdfaef; /* Crema/Blanco Roto */
    color: #333; /* Darker text for readability */
}

.bg-light {
    background-color: #f8f5e8 !important; /* A slightly darker cream for light sections */
}

/* Navbar */
.navbar.bg-dark {
    background-color: rgba(204, 229, 63, 1) !important; /* Nuevo color para contrastar con el logo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease-in-out;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    color: rgba(12, 40, 79, 1) !important; /* Azul oscuro del logo */
    transition: color 0.3s, background-color 0.3s;
}

/* Use vibrant green for active and hover links */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show > .nav-link,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #2cca71 !important; /* Verde Vibrante */
    background-color: rgba(0, 0, 0, 0.05); /* Ligeramente más oscuro en hover/active */
    border-radius: 5px;
}

/* Main Header Carousel/Slider */
.main-slider {
    height: 450px; /* Fixed height for desktop */
}

.carousel-item,
.swiper-slide {
    height: 100%; /* Fill parent .main-slider */
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

@media (max-width: 767px) { /* Adjust for typical mobile screens */
    .main-slider {
        height: 200px; /* Further reduced fixed height for mobile */
    }
    .carousel-item,
    .swiper-slide {
        height: 100%; /* Ensure they fill the reduced height */
    }
}

/* Buttons and Accents */
.btn-primary {
    background-color: #2cca71; /* Verde Vibrante */
    border-color: #2cca71;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: #27ae60; /* Darker green */
    border-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Section Headers */
h1, h2 { /* Apply Taco Salad font to all headings */
    font-family: 'Taco Salad', cursive;
    color: #0a192f; /* Azul Oscuro */
    font-weight: bold;
    margin-bottom: 2rem !important;
}

/* Cards */
.card {
    border: 1px solid #e0e0e0;
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Footer */

footer.bg-dark {

    background-color: #0a192f !important; /* Azul Oscuro */

}



/* Fix for fixed-top navbar obscuring content on scroll */

section[id] {

    scroll-margin-top: 70px;

}



/* Style for placeholder logo in menu cards */

.card-img-top.is-placeholder {

    width: 60%;

    height: auto;

    object-fit: contain;

    margin: 2rem auto;

    opacity: 0.3;

}

/* Custom color for navbar-toggler-icon */
.navbar-dark .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%2812, 40, 79, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Custom class for sections to use navbar background color */
.bg-navbar-color {
    background-color: rgba(204, 229, 63, 1) !important;
}

/* Survey-specific styles */
.survey-container {
    background: #fdfaef; /* Crema/Blanco Roto */
    padding: 1.5rem; /* Adjusted padding */
    max-width: 900px; /* Control max width */
    margin: 0 auto; /* Center it */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Minimum height for better layout */
    position: relative;
}

.survey-header {
    text-align: center;
    margin-bottom: 1rem; /* Adjusted margin */
    padding-bottom: 0.8rem; /* Adjusted padding */
    border-bottom: 1px solid #eee;
}

.survey-title {
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: bold;
    color: #0a192f; /* Azul Oscuro */
    margin-bottom: 0.4rem; /* Adjusted margin */
    line-height: 1.2; /* Adjusted line-height */
    text-shadow: none;
}

.survey-subtitle {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: #333; /* Darker text */
    margin-bottom: 0.8rem; /* Adjusted margin */
    text-shadow: none;
}

.lang-selector {
    position: absolute;
    top: 0.8rem; /* Adjusted position */
    right: 0.8rem; /* Adjusted position */
    z-index: 1001;
}

.lang-selector select {
    padding: 0.4rem 0.8rem; /* Adjusted padding */
    font-size: 0.8rem; /* Adjusted font size */
    border: 1px solid rgba(12, 40, 79, 0.6); /* Azul oscuro */
    background: rgba(12, 40, 79, 0.1);
    backdrop-filter: none;
    cursor: pointer;
    font-weight: 600;
    color: #0a192f; /* Azul Oscuro */
    text-shadow: none;
    border-radius: 4px;
}

.lang-selector select option {
    background: #fdfaef; /* Crema/Blanco Roto */
    color: #0a192f;
}

#surveyContent {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1; /* Allow content to grow */
}

#surveyForm {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.questions-container {
    flex: 1;
    overflow-y: auto; /* Allow internal scrolling if content overflows */
    position: relative;
    margin-bottom: 0.8rem; /* Adjusted margin */
    min-height: 0;
    padding-right: 0.5rem; /* For scrollbar space */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.questions-container::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.questions-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}


.questions-grid {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    height: 100%;
}

.question-step {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Adjusted gap */
    padding: 0 0.5rem; /* Adjusted padding */
}

.question-box {
    background: transparent;
    padding: 0.3rem 0; /* Adjusted padding */
    display: flex;
    flex-direction: column;
}

.question-title {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: bold;
    color: #0a192f; /* Azul Oscuro */
    margin-bottom: 0.5rem; /* Adjusted margin */
    line-height: 1.2; /* Adjusted line-height */
    text-shadow: none;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* Adjusted gap */
}

/* Pregunta 4 (checkbox) con 2 columnas */
#q4 .options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem 0.8rem; /* Adjusted gap */
}

#q4 .option-label {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    padding: 0.4rem 0.6rem; /* Adjusted padding */
}

.option-label {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem; /* Adjusted padding */
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-size: clamp(0.9rem, 1.4vw, 1.2rem);
    color: #333; /* Darker text */
    text-shadow: none;
    border-radius: 4px;
    line-height: 1.2; /* Added line-height */
}

.option-label:hover {
    background: rgba(12, 40, 79, 0.1); /* Dark blue light background */
    color: #0a192f; /* Dark blue */
    transform: translateX(3px); /* Smaller transform */
    text-shadow: none;
}

.option-label input {
    margin-right: 0.6rem; /* Adjusted margin */
    width: clamp(14px, 1.2vw, 18px);
    height: clamp(14px, 1.2vw, 18px);
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #2cca71; /* Verde Vibrante */
}

.option-label input:checked + span {
    font-weight: 700;
    color: #0a192f; /* Dark blue */
    text-shadow: none;
}

.option-label span {
    flex: 1;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem; /* Adjusted gap */
    margin-top: 0.8rem; /* Adjusted margin */
    padding-top: 0.5rem; /* Adjusted padding */
    border-top: 1px solid #eee;
}

.nav-btn {
    flex: 1;
    padding: 0.6rem 0.8rem; /* Adjusted padding */
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: bold;
    border: 2px solid #0a192f; /* Azul Oscuro */
    background: rgba(12, 40, 79, 0.1); /* Azul Oscuro transparente */
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem; /* Adjusted gap */
    color: #0a192f; /* Azul Oscuro */
    text-shadow: none;
    backdrop-filter: none;
    border-radius: 4px;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn-prev:hover:not(:disabled) {
    background: rgba(12, 40, 79, 0.2);
    border-color: #0a192f;
    transform: translateX(-2px); /* Smaller transform */
}

.nav-btn-next {
    border-color: #2cca71; /* Verde Vibrante */
    background: rgba(44, 202, 113, 0.1); /* Verde Vibrante transparente */
    color: #2cca71; /* Verde Vibrante */
}

.nav-btn-next:hover:not(:disabled) {
    background: rgba(44, 202, 113, 0.2);
    border-color: #2cca71;
    transform: translateX(2px); /* Smaller transform */
    box-shadow: 0 4px 10px rgba(44, 202, 113, 0.2);
}

.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 0.4rem; /* Adjusted gap */
    margin-bottom: 0.8rem; /* Adjusted margin */
}

.progress-dot {
    width: 0.6rem; /* Adjusted size */
    height: 0.6rem; /* Adjusted size */
    border-radius: 50%;
    background: rgba(12, 40, 79, 0.3); /* Dark blue transparent */
    border: 1px solid rgba(12, 40, 79, 0.5); /* Dark blue */
    transition: all 0.3s;
    box-shadow: none;
}

.progress-dot.active {
    background: #2cca71; /* Verde Vibrante */
    border-color: #2cca71;
    transform: scale(1.1); /* Smaller scale */
    box-shadow: 0 0 8px rgba(44, 202, 113, 0.4);
}

.progress-dot.completed {
    background: #0a192f; /* Azul Oscuro */
    border-color: #0a192f;
}

.submit-btn {
    width: 100%;
    padding: 0.8rem; /* Adjusted padding */
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: bold;
    background: #2cca71; /* Verde Vibrante */
    color: white;
    border: 2px solid #2cca71;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem; /* Adjusted margin */
    box-shadow: 0 4px 10px rgba(44, 202, 113, 0.2);
    text-shadow: none;
    backdrop-filter: none;
    border-radius: 4px;
}

.submit-btn:hover {
    background: #27ae60; /* Darker green */
    border-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(44, 202, 113, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.cancel-btn {
    position: absolute;
    top: 0.8rem; /* Adjusted position */
    left: 0.8rem; /* Adjusted position */
    padding: 0.4rem 0.6rem; /* Adjusted padding */
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    font-weight: bold;
    background: rgba(12, 40, 79, 0.1); /* Azul oscuro transparente */
    backdrop-filter: none;
    color: #0a192f; /* Azul Oscuro */
    border: 1px solid #0a192f; /* Azul Oscuro */
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1001;
    text-shadow: none;
    border-radius: 4px;
}

.cancel-btn:hover {
    background: rgba(12, 40, 79, 0.2);
    border-color: #0a192f;
    transform: scale(1.01); /* Smaller scale */
    box-shadow: 0 4px 8px rgba(12, 40, 79, 0.15);
}

.cancel-btn:active {
    transform: scale(0.99);
}

.thank-you {
    display: none;
    text-align: center;
    padding: 1.5rem; /* Adjusted padding */
    margin: auto;
    background: rgba(12, 40, 79, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(12, 40, 79, 0.2);
}

.thank-you-icon {
    font-size: 3rem; /* Adjusted size */
    margin-bottom: 0.8rem; /* Adjusted margin */
    text-shadow: none;
    color: #2cca71; /* Verde Vibrante */
}

.thank-you-text {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: bold;
    color: #0a192f; /* Azul Oscuro */
    text-shadow: none;
}

.loading {
    text-align: center;
    padding: 1.5rem; /* Adjusted padding */
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #0a192f; /* Azul Oscuro */
    margin: auto;
    text-shadow: none;
}

/* Responsive: pantallas pequeñas (mobile) */
@media (max-width: 900px) {
    .survey-container {
        padding: 0.8rem; /* Adjusted padding */
        min-height: auto;
    }

    .survey-header {
        margin-bottom: 0.8rem; /* Adjusted margin */
        padding-bottom: 0.4rem; /* Adjusted padding */
    }

    .survey-title {
        font-size: clamp(1rem, 2vw, 1.2rem);
        margin-bottom: 0.2rem; /* Adjusted margin */
    }

    .survey-subtitle {
        font-size: clamp(0.6rem, 1.2vw, 0.8rem);
        margin-bottom: 0.4rem; /* Adjusted margin */
    }

    .question-step {
        gap: 0.4rem; /* Adjusted gap */
        padding: 0 0.4rem; /* Adjusted padding */
    }

    .question-box {
        padding: 0.2rem 0; /* Adjusted padding */
    }

    .question-title {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
        margin-bottom: 0.4rem; /* Adjusted margin */
    }

    .options {
        gap: 0.2rem; /* Adjusted gap */
    }

    .option-label {
        font-size: clamp(0.7rem, 1.2vw, 0.9rem);
        padding: 0.4rem 0.5rem; /* Adjusted padding */
    }

    #q4 .options {
        grid-template-columns: repeat(1, 1fr); /* Single column on small screens */
        gap: 0.2rem; /* Adjusted gap */
    }
    #q4 .option-label {
        font-size: clamp(0.7rem, 1.2vw, 0.9rem);
        padding: 0.4rem 0.5rem;
    }

    .option-label input {
        width: clamp(10px, 1.5vw, 14px);
        height: clamp(10px, 1.5vw, 14px);
        margin-right: 0.4rem; /* Adjusted margin */
    }

    .nav-btn {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
        padding: 0.6rem 0.6rem; /* Adjusted padding */
        gap: 0.3rem; /* Adjusted gap */
    }

    .submit-btn {
        font-size: clamp(0.8rem, 1.5vw, 1.1rem);
        padding: 0.8rem; /* Adjusted padding */
        margin-top: 0.8rem; /* Adjusted margin */
    }

    .progress-dot {
        width: 0.5rem;
        height: 0.5rem;
        border: 1px solid rgba(12, 40, 79, 0.5);
    }

    .cancel-btn {
        padding: 0.4rem 0.6rem;
        font-size: clamp(0.7rem, 1.1vw, 0.9rem);
        top: 0.4rem;
        left: 0.4rem;
    }

    .lang-selector {
        top: 0.4rem;
        right: 0.4rem;
    }

    .lang-selector select {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .thank-you-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .thank-you-text {
        font-size: clamp(1rem, 2vw, 1.4rem);
    }
}

/* Responsive: pantallas muy anchas */
@media (min-width: 1920px) {
    .survey-container {
        max-width: 1000px; /* Adjusted max-width */
    }
}

/* Landscape mode para tablets */
@media (orientation: landscape) and (max-height: 700px) {
    .survey-header {
        margin-bottom: 0.6rem;
        padding-bottom: 0.3rem;
    }

    .survey-title {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .survey-subtitle {
        font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    }

    .submit-btn {
        padding: 0.6rem;
    }
}