/* Sistema de citas - mismo estilo que la web: fondo negro, texto blanco, tipografía y tamaños del sitio */

.citas-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.92);
    background: #000000;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1rem;
}

.citas-container h1 {
    margin: 0 0 1.5rem;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
}

/* Formulario en dos columnas en escritorio */
.citas-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
}

.citas-form .field {
    margin-bottom: 0;
}

/* Campos a ancho completo */
.citas-form .field-full,
.citas-form .field-mensaje-plegable,
.citas-form .citas-btn {
    grid-column: 1 / -1;
}

.citas-form .field-mensaje-plegable .citas-mensaje-wrap {
    display: none;
}
.citas-form .field-mensaje-plegable.is-open .citas-mensaje-wrap {
    display: block;
}
.citas-form .field-mensaje-plegable .citas-mensaje-toggle {
    display: inline-block;
    padding: 0.6rem 0;
    color: var(--primary-color, #ff8400);
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 600;
}

.citas-form label {
    display: grid;
    gap: 6px;
    margin-bottom: 0;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.citas-form input,
.citas-form select,
.citas-form textarea {
    width: 100%;
    padding: 12px 12px;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.5rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
}

.citas-form input:focus,
.citas-form select:focus,
.citas-form textarea:focus {
    border-color: rgba(0, 193, 181, 0.6);
    box-shadow: 0 0 0 4px rgba(0, 193, 181, 0.16);
}

.citas-form input::placeholder,
.citas-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.citas-form select {
    cursor: pointer;
}
.citas-form select option {
    background: #1a1a1a;
    color: #fff;
}

.citas-form textarea {
    min-height: 110px;
    resize: vertical;
}

.citas-form .field label input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin-right: 0.5rem;
}
.citas-form .field label {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
}

/* Checks alineados a la izquierda */
.citas-form .field-check .check-row {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}
.citas-form .field-check .check-row input[type="checkbox"] {
    margin-top: 4px;
}

.citas-form .error {
    font-size: 1.2rem;
    color: #f87171;
    margin-top: 0.35rem;
}

.citas-form input.invalid,
.citas-form select.invalid {
    border-color: #dc2626;
}

.citas-btn {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 1rem auto 0;
    text-align: center;
    padding: 16px 20px;
    min-height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: var(--primary-color, #ff8400);
    color: #12161c;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.citas-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, var(--primary-color, #ff8400), rgba(255, 132, 0, 0.7));
}

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

.citas-msg {
    padding: 0.9rem 1.15rem;
    border-radius: 12px;
    margin-bottom: 1.15rem;
    font-size: 1.2rem;
}

.citas-msg.success {
    background: rgba(22, 163, 74, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.citas-msg.error {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.citas-loading {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.2rem;
}

.hora-input-wrap input,
.hora-input-wrap select {
    width: 100%;
}

/* Móvil: una columna y botón visible */
@media (max-width: 768px) {
    .citas-form {
        grid-template-columns: 1fr;
    }
    .citas-form .field-full,
    .citas-form .field-mensaje-plegable,
    .citas-form .citas-btn {
        grid-column: 1;
    }
    .citas-container {
        padding: 1.5rem 1.25rem;
        margin-bottom: 2rem;
    }
    .citas-container h1 {
        font-size: 2rem;
    }
    .citas-form input,
    .citas-form select,
    .citas-form textarea {
        min-height: 48px;
        padding: 12px;
        font-size: 1.5rem;
    }
    .citas-form textarea {
        min-height: 100px;
    }
    .citas-form label {
        font-size: 1.2rem;
    }
    .citas-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        min-height: 56px;
        font-size: 1.6rem;
        margin-top: 1rem;
    }
}
