/* Reseteo básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo centrado con Flexbox */
body {
    background-color: #f0f8ff; 
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c7a7b; 
    font-size: 2.5rem;
    margin-bottom: 5px;
}

header p {
    color: #333;
    font-size: 30px;
}

/*tarjeta principal */
.card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h2 {
    color: #2d3748;
    margin-bottom: 15px;
}

p {
    margin-bottom: 25px;
    color: #718096;
    line-height: 1.5;
}

.file-upload {
    margin-bottom: 25px;
}

/* Ocultamos el input feo por defecto del navegador */
input[type="file"] {
    display: none;
}

/* Botones */
.btn-secondary, .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.btn-primary {
    background-color: #38b2ac;
    color: white;
    width: 100%;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #319795;
    transform: translateY(-2px); /* Pequeño efecto al pasar el mouse */
}

/* Clase de utilidad para ocultar elementos */
.hidden {
    display: none !important;
}

/* Animación circular de carga  */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #38b2ac;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: girar 1s linear infinite;
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
  margin: 0;
  height: 100vh;
  background-image: url("img/Medicos.webp");
  background-size: cover;      
  background-position: center; 
  background-repeat: no-repeat;
}