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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #219590 0%, #0b3735 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECCIÓN DEL QUIZ ===== */
.quiz-section {
    padding: 40px 30px;
}

.quiz-section.hidden {
    display: none;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #219590 0%, #00873b 100%);
    width: 10%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.question-container {
    min-height: 100px;
}

.question-container h2 {
    font-size: 24px;
    color: #333;
    text-align: center;
    line-height: 1.4;
    font-weight: 600;
}

.question-container img {
    max-width: 100%;
	margin-top:18px;
}

/* ===== BOTONES SÍ/NO ===== */
.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-2px);
}

.btn-text {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 28px;
    letter-spacing: 2px;
}

.btn-no {
    background: linear-gradient(135deg, #f20000 0%, #4a010b 100%);
}

.btn-no:hover {
    box-shadow: 0 15px 35px rgba(245, 87, 108, 0.4);
}

.btn-yes {
    background: linear-gradient(135deg, #219590 0%, #00873b 100%);
}

.btn-yes:hover {
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
}

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

/* ===== SECCIÓN DE RESULTADOS ===== */
.results-section {
    padding: 40px 30px;
    animation: slideIn 0.5s ease-out;
}

.results-section.hidden {
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.results-header p {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.compatibility-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.compatibility-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.compatibility-card.high {
    border-left-color: #00873b;
    background: linear-gradient(135deg, rgba(0, 249, 27, 0.1) 0%, rgba(0, 242, 254, 0.05) 100%);
}

.compatibility-card.medium {
    border-left-color: #ffa500;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
}

.compatibility-card.low {
    border-left-color: #f5576c;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1) 0%, rgba(245, 87, 108, 0.05) 100%);
}

.card-avatar {
    width: 90px;
    height: 90px;
}
.card-avatar img{
	max-width:100%;
}

.card-content {
    flex: 1;
}

.card-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.card-bar {
    width: 100%;
    height: 8px;
    background: #c5c5c5;
    border-radius: 10px;
    overflow: hidden;
}

.card-bar-fill {
    height: 100%;
    background: #01873b;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.medium .card-bar-fill{
	background: #ffa500;
}

.low .card-bar-fill{
	background: #f5576c;
}

.card-percentage {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
    font-weight: 600;
}

.btn-restart {
    width: 50%;
    padding: 16px;
    background: linear-gradient(135deg, #219590 0%, #00873b 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
	height:auto !important;
	margin:0 auto;
}

.btn-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-restart:active {
    transform: translateY(-1px);
}

/* ===== SECCIÓN DE INICIO ===== */
.begin-section {
    padding: 40px 30px;
    animation: slideIn 0.5s ease-out;
}

.begin-section.hidden {
    display: none;
}

.begin-header {
    text-align: center;
    margin-bottom: 40px;
}

.begin-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.begin-header p {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.begin-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-begin {
    width: 50%;
    padding: 16px;
    background: linear-gradient(135deg, #219590 0%, #00873b 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
	height:auto !important;
	margin:0 auto;
}

.btn-begin:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-begin:active {
    transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .container {
        border-radius: 15px;
    }

    .quiz-section,
    .results-section,
	.begin-section {
        padding: 30px 20px;
    }

    .quiz-header h1,
    .results-header h1 {
        font-size: 26px;
    }

    .question-container h2 {
        font-size: 20px;
    }

    .btn {
        min-width: 120px;
        height: 120px;
    }

    .btn-text {
        font-size: 24px;
    }

    .compatibility-card {
        padding: 16px;
    }

    .card-avatar {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .card-name {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .button-container {
        gap: 15px;
    }

    .btn {
        min-width: 100px;
        height: 100px;
    }

    .btn-text {
        font-size: 20px;
    }

    .quiz-header h1 {
        font-size: 24px;
    }

    .question-container h2 {
        font-size: 18px;
    }
}
