* {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #FFFFFF;
    color: #004080;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
header img {
    height: 50px;
    width: auto;
}
header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 1.6rem;
}

.main-container {
    flex-grow: 1;
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
    overflow: hidden;
    min-height: 500px;
}

.form-section {
    flex: 1 1 40%;
    padding: 30px 25px;
    background-color: #f0f8ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section form {
    display: flex;
    flex-direction: column;
}

.form-section label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #004080;
    font-size: 0.95rem;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section textarea,
.form-section input[type="file"] {
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1.8px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 40px;
}

.form-section textarea {
    min-height: 120px;
    max-height: 180px;
}

.form-section input[type="text"]:focus,
.form-section input[type="email"]:focus,
.form-section textarea:focus,
.form-section input[type="file"]:focus {
    border-color: #004080;
    outline: none;
}

.char-count {
    font-weight: 400;
    font-size: 0.85rem;
    color: #004080;
    margin-left: 6px;
    user-select: none;
}

.btn-submit {
    background-color: #004080;
    color: white;
    border: none;
    padding: 14px 0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #00264d;
}

.top-message {
    background-color: #d1e7ff;
    border: 1.5px solid #004080;
    padding: 25px 30px;
    border-radius: 8px;
    color: #004080;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    min-height: 200px;
}

.btn-entendido {
    background-color: #004080;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    align-self: center;
    transition: background-color 0.3s ease;
}

.btn-entendido:hover {
    background-color: #00264d;
}

.divider {
    width: 2px;
    background-color: #004080;
    margin: 30px 10px;
    border-radius: 2px;
}

.comments-section {
    flex: 1 1 60%;
    padding: 30px 25px;
    overflow-y: auto;
    max-height: 650px;
}

.no-comments {
    font-style: italic;
    color: #666;
    font-size: 1rem;
    text-align: center;
    margin-top: 40px;
}

.comment {
    background-color: #f0f8ff;
    border: 1.5px solid #004080;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgb(0 64 128 / 0.15);
}

.comment-header {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #004080;
}

.comment-header strong {
    font-weight: 700;
}

.comment-city {
    font-weight: 600;
    color: #003366;
    margin-left: 8px;
}

.comment-text {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #222;
    white-space: pre-wrap;
}

.comment img {
    max-width: 50%;
    border-radius: 5px;
    margin-bottom: 12px;
    object-fit: contain;
    display: block;
}

.comment-time {
    font-size: 0.8rem;
    color: #555;
    text-align: right;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        max-width: 100%;
        margin: 10px;
        min-height: auto;
    }

    .form-section, .comments-section {
        flex: none;
        width: 100%;
        padding: 20px 15px;
    }

    .divider {
        width: 100%;
        height: 2px;
        margin: 15px 0;
    }

    .comment img {
        max-width: 40%;
    }
}
