* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
.header {
    height: var(--altura_header);
    background-color: var(--color_primario);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
}
.navbar {
    display: flex
;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 var(--padding_left_right);
}
.logo {
    color: var(--color_blanco);
}
@media (min-width: 768px) {
    .labe_hamburguesa {
        display: none;
    }
}
select, input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.menu_hamburguesa {
    display: none;
}
main {
    padding: 2rem;
    text-align: center;
}
.form-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
h1 {
    color: #1d2d44;
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.content-wrapper {
    display: flex
;
    gap: 2rem;
    align-items: flex-start;
}
.appointment-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #1d2d44;
    flex: 1;
}
table {
    width: 100%;
    border-collapse: collapse;
}
td {
    padding: 5px;
}
h3 {
    color: #333;
    margin: 0;
}
.required-asterisk {
    color: #dc3545;
    margin-left: 5px;
    vertical-align: middle;
}
select, input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.fees-table-container {
    width: 400px;
    min-width: 0;
    margin-top: 2rem;
}
.fees-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #1d2d44;
}
.fees-cell {
    font-size: 14px;
}
.fees-table th {
    background-color: #1d2d44;
    color: #fff;
    border: 1px solid #1d2d44;
    padding: 12px;
    text-align: left;
}
.fees-table td {
    border: 1px solid #e0e4e8;
    padding: 10px 12px;
    text-align: left;
}
.fees-cell-price {
    text-align: right;
    white-space: nowrap;
}
.checkbox-label {
    display: flex
;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.checkbox-label input[type="checkbox"] {
    width: auto;
}
a {
    text-decoration: none;
}
.btn-submit, .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.btn-submit {
    background-color: #1d2d44;
    color: white;
    letter-spacing: 0.04em;
}
.btn-submit:hover {
    background-color: #2c4266;
}
.btn-submit, .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.btn-cancel {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}
@media (max-width: 768px) {

    header {
        height: auto !important;
        padding: 10px 0;
    }

    .logo img {
        max-width: 300px !important;
        margin: 0 auto;
        float: none !important;
        display: block;
    }

    .form-container {
        width: 95%;
        margin: 0 auto;
    }

    .content-wrapper {
        display: block;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .appointment-form,
    .fees-table-container {
        width: 100% !important;
    }

    /* La tabla de tu formulario */
    table {
        width: 100% !important;
        display: block;
    }

    td {
        display: block;
        width: 100% !important;
        margin-bottom: 15px;
    }

    tr {
        display: block;
        margin-bottom: 15px;
    }

    input, select {
        width: 100% !important;
        font-size: 1.1em;
        padding: 10px;
    }

    .btn-submit,
    .btn-cancel {
        width: 100% !important;
        margin-top: 10px;
    }

    .modal-content {
        width: 95% !important;
        margin-top: 30%;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {

    .content-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 30px;
    }

    .appointment-form,
    .fees-table-container {
        width: 100%;
    }

    input, select {
        width: 100%;
        font-size: 1em;
    }

    .logo img {
        max-width: 260px !important;
        float: none;
        margin: 0 auto;
        display: block;
    }
}

/* 📱 MODO CELULAR */
@media (max-width: 768px) {

    /* --- FORMULARIO: convierte cada fila en bloque --- */
    .appointment-form table,
    .appointment-form tbody,
    .appointment-form tr,
    .appointment-form td {
        display: block;
        width: 100%;
    }

    .appointment-form tr {
        margin-bottom: 15px;
    }

    .appointment-form td {
        padding: 8px 0;
    }

    /* Inputs y selects ocupan todo el ancho */
    .appointment-form input,
    .appointment-form select {
        width: 100% !important;
        padding: 10px;
        font-size: 1.1em;
    }

    /* Botones */
    .btn-submit,
    .btn-cancel {
        width: 100% !important;
        margin-top: 10px;
    }

    /* --- TABLA DE TARIFAS: se mantiene como TABLA REAL --- */
    .fees-table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse;
    }

    .fees-table tr {
        display: table-row !important;
    }

    .fees-table td,
    .fees-table th {
        display: table-cell !important;
        padding: 12px;
        font-size: 1em;
    }
}
/* Margen superior para appointment-form solo en móvil */
@media (max-width: 768px) {
    /* Contenedor general */
    .content-wrapper {
        display: flex;
        flex-direction: column;
    }

    /* Tabla primero */
    .fees-table-container {
        order: 1;
        margin-bottom: 20px;
    }

    /* Formulario después con margen superior */
    .appointment-form {
        order: 2;
        margin-top: 17px;
    }
}




