* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo dividido responsivo 
.background-split {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #64cbdc 50%, #f7b1a1 50%);
    padding: 20px; /* Margen de seguridad para móviles */
/*}*/

.centrocomenta{
	display: flex;
    justify-content: center;
	align-items: center;
}
/* Tarjeta adaptable */
.appointment-card {
	
    background: white;
    display: flex;
    width: 100%;
    max-width: 1000px; /* Límite de ancho en PC */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 40px;
    gap: 30px;
}

/* Sección de imagen */
.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-section img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
}

/* Sección de Formulario */
.form-section {
    flex: 1.5;
}

h2 {
    text-align: center;
    color: #444;
    margin-bottom: 25px;
    font-size: 1.7rem;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #c8bebe;
    background-color: #fcfcfc;
    border-radius: 5px;
    font-size: 17px;
}

.btn-book {
    background-color: #836169;/*78d2e1;*/
    color: white;
	font-size: 17px;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin: 20px auto 0;
    width: 100%; /* Botón ancho en móviles */
    max-width: 250px;
}

/* --- MEDIA QUERIES (PARA MÓVILES) --- */

@media (max-width: 768px) {
    .appointment-card {
        flex-direction: column; /* Apila imagen arriba y formulario abajo */
        padding: 25px;
        margin-top: 20px;
    }

    .form-row {
        flex-direction: column; /* Los campos de nombre/mail se apilan */
        gap: 15px;
    }

    .image-section {
        order: -1; /* Asegura que la imagen siempre esté arriba */
    }

    .image-section img {
        position: static; /* Quita el efecto de sobresalir para evitar recortes */
        max-height: 250px;
        width: 100%;
    }

    .background-split {
        background: #64cbdc; /* Color sólido en móvil para mejor legibilidad */
    }
}
