/* Fuentes importadas en el HTML */

:root {
    /* Paleta Desbiens */
    --primary: #20384B; /* Azul Marino Profundo */
    --accent: #C19A6B; /* Marrón Camello Claro */
    --bg-light: #F8F8F8; /* Crema Suave / Blanco Roto */
    --bg-secondary: #E0E0E0; /* Gris Pizarra Muy Pálido */
    --white: #ffffff;
    --text-main: #333333;
    
    --glass: rgba(248, 248, 248, 0.95);
    --shadow: 0 15px 35px rgba(32, 56, 75, 0.08);
    --shadow-hover: 0 20px 40px rgba(32, 56, 75, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--white);
}

h2 {
    font-size: 2.8rem;
}

.font-cursive {
    font-family: 'Pinyon Script', cursive;
    color: var(--accent);
    font-size: 1.5em;
    font-weight: normal;
    display: inline-block;
    margin: 0 10px;
    text-shadow: 1px 1px 2px rgba(18, 38, 58, 0.7), 0 0 15px rgba(0, 0, 0, 0.4);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #555;
}

/* Utils */
.text-white { color: var(--white) !important; }
.bg-light { background-color: var(--bg-light); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-primary { background-color: var(--primary); }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Botones */
.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(32, 56, 75, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(193, 154, 107, 0.3);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: var(--white);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    display: block;
}

/* Custom top bar styling */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 6px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.top-bar-item {
    font-weight: 500;
}

/* Nav container styling */
.nav-container {
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    width: 100%;
}

header.scrolled {
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

header.scrolled .top-bar {
    background-color: rgba(32, 56, 75, 0.95);
}

header.scrolled .nav-container {
    padding: 0.8rem 5%;
}

.logo-link {
    display: inline-block;
    transition: var(--transition);
}

.logo-img {
    height: 60px; /* Tamaño del logo */
    width: auto;
    transition: var(--transition);
    /* Cuando el header es transparente (fondo oscuro), volvemos el logo blanco */
    filter: brightness(0) invert(1);
}

header.scrolled .logo-img {
    /* Cuando hacemos scroll (fondo claro), restauramos los colores originales del logo */
    filter: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

header.scrolled nav a {
    color: var(--primary);
}

nav a:hover, header.scrolled nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    padding: 120px 10% 160px; /* Safe padding at the top and bottom to clear headers and wave-divider */
    background-image: url('../images/Gemini_Generated_Image_ay78xray78xray78.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32,56,75,0.7) 0%, rgba(32,56,75,0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
    color: var(--white);
}

/* Antigravity Effects */
.antigravity {
    animation: float-content 7s ease-in-out infinite;
}

@keyframes float-content {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.float-img {
    animation: float-img 9s ease-in-out infinite;
}

.float-img-reverse {
    animation: float-img 11s ease-in-out infinite reverse;
}

@keyframes float-img {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Fluid Dividers (Stitch Concept) */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.wave-divider svg, .wave-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 140px;
}

.wave-divider .shape-fill { fill: var(--bg-light); }
.wave-divider-top {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-divider-top .shape-fill-sec { fill: var(--bg-secondary); }
.wave-divider-top .shape-fill-pri { fill: var(--primary); }

/* Layout Sections */
.section {
    padding: 120px 10%;
    position: relative;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.section-grid.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.content-block {
    max-width: 550px;
}

.icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(193, 154, 107, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(193, 154, 107, 0.3);
}

.icon-wrap img {
    width: 35px;
}

.img-fluid {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
}

.shadow { box-shadow: var(--shadow); transition: var(--transition); }
.shadow:hover { box-shadow: var(--shadow-hover); }

/* Masonry / Advanced Gallery */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: center;
}

.masonry-gallery img:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 450px;
}

.masonry-gallery img:nth-child(2) {
    height: 250px;
}

.masonry-gallery img:nth-child(3) {
    height: 350px;
    margin-top: -100px;
}

/* Full Gallery for Spaces */
.spaces-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.spaces-gallery img {
    height: 350px;
    width: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    padding: 120px 10% 60px;
}

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    transition: var(--transition);
    animation: float-content 4s ease-in-out infinite;
}

.whatsapp-float img {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 5px 15px rgba(37, 211, 102, 0.3));
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1100px) {
    .section-grid, .section-grid.reverse {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .section-grid.reverse .masonry-gallery {
        grid-row: 2;
    }
    h1 { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    nav, .btn-nav { display: none; }
    h1 { font-size: 2.5rem; }
    .section { padding: 80px 5%; }
    .masonry-gallery {
        grid-template-columns: 1fr;
    }
    .masonry-gallery img:nth-child(1),
    .masonry-gallery img:nth-child(2),
    .masonry-gallery img:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
        height: 300px;
        margin-top: 0;
    }
}

/* ==========================================================================
   New CSS Additions (Audit CRO & Google Ads Improvements)
   ========================================================================== */

/* Hero Badges and Layout Adjustments */
.hero-content {
    max-width: 900px;
    width: 100%;
}

.hero-text-block h1 {
    font-size: 3.4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text-block p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Features List (Luxury / Native Text style) */
.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 3px solid var(--accent);
    padding-left: 24px;
}

.hero-features-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-features-list li .feature-svg-icon {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    stroke-width: 2.2px;
    flex-shrink: 0;
}

.hero-ctas {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-whatsapp {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: var(--white) !important;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
    transform: translateY(-3px);
}

.btn-visit {
    font-weight: 600;
}

/* Services Section Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--accent);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card .service-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(209, 161, 83, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent);
}

.service-svg-icon {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '“';
    font-family: 'Montserrat', sans-serif;
    font-size: 6rem;
    color: rgba(193, 154, 107, 0.15);
    position: absolute;
    top: 5px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.2rem;
}

.testimonial-author strong {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-author span {
    color: #888;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Accordion (FAQ) */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.accordion-item {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.accordion-item.active {
    border-color: rgba(193, 154, 107, 0.2);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--white);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    outline: none;
}

.accordion-header:hover {
    color: var(--accent);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 300;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.4s ease-out;
    padding: 0 2rem;
}

.accordion-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Contact Form Styling */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.2px;
}

.form-group input, .form-group select {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    color: #333;
    background: #fafafa;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 4px 15px rgba(193, 154, 107, 0.1);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C19A6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2em;
    padding-right: 3rem;
}

/* Top bar and Nav styling mobile adjustments */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 6px 3%;
    }
    
    .top-bar-container {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .nav-container {
        padding: 1rem 3%;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .hero {
        padding: 120px 5% 150px; /* Increased bottom padding on mobile to clear wave-divider */
        height: auto;
        min-height: 100vh;
    }
    
    .hero-text-block h1 {
        font-size: 2.3rem;
    }
    
    .hero-text-block p {
        font-size: 1.1rem;
    }
    
    .hero-features-list {
        margin: 1.5rem 0;
        padding-left: 16px;
        gap: 12px;
    }
    
    .hero-features-list li {
        font-size: 0.95rem;
        line-height: 1.45;
    }
    
    .hero-features-list li .feature-svg-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-ctas .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card {
        padding: 2.5rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
}

/* Filosofía Sub Gallery */
.filosofia-sub-gallery {
    margin-top: 3.5rem;
}
.sub-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.sub-gallery-grid img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .sub-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sub-gallery-grid img {
        height: 260px;
    }
}

/* El Hogar Centered Image */
.single-centered-image {
    max-width: 900px;
    margin: 0 auto 3rem;
}
.single-centered-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Multi-step Interactive Modal Quiz */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 38, 58, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card {
    transform: translateY(0);
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.modal-close-btn:hover {
    color: var(--primary);
}
.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.quiz-progress {
    height: 100%;
    background-color: var(--accent);
    width: 25%;
    transition: width 0.3s ease;
}
.quiz-step-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.quiz-step h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.quiz-step .form-group {
    margin-bottom: 0;
}
.quiz-step input[type="text"],
.quiz-step input[type="tel"] {
    width: 100%;
    padding: 1.1rem 1.25rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #fafafa;
    color: var(--primary);
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.quiz-step input[type="text"]:focus,
.quiz-step input[type="tel"]:focus {
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(209, 161, 83, 0.1);
    outline: none;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quiz-option-card {
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.4rem;
    border: 2px solid #eaeaea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--white);
    position: relative;
    user-select: none;
}
.quiz-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.quiz-option-card:hover {
    border-color: var(--accent);
    background-color: rgba(209, 161, 83, 0.02);
}
.quiz-option-card.selected,
.quiz-option-card:has(input[type="radio"]:checked) {
    border-color: var(--accent);
    background-color: rgba(209, 161, 83, 0.06);
    box-shadow: 0 4px 12px rgba(209, 161, 83, 0.1);
}
.quiz-option-card .option-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.quiz-option-card .option-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}
.quiz-nav-btns {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 2rem;
    border-top: 1px solid #eaeaea;
    padding-top: 1.5rem;
}
.quiz-nav-btns .btn {
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.quiz-nav-btns #quiz-submit-btn {
    background-color: #25D366;
    border-color: #25D366;
    color: var(--white);
}
.quiz-nav-btns #quiz-submit-btn:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}
@media (max-width: 576px) {
    .modal-card {
        padding: 2rem 1.5rem;
    }
    .quiz-step h3 {
        font-size: 1.25rem;
    }
    .quiz-option-card {
        padding: 1rem;
    }
    .quiz-nav-btns {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .quiz-nav-btns .btn {
        width: 100%;
        text-align: center;
    }
}

