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

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
}

header {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: 20px;
    background-color: #FCDFDB;
}

.logo img {
    width: 75px;
}

nav.menu ul {
    display: flex;
    list-style: none;
}

nav.menu ul li {
    margin-right: 20px;
}

nav.menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.auth a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    margin-left: 10px;
}

/* Estilo para la sección hero */
.hero {
    background-image: url('../images/main_page/hero_background.png');
    /* Coloca aquí la imagen de boda */
    background-size: cover;
    background-position: center 35%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.5rem;
}

/* Estilos para los fundadores */
.founders {
    padding: 40px;
    text-align: center;
}

.founders h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.founders ul {
    list-style: none;
}

.founders ul li {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-top: 20px;
}

/* Estilos para el pie de página */
footer {
    text-align: center;
    padding: 20px;
    background-color: #FCDFDB;
    margin-top: 40px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.form-container {
    width: 300px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #45a049;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Layout around the questionnaire */
.questionnaire {
    max-width: 880px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.questionnaire .page-header {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.page-header {
    width: 100%;
    background-color: #FCDFDB;
    /* mismo color que tu header general */
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    /* para que en pantallas pequeñas no se traslape */
    box-sizing: border-box;
}

/* Logo */
.page-header .logo img {
    display: block;
    height: 60px;
    width: auto;
}

/* Bloque de texto (título + subtítulo) */
.page-header .text-block {
    flex: 1;
    min-width: 250px;
}

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.page-header .lead {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Botones */
.page-header .btn-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    transition: 0.2s;
}

.page-header .btn-link:hover {
    background-color: #e9f6ec;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.15);
}



.questionnaire .lead {
    color: #64748b;
    margin-top: .25rem;
}

/* Card container (keeps your aesthetic) */
.questionnaire .card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Grid spacing inside the questionnaire form */
.questionnaire-form {
    display: grid;
    gap: 16px;
}

/* Each question block */
.questionnaire-form .question-block {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.questionnaire-form .question-label {
    font-weight: 600;
}

/* Inputs/selects ONLY inside this form */
.questionnaire-form .input,
.questionnaire-form .select,
.questionnaire-form input[type="text"],
.questionnaire-form input[type="number"],
.questionnaire-form input[type="date"],
.questionnaire-form select {
    width: 100%;
    font-size: 1rem;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: box-shadow .15s ease, border-color .15s ease;
}

/* Focus ring in your green palette */
.questionnaire-form .input:focus,
.questionnaire-form .select:focus,
.questionnaire-form input[type="text"]:focus,
.questionnaire-form input[type="number"]:focus,
.questionnaire-form input[type="date"]:focus,
.questionnaire-form select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

/* Radios */
.questionnaire-form .options-radio {
    display: grid;
    gap: 8px;
}

.questionnaire-form .radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.questionnaire-form .radio input {
    accent-color: #4CAF50;
    width: 16px;
    height: 16px;
}

/* Multiselect */
.questionnaire-form .select[multiple],
.questionnaire-form select[multiple] {
    min-height: 7rem;
    padding: 8px;
}

.questionnaire-form select option {
    padding: 6px 8px;
}

/* Rating (range slider) */
.questionnaire-form .options-rating {
    display: grid;
    gap: 12px;
}

.questionnaire-form .rating {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 12px;
}

.questionnaire-form .slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 999px;
    background: #e6eef6;
    outline: none;
}

.questionnaire-form .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.25);
    cursor: pointer;
}

.questionnaire-form .slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.25);
    cursor: pointer;
    border: none;
}

.questionnaire-form .ticks {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    font-size: .85rem;
    color: #64748b;
}

.questionnaire-form .ticks i {
    text-align: center;
    font-style: normal;
}

/* Keep your existing form button styles; add a nicer focus only here */
.questionnaire-form button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

/* Responsive tweak */
@media (max-width: 640px) {
    .questionnaire {
        margin: 2rem auto;
    }

    .questionnaire-form .rating {
        grid-template-columns: 1fr;
    }
}

/* === Scoped styles: checkbox multiselect (append only) === */
.questionnaire-form .checkbox-multiselect {
    display: grid;
    gap: 8px;
}

.questionnaire-form .checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.questionnaire-form .checkbox input[type="checkbox"] {
    accent-color: #4CAF50;
    width: 16px;
    height: 16px;
}

/* ===== SOLO PARA LA PÁGINA DE CHAT ===== */
.chat-page {
    display: flex;
    flex-direction: column;
    /* header arriba, contenido abajo */
    min-height: 100vh;
    justify-content: flex-start;
    align-items: stretch;
}

/* El header fijo se usa solo cuando tu HTML tenga class="app-header" */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FCDFDB;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.app-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: left;
    justify-content: space-between;
}

/* El padding-top para que el contenido no quede debajo del header fijo SOLO en chat */
.chat-page main {
    padding-top: 80px;
}

/* Chat container SOLO en la página de chat */
.chat-page #chat-container {
    width: 100%;
    max-width: 480px;
    height: 80vh;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto 40px;
    margin-top: 60px;
    ;
}

/* Encabezado del chat */
.chat-page #chat-header {
    background-color: #FCDFDB;
    color: white;
    padding: 10px;
    text-align: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    font-size: 24px;
    font-weight: bold;
}

/* Área de mensajes e input */
.chat-page #chat {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-page .message {
    margin-bottom: 15px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 14px;
}

.chat-page .user-message {
    align-self: flex-end;
    background-color: #d1f7c4;
    padding: 10px;
    border-radius: 10px;
    margin-left: 20px;
    max-width: 70%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-page .ai-message {
    align-self: flex-start;
    background-color: #e1e1e1;
    padding: 10px;
    border-radius: 10px;
    margin-right: 20px;
    max-width: 70%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-page #input-container {
    display: flex;
    padding: 15px;
    background-color: #fff;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.chat-page #user_input {
    flex-grow: 1;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.chat-page #send-button {
    background-color: #FCDFDB;
    color: white;
    border: none;
    padding: 15px 30px;
    margin-left: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}

.chat-page #send-button:hover {
    background-color: #45a049;
}

.chat-page #messages {
    scroll-behavior: smooth;
}

/* Botones del header en chat */
.app-header .auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header .auth .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 14px;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    background: #fff;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

.app-header .auth .btn-link:hover {
    background: #e9f6ec;
    box-shadow: 0 6px 14px rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
}

.app-header .logo img {
    display: block;
    width: 72px;
    height: auto;
}

@media (max-width: 640px) {
    .app-header__inner {
        padding: 10px 12px;
    }

    .app-header .auth .btn-link {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}