:root {
    --pozos-primary: #94143c;
    --pozos-brown: #8B5A2B;
    --pozos-bg: #f5f5f5;
}

body.pantalla-seleccion {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    background: var(--pozos-bg);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(148, 20, 60, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(139, 90, 43, 0.07) 0%, transparent 45%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 24px 0;
}

.selector-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    animation: aparecer 0.6s ease-out;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selector-header {
    text-align: center;
    margin-bottom: 40px;
}

.selector-header .logo-img {
    width: 320px;
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    object-fit: contain;
}

.selector-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--pozos-primary);
    margin-bottom: 8px;
}

.selector-header .subtitulo {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.tarjeta {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tarjeta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tarjeta-admin::before {
    background: var(--pozos-primary);
}

.tarjeta-campo::before {
    background: var(--pozos-brown);
}

.tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(148, 20, 60, 0.25);
    color: #000;
}

.tarjeta:hover::before {
    transform: scaleX(1);
}

.tarjeta-admin:hover {
    border-color: rgba(148, 20, 60, 0.25);
}

.tarjeta-campo:hover {
    border-color: rgba(139, 90, 43, 0.25);
}

.tarjeta-icono {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.tarjeta-admin .tarjeta-icono {
    background: rgba(148, 20, 60, 0.08);
    color: var(--pozos-primary);
}

.tarjeta-campo .tarjeta-icono {
    background: rgba(139, 90, 43, 0.10);
    color: var(--pozos-brown);
}

.tarjeta-icono svg {
    width: 38px;
    height: 38px;
}

.tarjeta:hover .tarjeta-icono {
    transform: scale(1.1) rotate(-4deg);
}

.tarjeta h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 0;
}

.tarjeta-admin h2 {
    color: var(--pozos-primary);
}

.tarjeta-campo h2 {
    color: var(--pozos-brown);
}

.tarjeta .roles {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0;
}

.tarjeta .btn-entrar {
    margin-top: 12px;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    border: none;
}

.tarjeta-admin .btn-entrar {
    background: var(--pozos-primary);
}

.tarjeta-campo .btn-entrar {
    background: var(--pozos-brown);
}

.tarjeta:hover .btn-entrar {
    letter-spacing: 0.5px;
    transform: translateX(3px);
}

.selector-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-top: 40px;
}

@media (max-width: 720px) {
    .selector-header h1 {
        font-size: 22px;
    }

    .selector-header .subtitulo {
        font-size: 13px;
    }

    .selector-header .logo-img {
        width: 220px;
    }

    .tarjeta {
        padding: 32px 24px;
    }

    .tarjeta-icono {
        width: 64px;
        height: 64px;
    }

    .tarjeta-icono svg {
        width: 32px;
        height: 32px;
    }

    .tarjeta h2 {
        font-size: 19px;
    }
}

@media (max-width: 380px) {
    .selector-header h1 {
        font-size: 19px;
    }

    .selector-header .logo-img {
        width: 180px;
    }

    .tarjeta {
        padding: 26px 18px;
    }
}