/* --- VARIABLES DE DISEÑO --- */
:root {
    --verde-gradient: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
    --verde-boton: #7cb342;
    --azul-boton: #1976d2;
    --fondo-soft: #f1f8e9;
    --blanco-transparente: rgba(255, 255, 255, 0.9);
    --sombra-suave: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- CONFIGURACIÓN RESPONSIVA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif; /* Fuente amigable y moderna */
}

body {
    background-color: var(--fondo-soft);
    background-image: url('pattern-huellas.png'); /* Las huellitas de fondo */
    background-size: 180px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Espacio para que no pegue a los bordes en celular */
}

/* --- CONTENEDOR PRINCIPAL (EL SECRETO DEL DISEÑO) --- */
/* En PC se ve como una app centrada, en Celular ocupa toda la pantalla */
.main-wrapper {
    width: 100%;
    max-width: 420px; /* Ancho ideal para lectura y estética */
    background: var(--blanco-transparente);
    backdrop-filter: blur(10px); /* Efecto cristalino */
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.8s ease-out;
}

/* --- CABECERA ESTILO APP --- */
.app-header {
    background: var(--verde-gradient);
    padding: 30px 20px;
    text-align: center;
    color: white;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.app-header h1 {
    font-size: 24px;
    letter-spacing: 1px;
}

/* --- SECCIONES DE CONTENIDO --- */
.content-area {
    padding: 30px 25px;
}

.card-item {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s ease;
    border: 1px solid #edf2f7;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- BOTONES Y ENTRADAS --- */
.btn-master {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-green {
    background-color: var(--verde-boton);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
}

.btn-blue {
    background-color: var(--azul-boton);
    color: white;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.btn-master:active {
    transform: scale(0.95);
}

.input-master {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    margin-bottom: 15px;
    outline: none;
    transition: 0.3s;
}

.input-master:focus {
    border-color: var(--verde-boton);
    background-color: #fff;
}

/* --- ANIMACIONES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 380px) {
    .main-wrapper { border-radius: 0; }
    body { padding: 0; }
}