/* Definir variables */
:root {
    --azul-bg: #00285e;
    --azul-hover-bg: #003b88;
    --panel-bg: #ffffff;
}

/* Base */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* Header */
.header {
    position: relative;
    height: 215px;
    /*background-image: url('../img/background_sivip.jpg');*/
    background-color: var(--azul-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.header-content {
    position: relative;
    text-align: center;
    color: white;
    transform: translateY(-25px);
}

.logo-box {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-box img {
    height: 40px;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.25);

    letter-spacing: 0.5px;
    margin-top: 10px;
}

.title span {
    color: #e63946;
    font-weight: bold;
}

.header::after {
    content: "";
    position: absolute;
    bottom: -70px;
    width: 100%;
    height: 100px;
    background: #f4f6f9;
    border-top-left-radius: 100% 80px;
    border-top-right-radius: 100% 80px;
}

/* Form */
.container {
    max-width: 600px;
    margin: -15px auto 30px;
    padding: 15px;
    position: relative;
    z-index: 5;
}

.card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

/* Preguntas */
.question-card {
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 22px;
    transition: all 0.25s ease;
    border: 1px solid #edf1f5;
}

/* Alternar colores */
.question-card:nth-child(odd) {
    background: #ffffff;
}

.question-card:nth-child(even) {
    background: #fafbfc;
}

/* Hover elegante */
.question-card:hover {
    transform: translateY(-2px);
    border-color: rgba(83, 96, 240, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Texto pregunta */
.question-card label {
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Encuesta ya con respuesta */
.already-answered {
    text-align: center;
    padding: 45px 30px;
}

.answered-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(240, 83, 114, 0.12);

    display: flex;
    align-items: center;
    justify-content: center;
}

.answered-icon i {
    font-size: 42px;
    color: var(--azul-bg);
}

.already-answered h2 {
    margin: 0 0 12px;
    color: #2c3e50;
    font-size: 28px;
}

.already-answered p {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
}

/* Error Visual */
.question-card.error {

    border: 2px solid var(--azul-hover-bg);

    background: rgba(240, 83, 114, 0.05);

    animation: shake 0.25s ease-in-out;
}

@keyframes shake {

    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }

}

/* Rating */
.rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-top: 8px;
}

.rating-icon {
    font-size: 30px;
    color: #b0b7c3;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-icon:hover {
    transform: scale(1.12);
    color: var(--azul-hover-bg);
}

.rating-icon.selected {
    color: var(--azul-hover-bg);
    transform: scale(1.15);
}

.rating-icon {
    padding: 8px 0;
}


.rating-guide {
    margin: 20px 0 25px;
    padding: 16px;
    background: #f8f9fb;
    border: 1px solid #edf1f5;
    border-radius: 12px;
}

.rating-guide-title {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.rating-guide-icons,
.rating-guide-labels {
    display: flex;
    justify-content: space-between;
}

.rating-guide-icons {
    font-size: 28px;
    color: var(--azul-hover-bg);
    margin-bottom: 8px;
}

.rating-guide-icons i,
.rating-guide-labels span {
    flex: 1;
    text-align: center;
}

.rating-guide-labels {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

/* Visita */
.visit-info {
    padding: 25px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card-title i {
    color: var(--azul-bg);
    font-size: 18px;
    line-height: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.info-item {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--azul-bg);
}

.label {
    display: block;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* Comentarios */

.section-description {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.comment-group {
    margin-bottom: 20px;
}

.comment-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.comment-group textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #dcdde1;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    color: #2c3e50;
}

.comment-group textarea:focus {
    outline: none;
    border-color: var(--azul-bg);
    box-shadow: 0 0 0 3px rgba(91, 83, 240, 0.15);
}

.comment-group textarea::placeholder {
    color: #7f8c8d;
    opacity: 1;
}

/* Botón */

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--azul-bg);
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: var(--azul-hover-bg);
}

/* Error Servidor */
.error-server {
    text-align: center;
    padding: 50px 30px;
}

.error-icon {
    background: #fff3f3;
    color: var(--azul-bg);
}

.error-server h2 {
    color: var(--azul-bg);
    margin-top: 20px;
    font-size: 28px;
}

.error-server p {
    color: #6c757d;
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.6;

}

/* Pie de pagina */
.footer {
    text-align: center;
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 30px;
    padding-bottom: 20px;
}

.recommendation {

    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;

}

.recommend-option {

    flex: 1;
    max-width: 150px;
    text-align: center;
    padding: 18px;
    border: 1px solid #dcdde1;
    border-radius: 12px;
    cursor: pointer;
    transition: .2s;

}

.recommend-option i {

    font-size: 34px;
    display: block;
    margin-bottom: 8px;
    color: #7f8c8d;

}

.recommend-option span {

    font-weight: 600;

}

.recommend-option:hover {

    border-color: var(--azul-bg);
    transform: scale(1.15);

}

.recommend-option.selected {

    border-color: var(--azul-bg);
    background: #eef5ff;


}

.recommend-option.selected i {

    color: var(--azul-bg);

}

/* Responsivo */
@media (max-width: 600px) {
    .title {
        font-size: 20px;
    }

    .logo-box img {
        height: 30px;
    }

    .emoji {
        font-size: 24px;
    }
}